Results 1 to 2 of 2

Thread: Pedido action

  1. #1
    Normal User
    Join Date
    Oct 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Thumbs up Pedido action

    Esta é uma action para depositar e dar withdraw depois mas nao tá bom porque na hora de retirar o dinheiro ele nao tá calculando certo. Só queria botar ali depois de balance algo como npcsay("withdraw 3750") wait(200,300) npcsay("yes") wait(200,300) end

    local Mana = positive(MpToBuy - itemcount(ManaPotion))*ManaPrice
    local Brow = positive(BmToBuy - itemcount(BrownMush))*BrownPrice
    local Total = Mana + Brow

    say("hi")
    wait(1500,2500)
    npcsay("deposit all")
    wait(200,300)
    npcsay("yes")
    wait(200,300)
    npcsay("balance")
    wait(1000)

    if Total > 0 then
    npcsay("withdraw "..Total)
    wait(200,300)
    npcsay("yes")
    wait(200,300)
    end

    Mas nao funcionou, fiz da seguinte forma:

    local Mana = positive(MpToBuy - itemcount(ManaPotion))*ManaPrice
    local Brow = positive(BmToBuy - itemcount(BrownMush))*BrownPrice
    local Total = Mana + Brow

    say("hi")
    wait(1500,2500)
    npcsay("deposit all")
    wait(200,300)
    npcsay("yes")
    wait(200,300)
    npcsay("balance")
    wait(1000)
    npcsay("withdraw 3750")
    wait(200,300)
    npcsay("yes")
    wait(200,300)
    end

  2. #2
    iBot User
    Join Date
    Jun 2012
    Posts
    707
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    72 Post(s)
    Reputation
    43
    Rep Power
    6
    aki tbm nao ta dando pra por junto entao eu separei.
    cria a 1° action e poe
    local Mana = positive(MpToBuy - itemcount(ManaPotion))*ManaPrice
    local Brow = positive(BmToBuy - itemcount(BrownMush))*BrownPrice
    local Total = Mana + Brow

    say("hi")
    wait(1500,2500)
    npcsay("deposit all")
    wait(200,300)
    npcsay("yes")
    wait(200,300)
    npcsay("balance")
    wait(1000)

    if Total > 0 then
    npcsay("withdraw "..Total)
    wait(200,300)
    npcsay("yes")
    wait(200,300)
    end
    cria outra action e poe
    wait(1000)
    npcsay("withdraw 3750")
    wait(200,300)
    npcsay("yes")
    wait(200,300)
    end
    eu uso assim e da certo
    Last edited by angelic12; 08-28-2013 at 12:43 PM.

Posting Permissions

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