LGrobert Elite Newbie
Number of posts : 40 Age : 37 Status : Founder Points : 9 Registration date : 2008-09-30
| Subject: turn bot on/off Fri Nov 21, 2008 1:46 pm | |
| here is a script to turn your bot on or off! - Code:
-
;check for start.mrc to be loaded for stability on 1:LOAD: { if ($script(start.mrc) == $null) { .load -rs scripts\start.mrc | /echo 4!!!!> Warning: A vital file has not been loaded, please restart the bot (press F9) to load this file. } } ;begin scripting on 1500:text:*botoff*:#: { if ($1 == %c $+ botoff) { .btoff | .set %sont off | .msg $nick 5To reactivate me, type %c $+ boton in the channel. | .msg $chan 5The Bot Is Now Inactive. | set %last.used.command botoff | set %last.person $nick } else { halt } } on 1500:text:*boton*:#: { if ($1 == %c $+ boton) { .bton | .set %sont on | .msg $chan 5The Bot Is Now Reactive. | set %last.used.command boton | set %last.person $nick } else { halt } }
alias bton { .load -rs scripts\antitalk.mrc .load -rs scripts\away.mrc .load -rs scripts\btserv.mrc .load -rs scripts\chancmds.mrc .load -rs scripts\chancmds2.mrc .load -rs scripts\commands.mrc .load -rs scripts\ctrl.mrc .load -rs scripts\def.mrc .load -rs scripts\greet.mrc .load -rs scripts\guestbook.mrc .load -rs scripts\help.mrc .load -rs scripts\link.mrc .load -rs scripts\mboard.mrc .load -rs scripts\oper.mrc .load -rs scripts\protect.mrc .load -rs scripts\register.mrc .load -rs scripts\seen.mrc .load -rs scripts\sk.mrc .load -rs scripts\status.mrc .load -rs scripts\various.mrc } alias btoff { .unload -rs scripts\antitalk.mrc .unload -rs scripts\away.mrc .unload -rs scripts\btserv.mrc .unload -rs scripts\chancmds.mrc .unload -rs scripts\chancmds2.mrc .unload -rs scripts\commands.mrc .unload -rs scripts\ctrl.mrc .unload -rs scripts\def.mrc .unload -rs scripts\greet.mrc .unload -rs scripts\guestbook.mrc .unload -rs scripts\help.mrc .unload -rs scripts\link.mrc .unload -rs scripts\mboard.mrc .unload -rs scripts\oper.mrc .unload -rs scripts\protect.mrc .unload -rs scripts\register.mrc .unload -rs scripts\seen.mrc .unload -rs scripts\sk.mrc .unload -rs scripts\status.mrc .unload -rs scripts\various.mrc }
| |
|