Sign in to follow this  
Followers 0
Guest catvomit

If...Then question

2 posts in this topic

hey I made a script to reset the game diablo II every two successful games joined.

If WinExists("PBot(by jhj) Control Center", "Success: 2") Then 
$restart = 1 
EndIf 

If WinExists("PBot(by jhj) Control Center", "Success: 4") Then 
$restart = 1 
EndIf 

If WinExists("PBot(by jhj) Control Center", "Success: 6") Then 
$restart = 1 
EndIf 

If WinExists("PBot(by jhj) Control Center", "Success  : 8") Then 
$restart = 1 
EndIf

how would i tell the script, that i want it to reset also on the 10th game, 12th game, 14th game.... and so on all the way up to 1000?

do i have to type each one out or there a command for this???

Share this post


Link to post
Share on other sites



RTFM

For $c = 2 to 1000 Step 2
   If WinExists("PBot(by jhj) Control Center", "Success: " & $c) Then 
      $restart = 1 
   EndIf
Next

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0