Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: transfer money if up 100k

  1. #1
    iBot User
    Join Date
    Sep 2012
    Posts
    20
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    9
    Rep Power
    0

    transfer money if up 100k

    please script when balance is 100k transfer money to 'nick name'

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Lua Code:
     
    local MainChar = "agnieszka"
     
    say("hi") wait(2000,3000)
    npcsay("balance") wait(200,500)
     
    if balance >= 100000 then 
        npcsay("transfer "..balance.." to "..MainChar) 
        wait(200,500) 
        npcsay("yes") 
    end

  3. #3
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    @soder your action wont work.

    @agnieszka198809

    Lua Code:
    local amountToSave = 100000
        local transferTo = "your name"
        say("hi")
        wait(1000, 1200)
        npcsay("balance")
        updateworld()
        wait(5000,6000)
     
        if (balance > amountToSave) then
            updateworld()
            npcsay("transfer "..balance.." to "..transferTo)
            wait(1100,1500)
            npcsay("yes")
            wait(1300,1600)
        end

  4. #4
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    @Eldar your action wont work.

    @agnieszka198809

    Lua Code:
    local amountToSave = 100000
        local transferTo = "your name"
        say("hi")
        wait(1000, 1200)
        npcsay("balance")
        wait(5000,6000)
        updateworld()
     
        if (balance > amountToSave) then
            npcsay("transfer "..balance.." to "..transferTo)
            wait(1100,1500)
            npcsay("yes")
            wait(1300,1600)
        end


    edit: would work atually, but well, 1 updateworld() is enough and should be where I put it.
    Last edited by walukasz; 04-04-2014 at 11:54 AM.

  5. #5
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Quote Originally Posted by walukasz View Post
    @Eldar your action wont work.

    @agnieszka198809

    Lua Code:
    local amountToSave = 100000
        local transferTo = "your name"
        say("hi")
        wait(1000, 1200)
        npcsay("balance")
        wait(5000,6000)
        updateworld()
     
        if (balance > amountToSave) then
            npcsay("transfer "..balance.." to "..transferTo)
            wait(1100,1500)
            npcsay("yes")
            wait(1300,1600)
        end


    edit: would work atually, but well, 1 updateworld() is enough and should be where I put it.
    I use my action for few months and it working so dont talk shits... This updateworld() position wont change anything.
    Last edited by Eldar; 04-04-2014 at 12:16 PM.

  6. #6
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    Quote Originally Posted by Eldar View Post
    I use my action for few months and it working so dont talk shits... This updateworld() position wont change anything.
    yes I said it would work, but it is pointless to updateworld right after saying "balance" because it won't help at all as you told soder. You should updateworld before you need to use the variable and after waiting. You need to use it to compare if it's enough already to transfer, so before the if, not inside. Checking it inside has no point either if u will check it before, so this will work but when you wil reach 100k in your bank char will say balance and leave bank. On next refill the new balance will be remembered because you waited in bank long enough to see meassage, then the condition will be true and money will be transfered, so not as intended.

  7. #7
    Normal User
    Join Date
    Jan 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    14
    Rep Power
    3
    walusksz owned eldar

  8. #8
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Quote Originally Posted by walukasz View Post
    yes I said it would work, but it is pointless to updateworld right after saying "balance" because it won't help at all as you told soder. You should updateworld before you need to use the variable and after waiting. You need to use it to compare if it's enough already to transfer, so before the if, not inside. Checking it inside has no point either if u will check it before, so this will work but when you wil reach 100k in your bank char will say balance and leave bank. On next refill the new balance will be remembered because you waited in bank long enough to see meassage, then the condition will be true and money will be transfered, so not as intended.
    It doesnt matter if you use it before or after wait, just should be before if. You can use it inside if too, but not needed. I dont see point of this dispute.

  9. #9
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    Quote Originally Posted by Eldar View Post
    It doesnt matter if you use it before or after wait, just should be before if. You can use it inside if too, but not needed. I dont see point of this dispute.
    I explained you actually can't.
    If you updateworld right after saying balance, without any delay it will update balance value with current balance value that bot is aware of, which is OLD balance value because you just said balance but npc didn't reply yet. This is why you added this long wait, so npc can tell you current balance, and after this is the right and only required time to updateworld so you get the new value of balance.

    sure you can use it in every line even 100 times, but as you said, pointless.

  10. #10
    Focus Group Gryllz's Avatar
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    3,482
    Mentioned
    89 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    236 Post(s)
    Reputation
    342
    Rep Power
    10
    Calm down boys, both versions are working, you are both awesome
    Thread solved and closed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •