Jump to content
Sign in to follow this  
xxfxx

fast help

Recommended Posts

xxfxx

all i need is for this to play once and be set to play again at any time.

CODE
; Script Start - Add your code below here

;;;; Global Pause Start;;;;

Global $Paused

;;;; Global Pause End;;;;

;;;; Hotkey Settings Start;;;;

HotKeySet("{HOME}", "TogglePause")

HotKeySet("{END}", "Terminate")

;;;; Hotkey Settings End;;;;

;;;; Script Global Sleep Start;;;;

While 1

Sleep(1000)

WEnd

;;;; Script Global Sleep End;;;;

;;;; Toggle Pause and Splash On/Off Start;;;;

Func TogglePause()

$Paused = Not $Paused

While $Paused

Send("{ENTER}")

Send("LAST CHAOS Fair Play Rules & PLAY NICE POLICIES. ")

Sleep(100)

Send("{ENTER}")

Sleep(100)

Send("{ENTER}")

Send("1. Foul language is not permitted, in any language.")

Sleep(100)

Send("{ENTER}")

Sleep(100)

Send("{ENTER}")

Send("3. You may not disrupt the normal playability of a map or location. ")

Sleep(100)

Send("{ENTER}")

Sleep(100)

Send("{ENTER}")

Send("Intentionally denying a particular resource or resources to the players. e.g. Spawn Camping and Kill Stealing ")

Sleep(100)

Send("{ENTER}")

Sleep(100)

Send("{ENTER}")

Send("FRAP is now running and will be forwarded to a game sage, for review under violation of Fair Play Rules for Last Chaos & PLAY NICE POLICIES.")

Sleep(1000)

Send("{ENTER}")

WEnd

EndFunc

;;;; Toggle Pause and Splash On/Off End;;;;

;;;; End/Close/Terminate Function Start;;;;

Func Terminate()

Exit

EndFunc

;;;; End/Close/Terminate Function End;;;;

Share this post


Link to post
Share on other sites
xxfxx

i know this should not be to hard but for some dam reason i cant get it to stop after a single run

Share this post


Link to post
Share on other sites
Azazel

i know this should not be to hard but for some dam reason i cant get it to stop after a single run

Hi xxfxx

Why do you make a loop inside your script ?

Delete this lines

$Paused = Not $Paused

While $Paused

and Wend

make your script run once

Start again by pressing "Home"

Aza

Share this post


Link to post
Share on other sites
SleepyXtreme

I like doing things this way when i want to turn things on and off:

$counter=2

While mod($counter,2)=0

$counter =$counter +1

wend

see if this helps, let me know

Edited by SleepyXtreme

Share this post


Link to post
Share on other sites
xxfxx

ok not sure what a citation is there but i guess becaus i said that one word but anyways, back to work here i took out the three lines and it was a no go so I tryd the next one and changed that some and it workd out well thak you for the prompt reply and sory on that word wont happn agian

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.