Sign in to follow this  
Followers 0
Ginseng

Advice on a Gaming Script

5 posts in this topic

Is it possible to make a script that does 3 functions but only repeats 1 and ignores the others until certain parameters appear? If so can anyone tell me where i can find info on how to do this? Thanks.

Share this post


Link to post
Share on other sites



you mean?

do Function1 then 2 then 3 and keep repeating the third one?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Do
    Function1()
Until $parameter = "parameter" Or $parameter2 = "parameter"
Function2()
Function3()

This will repeat Function1() until $parameter equals the string "parameter", or until $parameter2 = "parameter". After 1 or both of those conditions are true, it executes Function2 and Function3.

Edited by sandman

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Thanks alot, ive had a few problems writing my script but so far ive solved all the problems myself through trail and error but this one got me Thanks for the help guys.

No narayanjr, i want function 1 to repeat and then execute function 2 if xxx parameter is met, and function 3 if yyy parameter is met, just like samdman shows, thanks for your post though.

Edited by Ginseng

Share this post


Link to post
Share on other sites

what game is tthis for :)

i need something else to make a script/bot for :P

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