xxfxx Posted April 14, 2007 Share Posted April 14, 2007 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;;;; Link to comment Share on other sites More sharing options...
xxfxx Posted April 14, 2007 Author Share Posted April 14, 2007 i know this should not be to hard but for some dam reason i cant get it to stop after a single run Link to comment Share on other sites More sharing options...
Azazel Posted April 14, 2007 Share Posted April 14, 2007 i know this should not be to hard but for some dam reason i cant get it to stop after a single runHi xxfxxWhy do you make a loop inside your script ?Delete this lines$Paused = Not $PausedWhile $Pausedand Wend make your script run onceStart again by pressing "Home"Aza Link to comment Share on other sites More sharing options...
SleepyXtreme Posted April 14, 2007 Share Posted April 14, 2007 (edited) 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 April 14, 2007 by SleepyXtreme Link to comment Share on other sites More sharing options...
xxfxx Posted April 14, 2007 Author Share Posted April 14, 2007 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now