hey peeps i was wondering if someone could help me with a piece of codeing where if someoen joins my room and are on a host list i can add their nick or gate adn my bot will dehost them adn not let them have a hammer in any room im owner in plz.and thanx very much for ur time in advance
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.
Awesome Thanx for ur help GateKeeper and all the other nice people's im gona ask in the future
EDIT: anyone that helps you isn't a lame... so don't call them that or your questions wont be aired here
im sorry gate u misuderstood me i ment that when i ask more lame ?'s i wasnt referring to anyone here as being lame i hope this clears things up as i was very happy to get a reply so quick. Sorry for any misunderstanding and thanx for ur help again
Sign in to reply or start a new topic where your account has permission.