Results 1 to 3 of 3

Thread: If x bp closes it opens it again

  1. #1
    iBot User gullefjung's Avatar
    Join Date
    Aug 2012
    Location
    Stockholm
    Posts
    29
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    13
    Rep Power
    5

    If x bp closes it opens it again

    As the title says, i have a problem with a bp getting closed sometimes, so i wondered if i could get an action for it

  2. #2
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    Lua Code:
    if windowcount('red backpack') == 0 then 
    openitem("red backpack", "blue backpack", true)
    wait(700,800)
    end

  3. #3
    iBot User
    Join Date
    Nov 2013
    Posts
    27
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    11
    Rep Power
    4
    BY BLAKW



    --[[
    Name: Auto Reopen Backpacks by BlakW
    Version: v1.0.0
    Status: Works
    TODO:
    ]]--


    --Reopen backpacks:
    local reopenBps = useReopenBps

    --Main Backpack Name:
    local mainBackpackName = mainBp

    --Loot Backpack Name:
    local lootBackpackName = lootBp

    --Supplies Backpack Name:
    local supBackpackName = supBp

    --Gold Backpack Name:
    local goldBackpackName = goldBp


    --Reopen Backpacks Engine:
    if ((reopenBps == ("yes")) and (windowcount() < 4))
    then
    pausewalking(20000)
    wait(100, 200)
    closewindows()
    wait(1000, 1500)
    if ((windowcount(mainBackpackName) == 0) and (useMainBp == ("yes")))
    then
    openitem(mainBackpackName, "back")
    wait(1000)
    resizewindows()
    end
    wait(1000, 1500)
    if ((windowcount(supBackpackName) == 0) and (windowcount(mainBackpackName) == 1) and (useSupBp == ("yes")))
    then
    openitem(supBackpackName, mainBackpackName, true)
    wait(1000)
    resizewindows()
    end
    wait(1000, 1500)
    if ((windowcount(lootBackpackName) == 0) and (windowcount(mainBackpackName) == 1) and (useLootBp == ("yes")))
    then
    openitem(lootBackpackName, mainBackpackName, true)
    wait(1000)
    resizewindows()
    end
    wait(1000, 1500)
    if ((windowcount(goldBackpackName) == 0) and (windowcount(mainBackpackName) == 1) and (useGoldBp == ("yes")))
    then
    openitem(goldBackpackName, mainBackpackName, true)
    wait(1000)
    resizewindows()
    end
    wait(1000, 1500)
    end






    Set NO if you wont use SUPPLIES BACKPACK.
    Last edited by Xafter; 04-25-2014 at 06:28 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
  •