mIRC Home    About    Download    Register    News    Help

Print Thread
On and off for my scripts. #247237 24/07/14 04:38 PM
Joined: Jul 2014
Posts: 19
D
Dcease Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jul 2014
Posts: 19
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.

Re: On and off for my scripts. [Re: Dcease] #247253 25/07/14 01:04 AM
Joined: Jul 2014
Posts: 48
A
AeonPsych Offline
Ameglian cow
Offline
Ameglian cow
A
Joined: Jul 2014
Posts: 48
I'm pretty sure I already told you how to do this.


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

Re: On and off for my scripts. [Re: Dcease] #247260 25/07/14 06:55 AM
Joined: Apr 2014
Posts: 191
B
blessing Offline
Vogon poet
Offline
Vogon poet
B
Joined: Apr 2014
Posts: 191
read help files about enable and disable groups
/help groups
/help /enable
/help /disable

Re: On and off for my scripts. [Re: AeonPsych] #247267 25/07/14 01:06 PM
Joined: Jul 2014
Posts: 19
D
Dcease Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jul 2014
Posts: 19
Originally Posted By: AeonPsych
I'm pretty sure I already told you how to do this.


edit: yup, I did: http://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.

Re: On and off for my scripts. [Re: Dcease] #247278 25/07/14 09:37 PM
Joined: Jul 2014
Posts: 48
A
AeonPsych Offline
Ameglian cow
Offline
Ameglian cow
A
Joined: Jul 2014
Posts: 48
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.