menu menubar {
Dehost List
.$iif(%gk.dehost == on,$style(2)) Turn On : set %gk.dehost on
.$iif(%gk.dehost != on,$style(2)) Turn Off : unset %gk.dehost
.-
.Message to send
..View : echo -at Message : %gk.dehostmsg
..Change : set %gk.dehostmsg $$?="Enter the new message which you would like to be sent to the room when dehost occurs"
.-
.View Dehost list : { /window @dehost | /loadbuf $lines(dehost.txt) @dehost dehost.txt }
.Open Dehost List : /run notepad.exe dehost.txt
.Clear Dehost List
..Are You Sure? : /write -c dehost.txt
}
menu nicklist {
Dehost List
.$iif($read(dehost.txt, w, $ial($opnick).addr $+ *) != $null,$style(2)) Add : /write dehost.txt $ial($$1).addr $$?"Please enter a note so that you can regonise the gate"
.$iif(!$read(dehost.txt, w, $ial($opnick).addr $+ *),$style(2)) Remove : { var %x = $read(dehost.txt, s, $ial($$1).addr | /write -d $+ $readn dehost.txt }
}
on @:JOIN:#: { if (%gk.dehost == on) && ($nick != $me) && ($nick isop $chan) && ($read(dehost.txt, w, $ial($opnick).addr $+ *) != $null) { /mode $chan -o $nick | msg $chan %gk.dehostmsg } }
on *:OP:#: { if ($me isop $chan) && (%gk.dehost == on) && ($opnick != $me) && ($read(dehost.txt, w, $ial($opnick).addr $+ *) != $null) { /mode $chan -o $opnick | msg $chan %gk.dehostmsg } }
basically all you need to do is copy and paste this to a new remote script. Then goto the menu bar, locate Dehost list, turn it on, set the message you want to send when it activiates. Then start adding people to the list [right click on the user in the nicklist, and click add]. And it will do the rest for you.