Results 1 to 3 of 3

Thread: Action help

  1. #1
    Normal User Damyrup's Avatar
    Join Date
    Apr 2013
    Location
    www.ssocialscripts.com
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    40
    Rep Power
    4

    Action help

    Hello I need to create one action that check that my supply BP is open Before going to next wpt.

    closewindows()
    wait(500, 1000)
    openitem(mainbp, 'back')
    wait(500, 1000)
    openitem(supbp, mainbp, true)
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)


    what can i put on last line to make sure it have opened SUPBP?

  2. #2
    Normal User
    Join Date
    May 2013
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    16
    Rep Power
    4
    Try this:
    Code:
    while windowcount(mainbp) ~= 1 or windowcount(supbp) ~= 1 or windowcount() ~= 2 do
      closewindows()
      wait(400, 600)
    
      openitem(mainbp, 'back')
      wait(400, 600)
      resizewindow(mainbp, 0)
      wait(400, 600)
    
      openitem(supbp, mainbp, true)
      wait(400, 600)
      resizewindow(supbp, 0)
      wait(400, 600)
    end
    Hope it helps!
    Last edited by goran21; 06-15-2013 at 08:36 AM.

  3. #3
    Normal User
    Join Date
    May 2013
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    16
    Rep Power
    4
    then a new action after with
    Code:
    if windowcount(mainbp) == 1 and windowcount(supbp) == 1 and windowcount() == 2 gotolabel('buypots')
    else 
    gotolabel('fixbps')
    end
    Should work.

Posting Permissions

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