Results 1 to 4 of 4

Thread: wait while is opening next backpack

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

    wait while is opening next backpack

    i have a problem, i make a deposit items in dp, but my action dont work i used this:
    i use a backpack in my depot, in this i have other backpack of the same color, and other inside of this, i have 20 backpacks, and in my action, i have to wait a time of delay while is opening next backpack, so, i put this to wait when the bot is open next backpack

    bpdp = "red backpack" is the backpack name in my dp

    while usedslots(bpdp) = 20 do
    wait(2000)
    end

  2. #2
    Normal User dach2's Avatar
    Join Date
    Jul 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    ..."Post denied. New posts are limited by number of URLs it may contain and checked if it doesn't contain forbidden words."

    sorry... forum is retarded..


    change: = 20 -> == 20
    while -> if
    do -> then
    Last edited by dach2; 08-19-2012 at 08:01 PM.

  3. #3
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by dach2 View Post
    ..."Post denied. New posts are limited by number of URLs it may contain and checked if it doesn't contain forbidden words."

    sorry... forum is retarded..


    change: = 20 -> == 20
    while -> if
    do -> then
    Correct Dach. If you run an action that checks 1 value with another, you need to say ==, if you say exmaple1 = example2, this tries to set example1 to be the same as exmaple2. When you define a new varable, you use 1 =. Eg. Local example1 = 20. Hope that made sense....

    PHP Code:
    local bpdp "Red Backpack"

    if usedslots(bpdp) == 20 then
    wait
    (2000)
    end 
    I haven't tested this myself, but should be fine.... If it works I'll be using it myself

  4. #4
    Normal User
    Join Date
    Aug 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    if i use "if usedslots(bpdp) == 20 then" only wait once 2000 ms and i need a delay for the time that used to opennextbp, could be 5 sec, or 20 sec, or 50 sec, i used a backpack iside other backpack inside other backpack, i used 40 backpacks, i try with:
    while usedslots(bpdp) == 20
    do wait(2000)
    end
    and dont work, :/ dont wait to open next backpack, its wrong use variable "usedslots"?

Posting Permissions

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