Results 1 to 4 of 4

Thread: Open BP in BP

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

    Open BP in BP

    I have problem with this action:

    PHP Code:
    while itemcount("life ring",Mainbp) < 10  and itemcount("life ring"AmmoBP) > do
    moveitems("life ring"AmmoBPMainbp10-itemcount('life ring',Mainbp)) 
    wait(700,900)
    if 
    itemcount("life ring"AmmoBP) == 0 then
    openitem
    (AmmoBP,AmmoBP)
    wait(700,900)
    end
    end 
    When in first ammoBP are life rings, bot take them but when 1st ammoBP is empty he doesn't open next ammpBP which is in 1st ammoBP =/

    I need action which will open next bp when 1st ammoBP will be empty and when 2nd ammoBP will be empty he open next bp etc.

    ammoBP are in the same colour

    Plase help me xD

  2. #2
    Normal User
    Join Date
    Apr 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    PHP Code:
    while itemcount("life ring",Mainbp) < 10  and 
    itemcount("life ring"AmmoBP) < 
    then
    openitem
    ("AmmoBP","AmmoBP"
    else
    moveitems("life ring"AmmoBPMainbp10-itemcount('life ring',Mainbp)) 
    wait(700,900)
    if 
    itemcount("life ring"AmmoBP) == 0 then
    openitem
    (AmmoBP,AmmoBP)
    wait(700,900)
    end
    end 
    not tested, but I have helped!

  3. #3
    Normal User
    Join Date
    Sep 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    with 'while' in first line it take debug but when I change it on 'if' it take items form 1st bp, open next bp and close window xD so it doesnt work like I want =/

  4. #4
    Normal User AcidAlchamy's Avatar
    Join Date
    Jul 2012
    Location
    The Labratory
    Posts
    749
    Mentioned
    16 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    180
    Rep Power
    7
    you need to use something like this;
    PHP Code:
    if getcontainer.usedslots(AmmoBP) <= 1 then openitem(AmmoBP,AmmoBPend 
    That should work, just add it as a action.
    That right there, will make it so whenever your AmmoBP has 1 life ring or 0 life rings in it, it will open the next backpack inside of it.

    Also
    openitem("AmmoBP","AmmoBP") <----WRONGGG because you never put "" <-- Quotes around a declared variable!
    remember that
    Im going to work, let me know how it goes!

    Follow my Activity on Facebook?
    https://www.facebook.com/AcidAlchamyPage
    Download iBot : iBot v2.3.6 - Released
    My Free Scripts :
    ★Free Scripts★ By Acid Alchamy
    Acid Alchamy Updates :
    Updates About Acid Alchamy
    All Scripts by Acid Alchamy :
    All My Posted Scripts
    Latest Thread by Acid Alchamy:
    [Tutorial] Sellers - Avoid Getting Scammed

    +Rep Everyone That Helps You, I'll ALWAYS Return A +Rep.





Posting Permissions

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