Results 1 to 3 of 3

Thread: Opening Bps Problem

  1. #1
    Normal User Dogma's Avatar
    Join Date
    May 2012
    Location
    Dolera
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5

    Opening Bps Problem

    Code:
    if islocation(5)
    while windowcount(BP_MAIN) > 0 do
    closewindow(BP_MAIN)
    wait(500)
    while windowcount(BP_RARE) > 0 do
    closewindow(BP_RARE)
    wait(500)
    while windowcount(BP_GOLD) > 0 do
    closewindow(BP_GOLD)
    wait(500)
    while windowcount(BP_MAIN) ~=1 do
    openitem(BP_MAIN,'back',true,0)
    wait(1000,1500)
    while windowcount(BP_RARE) ~=1 do
    openitem(BP_RARE,BP_MAIN,true,0)
    wait(1000)
    while windowcount(GP_GOLD) ~=1 do
    openitem(BP_GOLD,BP_MAIN,true,0)
    wait(1300,1450)
    Someone please inform me of my problem. Thanks.

    --------Official Threads--------
    Free Scripts
    Paid Scripts
    ~ Private Message ~
    MSN ~ meredithjm13@hotmail.com

  2. #2
    Normal User Nightcrawler's Avatar
    Join Date
    Apr 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    16
    Rep Power
    5
    Problem with your syntax.

    Code:
    if islocation(5) then
      
      while windowcount(BP_MAIN) > 0 do
        closewindow(BP_MAIN)
        wait(500)
      end
    
      while windowcount(BP_RARE) > 0 do
        closewindow(BP_RARE)
        wait(500)
      end
    
      while windowcount(BP_GOLD) > 0 do
        closewindow(BP_GOLD)
        wait(500)
      end
    
      while windowcount(BP_MAIN) ~=1 do
        openitem(BP_MAIN,'back',true)
        wait(1000,1500)
      end
    
      while windowcount(BP_RARE) ~=1 do
        openitem(BP_RARE,BP_MAIN,true)
        wait(1000)
      end
    
      while windowcount(GP_GOLD) ~=1 do
        openitem(BP_GOLD,BP_MAIN,true)
        wait(1300,1450)
      end
    
    end

  3. #3
    Normal User Dogma's Avatar
    Join Date
    May 2012
    Location
    Dolera
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Thanks but earlier i simply used the closewindows() action and it started to work.

    --------Official Threads--------
    Free Scripts
    Paid Scripts
    ~ Private Message ~
    MSN ~ meredithjm13@hotmail.com

Posting Permissions

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