Results 1 to 5 of 5

Thread: Repeat

  1. #1
    Normal User
    Join Date
    Apr 2012
    Posts
    65
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5

    Exclamation Repeat

    repeat
    openitem("blue backpack", "blue backpack")
    until ( itemcount("brown mushroom", "blue backpack") > 0)

    where is the bug here?

  2. #2
    Normal User jesusz0r's Avatar
    Join Date
    Jun 2012
    Posts
    221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    17
    Rep Power
    5
    PHP Code:
    while itemcount("brown mushroom""blue backpack") < do
    openitem("blue backpack""blue backpack")
    break
    end 
    try that one and tell me if it works
    Last edited by jesusz0r; 07-02-2012 at 04:08 PM.

  3. #3
    Normal User
    Join Date
    Apr 2012
    Posts
    65
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    it doesnt work

  4. #4
    Normal User jesusz0r's Avatar
    Join Date
    Jun 2012
    Posts
    221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    17
    Rep Power
    5
    Try it now i think its because i put < 0, i change it to < 1

  5. #5
    Normal User
    Join Date
    Apr 2012
    Posts
    65
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    ye its working it was stupid mistake I hadnt seen it before. anyway thanks for help ;P

Posting Permissions

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