Results 1 to 3 of 3

Thread: What's wrong with this action ?

  1. #1
    Banned
    Join Date
    May 2012
    Location
    Poland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0

    What's wrong with this action ?

    Hello ! I was trying to do backpack reopener on myself. I did, and it doesn't work. Can someone tell me why ?

    if windowcount() < 2 then
    pausewalking(2000)
    closewindows()
    wait(2000)
    openitem(mainBP, 'Back') wait(1000, 1500)
    resizewindows()
    openitem(noStackBP, MainBP, true) wait(1000, 1500)
    resizewindows()
    end
    end

    It does nothing, absolutely nothing...
    I've found other action, and it works :


    if windowcount() < 3 then
    pausewalking(10000)
    closewindows()
    if windowcount(Mainbp) < 1 and maround(2) == 0 and not lootbodies
    then
    wait(500)
    openitem(Mainbp, "back")
    wait(1000)
    resizewindows()
    wait(1000)
    end

    if windowcount(Lootbp) < 1 and maround(2) == 0 and not lootbodies
    then
    wait(500)
    openitem(Lootbp, Mainbp, true)
    wait(1000)
    resizewindows()
    end

    if windowcount(Goldbp) < 1 and maround(2) == 0 and not lootbodies
    then
    wait(500)
    openitem(Goldbp, Mainbp, true)
    wait(1000)
    resizewindows()
    end

    wait(500)
    pausewalking(0)
    end



    DON'T LOOK AT BP'S NAMES - IT'S FOR EXAMPLE (I know that in actions are different backpacks). So what's the problem in my action ? ;x Help, please. Reput for all helpful answers !

  2. #2
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    If something doesn't work, always open help->debug!



    You have an extra 'end' on the code that doesn't work

  3. #3
    Banned
    Join Date
    May 2012
    Location
    Poland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    Thanks Bug !

Posting Permissions

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