Results 1 to 4 of 4

Thread: Problem with deposit

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

    Problem with deposit

    Hello everybody,

    i comme here today cause my deposit script don't want to work but i don't know why :/
    the problem is my char go to depot, open backpack and deposit all is good but when he open the last Lootbp the waypoint stop and all stop work i must exit ibot and launch it again
    here is the script:

    the
    Code:
    setsettings("Settings\\CaveBot\\Settings\\OpenNext Bp","no")
    is do 1 waypoint before when i open backpack


    Code:
    reachgrounditem("depot")
    wait(1000,1500)
    openitem("depot")
    wait(1000,1500)
    openitem(3502,"locker")
    wait(1000,1500)
    openitem(Maindpbp,"Depot Chest")
    wait(1000,1500)
    
    local stk = {"strong health potion", "strong mana potion", "small diamond", "wyrm scale"}
    local unstk = {"focus cape", "wand of draconia", "wand of starstorm", "shockwave amulet", "hibiscus dress", "composite hornbow", "dragonbone staff", "lightning pendant", "boots of haste", "skull staff"}
    
    depotdeposit(stackdpbp,unpack(stk))
    wait(400,600)
    depotdeposit(lootdpbp,unpack(unstk))
    wait(400,600)
    
    while itemcount(Lootbp) > 0 do
    wait(1000,1500)
    openitem(Lootbp,Lootbp)
    wait(1000,1500)
    depotdeposit(stackdpbp,unpack(stk))
    wait(500,900)
    depotdeposit(lootdpbp,unpack(unstk))
    wait(500,900)
    end
    wait(1000)
    setsettings("Settings\\CaveBot\\Settings\\OpenNext Bp","yes")

    thank for help,
    sorry for my bad english, i'm french
    Last edited by kilirt@yahoo.fr; 08-11-2014 at 06:43 PM.

  2. #2
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    thats because there is while loop, and probably there is open mainbp and ibot see lootbp, thats why number of it is always > 0 and action will never ends, try that:
    Lua Code:
    reachgrounditem("depot")
    wait(1000,1500)
    openitem("depot")
    wait(1000,1500)
    openitem(3502,"locker")
    wait(1000,1500)
    openitem(Maindpbp,"Depot Chest")
    wait(1000,1500)
     
    local stk = {"strong health potion", "strong mana potion", "small diamond", "wyrm scale"}
    local unstk = {"focus cape", "wand of draconia", "wand of starstorm", "shockwave amulet", "hibiscus dress", "composite hornbow", "dragonbone staff", "lightning pendant", "boots of haste", "skull staff"}
     
    depotdeposit(stackdpbp,unpack(stk))
    wait(400,600)
    depotdeposit(lootdpbp,unpack(unstk))
    wait(400,600)
     
    while itemcount(Lootbp) > 1 do
    wait(1000,1500)
    openitem(Lootbp,Lootbp)
    wait(1000,1500)
    depotdeposit(stackdpbp,unpack(stk))
    wait(500,900)
    depotdeposit(lootdpbp,unpack(unstk))
    wait(500,900)
    end
    wait(1000)
    setsettings("Settings\\CaveBot\\Settings\\OpenNext Bp","yes")

  3. #3
    Normal User
    Join Date
    Sep 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    10
    Rep Power
    5
    It work perfectly thank you ^^


    ps: is it possible to change my user name ? don't want to show my email to everybody

  4. #4
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    Quote Originally Posted by kilirt@yahoo.fr View Post
    It work perfectly thank you ^^


    ps: is it possible to change my user name ? don't want to show my email to everybody
    Send mail to Jonatas and ask for it: billing@tibiaibot.com

Posting Permissions

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