mIRC Homepage
Posted By: Dcease On and off for my scripts. - 24/07/14 04:38 PM
I just wants to know if theres a method to turn on and off all my scripts with just !funon and !funoff, I can give you a preview of one of the scripts if needed.
Posted By: AeonPsych Re: On and off for my scripts. - 25/07/14 01:04 AM
I'm pretty sure I already told you how to do this.


edit: yup, I did: https://forums.mirc.com/ubbthreads.php/topics/247182/On/off_script.#Post247182
Posted By: blessing Re: On and off for my scripts. - 25/07/14 06:55 AM
read help files about enable and disable groups
/help groups
/help /enable
/help /disable
Posted By: Dcease Re: On and off for my scripts. - 25/07/14 01:06 PM
Originally Posted By: AeonPsych
I'm pretty sure I already told you how to do this.


edit: yup, I did: https://forums.mirc.com/ubbthreads.php/topics/247182/On/off_script.#Post247182

You pretty much just said < add funscript here > and what if it has more lines? or it's like roulette. That's a long fun script.
Posted By: AeonPsych Re: On and off for my scripts. - 25/07/14 09:37 PM
doesn't matter how long the script is, as long as the brackets are setup correctly so that everything executes within the same if/else statement


edit: or you can follow the exact same format for the slap script you had, with how the flood variable executes. If you follow that format, this would basically be your new outline:
Code:
<command trigger>{
   if (%funvariable) { return }
   ;everything
   ;coded
   ;here
   ;will execute
   ;if the variable
   ;is false/off
   ;no matter
   ;how many lines
   ;even this line
}


Again, you had everything you needed to work off of in that code snippet you posted: the trigger command, variables, how to check variables, and code to execute. I'm not sure why you are still struggling with this, as it seems you already have the basic concepts of scripting down, since you were already able to write that snippet of code you posted.
© mIRC Discussion Forums