Results 1 to 3 of 3

Thread: Simple check for backpack request

  1. #1
    Premium User
    Join Date
    May 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Simple check for backpack request

    I just need someone to check one thing: why this script is not opening BPs automatically. I fixed MANY things on this script, but this one I couldn't. It's only opening the BPs after the north stairs in Ank, then if you close, it only opens automatically if you open and close the "setup" in actions, and this only because I changed the code line there, but still didn't worked, at least now resize the window correctly.

    So how do I fix it?

    The script I changed and still don't work, but at least open the BPs when it goes for refill and if I find a way to make it check more often, it seems like the way to go is;

    if windowcount() < 2 then
    setcavebot("no")
    settargeting("no")
    closewindows()
    wait(1000)
    openitem(mainBP, "back")
    wait(1000,2000)
    resizewindows()
    wait(1000,2000)
    openitem(lootBP, mainBP, true)
    wait(1000,2000)
    resizewindows()
    wait(1000,2000)
    setcavebot("yes")
    settargeting("yes")
    end


    And the code of the waypoint after the stairs, the only time it opens the backpacks automatically is;

    closewindows()
    wait(800,1400)
    openitem(mainBP, "Back")
    wait(800,1400)
    resizewindows()
    openitem(goldBP, mainBP, true)
    wait(800,1400)
    resizewindows()


    Thank you.
    Attached Files Attached Files
    Last edited by henriquebc; 05-14-2013 at 12:55 PM.

  2. #2
    Normal User
    Join Date
    Jul 2012
    Location
    California, USA
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    14
    Rep Power
    5
    PHP Code:
    closewindows()
    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp","no")

    while 
    windowcount() < do
    closewindows()
    wait(1000,2000)
    openitem(MainBPname"back"true)
    wait(1000,2000)
    resizewindows()
    wait(1000,2000)
    openitem(LootBPnameMainBPnametrue)
    wait(1000,2000)
    end 
    bot does refill action + anything else needed ....


    PHP Code:
    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp","yes"
    Check the functions and other information available.

    openitem(LootBPname, MainBPname, true)
    where
    openitem(Open window String, from window OptionalString, Boolean new window)

    Keep in mind that strings not declared as a variable must be surrounded by quoatation ("")
    Example:
    PHP Code:
    while windowcount() < do
    closewindows()
    wait(1000,2000)
    openitem("backpack""back"true)
    wait(1000,2000)
    resizewindows()
    wait(1000,2000)
    openitem("Green Backpack""Backpack"true)
    wait(1000,2000)
    end 
    Last edited by papapimp; 05-14-2013 at 02:57 PM.
    If at first you don't succeed, call it v 1.0

  3. #3
    Premium User
    Join Date
    May 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Thank you very much for your help.

    I fixed it copying a script for the actions > list from another script. Then it created another problem, when it was doing refill, the script was set to close all windows every freaking time, in every NPC. So it sometimes was bugging with the new open BP system that was trying to open the BPs at the same time that the waypoint script was trying to close/then open again, and buying all the stuff even if not necessary. So I fixed it by going to every NPC waypoint and erasing that closewindows/open backpacks part, and leaving the rest.

    Jesus christ, the only thing that kept me with this script is the all 4 caves system. Now I think it's all fixed. I'm using iBot for 3 days man, this script "taught" me a lot, lol.

Posting Permissions

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