XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 6 of 6

Thread: Reconnecter with backpacks?

  1. #1

    Join Date
    May 2013
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reconnecter with backpacks?

    ok so now that we have oxtools we can reconnect all the time in server save etc
    but my question is, how do we open the backpacks at login? i cant find any script for it
    my char died yesterday because of reconnect and backpacks didn't open so would be great if i could fix this xD

    i know it auto opens in the official xenobot scripts but for our own scriptss? we, the noobs, rly need help with scriping using all the new stuffs u added into this binary update.
    Last edited by alehopper; 12-16-2015 at 05:49 AM.

  2. #2
    Senior Member Aristeus's Avatar
    Join Date
    Jun 2013
    Location
    Sweden
    Posts
    600
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by alehopper View Post
    ok so now that we have oxtools we can reconnect all the time in server save etc
    but my question is, how do we open the backpacks at login? i cant find any script for it
    my char died yesterday because of reconnect and backpacks didn't open so would be great if i could fix this xD

    i know it auto opens in the official xenobot scripts but for our own scriptss? we, the noobs, rly need help with scriping using all the new stuffs u added into this binary update.
    You'll need to make a module that checks if your backpacks are open and if they aren't it will open the them. All my hunting scripts use modules that do this.

  3. #3

    Join Date
    May 2013
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk kkkkkkkkkkkkkkkkkkkkkk ur lib is fking anti steal shit LOOOOL
    very easy ty i go buy windbot only for that feature then 1 search instantly gave me multiple hits there unlike this dead forum that contains 0
    Last edited by alehopper; 12-17-2015 at 11:34 AM.

  4. #4
    Moderator shadowart's Avatar
    Join Date
    Dec 2014
    Location
    Sweden
    Posts
    1,985
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by alehopper View Post
    kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk kkkkkkkkkkkkkkkkkkkkkk ur lib is fking anti steal shit LOOOOL
    very easy ty i go buy windbot only for that feature then 1 search instantly gave me multiple hits there unlike this dead forum that contains 0
    This used to be stickied before the forum wipe, written by @Furpan.
    lua code:

    local Reset_Amount = 2 -- amounts of backpacks to open (must be sorted first to last to open, inside main backpack)
    local Offline_Time = 1 -- increase this is it resets at random points meanwhile online

    function Self.isOffline()
    local s = os.clock()
    wait(200)
    getSelfID()
    if ((os.clock() - s) > Offline_Time) then
    return true
    end
    end

    function OpenBackpacks(amount)
    Cavebot.Stop()
    Self.CloseContainers()
    Self.OpenMainBackpack(true)
    wait(500 + Self.Ping())
    if #Container.GetAll() == 1 then
    for slot, item in Container.GetFirst():iItems() do
    if Item.isContainer(item.id) then
    Container.GetFirst():UseItem(slot, false)
    wait(500 + Self.Ping())
    Container.GetLast():Minimize()
    wait(100 + Self.Ping())
    end
    if #Container.GetAll() == amount then break end
    end
    end
    if #Container.GetAll() ~= amount then
    print('Backpack reset not complete, recursing.')
    OpenBackpacks(amount)
    end
    Cavebot.Start()
    end

    Module.New('BP_RESET', function()
    if Self.isOffline() then OpenBackpacks(Reset_Amount) end
    end)

  5. #5

    Join Date
    May 2013
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by shadowart View Post
    This used to be stickied before the forum wipe, written by @Furpan.
    lua code:

    local Reset_Amount = 2 -- amounts of backpacks to open (must be sorted first to last to open, inside main backpack)
    local Offline_Time = 1 -- increase this is it resets at random points meanwhile online

    function Self.isOffline()
    local s = os.clock()
    wait(200)
    getSelfID()
    if ((os.clock() - s) > Offline_Time) then
    return true
    end
    end

    function OpenBackpacks(amount)
    Cavebot.Stop()
    Self.CloseContainers()
    Self.OpenMainBackpack(true)
    wait(500 + Self.Ping())
    if #Container.GetAll() == 1 then
    for slot, item in Container.GetFirst():iItems() do
    if Item.isContainer(item.id) then
    Container.GetFirst():UseItem(slot, false)
    wait(500 + Self.Ping())
    Container.GetLast():Minimize()
    wait(100 + Self.Ping())
    end
    if #Container.GetAll() == amount then break end
    end
    end
    if #Container.GetAll() ~= amount then
    print('Backpack reset not complete, recursing.')
    OpenBackpacks(amount)
    end
    Cavebot.Start()
    end

    Module.New('BP_RESET', function()
    if Self.isOffline() then OpenBackpacks(Reset_Amount) end
    end)

    Thanks man. Been using ever since u posted but sometimes it bugs out, not sure what causes it. i thought it was looting but its disaabled when u log in.

    obviously best would be such a "bp listener" like xenobot offical scripts has but maybe thats too hard to add? ive been trying messing around with it but their script is way too complicated for me :T
    i managed to get it kinda working but its super messy solution and idk if i fckd something up so im scared it will do something really stupid and get me banned

    and after using that other bot, i see xenobot also has many advantages over it but still some the other bot has perks too. i will stick with xeno. it works great just needs to fix this reconnecter so its good
    Last edited by alehopper; 01-01-2016 at 06:35 AM.

  6. #6

    Join Date
    Oct 2013
    Posts
    97
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by shadowart View Post
    This used to be stickied before the forum wipe, written by @Furpan.
    lua code:

    local Reset_Amount = 2 -- amounts of backpacks to open (must be sorted first to last to open, inside main backpack)
    local Offline_Time = 1 -- increase this is it resets at random points meanwhile online

    function Self.isOffline()
    local s = os.clock()
    wait(200)
    getSelfID()
    if ((os.clock() - s) > Offline_Time) then
    return true
    end
    end

    function OpenBackpacks(amount)
    Cavebot.Stop()
    Self.CloseContainers()
    Self.OpenMainBackpack(true)
    wait(500 + Self.Ping())
    if #Container.GetAll() == 1 then
    for slot, item in Container.GetFirst():iItems() do
    if Item.isContainer(item.id) then
    Container.GetFirst():UseItem(slot, false)
    wait(500 + Self.Ping())
    Container.GetLast():Minimize()
    wait(100 + Self.Ping())
    end
    if #Container.GetAll() == amount then break end
    end
    end
    if #Container.GetAll() ~= amount then
    print('Backpack reset not complete, recursing.')
    OpenBackpacks(amount)
    end
    Cavebot.Start()
    end

    Module.New('BP_RESET', function()
    if Self.isOffline() then OpenBackpacks(Reset_Amount) end
    end)
    Is there a way to make this script without the reconect function and add the script to a label? So the bot opens all my backpacks if he reached the label ? would be damn awesome. My bot sometimes closes 1 or more bps idk how it happens :s

Posting Permissions

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