Results 1 to 6 of 6

Thread: Need help with withdraw action!

  1. #1
    Normal User
    Join Date
    Sep 2012
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5

    Need help with withdraw action!

    local mana = positive(20 - itemcount("mana potion")) * 50
    local spear = positive(20 - itemcount("royal spear")) * 15
    local Total = mana + spear

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

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



    At the moment the bot withdraws for a full stack of spears/pots, it doesnt take into account that i already have some of both left!
    I need some help so that it refills "MAX 20 spears" and "MAX 20 mana pots", it shouldnt refill 20x everytime it backs that would ruin my cap and in the end ill land on 100+ MPs -.-


    Also on a side note, how do i reset "Monitor my hunt" HUD, the only thing that resets when i press 'reset HUD' is the Gold/H, i want to be able to reset everything.
    Last edited by Xudam; 01-13-2014 at 05:00 AM.

  2. #2
    Normal User
    Join Date
    Jul 2012
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Are you using Mana Potion and Royal Spears, or another type of spears and pots?

  3. #3
    Normal User
    Join Date
    Sep 2012
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    just small mana pots(50gp) and royal spears.

  4. #4
    Normal User
    Join Date
    Sep 2012
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    Still need help!

  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
    Im not sure what you need but try it:
    Lua Code:
    local ManaBuy = 100
    local SpearsBuy = 40
    local mana = positive(ManaBuy - itemcount("mana potion")) * 50
    local spear = positive(SpearsBuy - itemcount("royal spear")) * 15
    local Total = mana + spear
    say("hi")
    wait(1500,2500)
    npcsay("deposit all")
    wait(200,300)
    npcsay("yes")
    wait(200,300)
    if Total > 0 then
    npcsay("withdraw "..Total)
    wait(200,300)
    npcsay("yes")
    wait(200,300)
    end

  6. #6
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Quote Originally Posted by Xudam View Post
    At the moment the bot withdraws for a full stack of spears/pots, it doesnt take into account that i already have some of both left!
    I need some help so that it refills "MAX 20 spears" and "MAX 20 mana pots", it shouldnt refill 20x everytime it backs that would ruin my cap and in the end ill land on 100+ MPs -.-


    Also on a side note, how do i reset "Monitor my hunt" HUD, the only thing that resets when i press 'reset HUD' is the Gold/H, i want to be able to reset everything.
    1. Bank Action: itemcount() count your spears from backpack not from "left hand" you should use weaponamount [int] to count royal spears.
    2. Reset HUD doesn't work properly with MMH HUD cause it use third part library (sirmate library) ibot 2.2.6 come with completly new HUD system and features, stay tunned

Posting Permissions

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