Results 1 to 2 of 2

Thread: Ajuda Withdraw

  1. #1
    Normal User
    Join Date
    Jan 2013
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Ajuda Withdraw

    Queria uma action que calcula quanto de gold devo retirar para 'x' mana potions e 'x' health potions e que também calcule quantos eu já tenho

  2. #2
    iBot User royale13's Avatar
    Join Date
    Jul 2012
    Posts
    63
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    14
    Rep Power
    5
    Quote Originally Posted by biielsk8 View Post
    Queria uma action que calcula quanto de gold devo retirar para 'x' mana potions e 'x' health potions e que também calcule quantos eu já tenho
    Faça uma action assim no bank:

    local mp = positive(mpbuy - itemcount("mana potion")) * 50
    local hp = positive(hpbuy - itemcount("health potion")) * 45
    local Total = mp + hp
    local MpToBuy = mpbuy - itemcount('mana potion')
    local HpToBuy = hpbuy - itemcount('health potion')

    wait(500,1000)
    say("hi")
    wait(1500,2000)
    npcsay("deposit all")
    wait(1000,1300)
    npcsay("yes")
    wait(1000,1300)
    npcsay("balance")
    wait(2000)
    npcsay("withdraw "..Total)
    wait(1000,1300)
    npcsay("yes")
    wait(1000,1300)


    wait(1000)
    say("hi")
    npcsay("trade")
    wait(1000)
    sellflasks()
    wait(500,800)
    npcsay("yes")
    wait(100,300)
    buyitemsupto("health potion",mainBp,HpToBuy)
    wait(1500)
    buyitemsupto("mana potion",mainBp,HpToBuy)
    wait(2000)
    npcsay("bye")
    wait(1000)

    Cole isso em seu setup:

    -- Setup:

    -- Backpack Setup:
    MainBP = "Orange Backpack" -- The Main BP.
    PotionsBP = "camouflage backpack" -- Bp to put the pots.
    LootBP = "golden Backpack" -- Looting BP
    GoldBP = "beach Backpack" -- BP to gold.
    MainDPBP = "Brown Backpack" -- Main backpack on DP.
    StackableDPBP = "Purple Backpack" -- BP to deposit stackable loot on dp.
    LootDPBP = "Orange Backpack" -- BP to deposit loot on dp.

    -- Potions Setup:
    MPname = "mana potion" -- Name of mana potion.
    MPprice = 50 -- Price of mana potion to buy.
    MPtobuy = 100 -- How many mana potions to buy?
    MPtoback = 15 -- How many potions to back reffil?
    HPname = "health potion" -- Name of health potion.
    HPprice = 45 -- Price of health potion to buy
    HPtobuy = 30 -- How many potions buy?
    HPtoback = 10 -- How many potions to back reffil?

    -- Hunt:
    Captoback = 12 -- How much cap to back reffil?

    -- Healer:
    -- To edit the healer you need know what to do.
    -- Visit the forum to learn about it.
    Last edited by royale13; 04-29-2013 at 07:55 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
  •