SHAGGSTaRR commented on a Page, Sendraw nick randomiser.  -  Jul 18, 2008

/*
Sendraw nick randomiser by SHAGGSTaRR

Usage:
/set %sendrand_network network-you\'re-an-oper-on
/set %sendrand_channel #logged-channel
/set %sendrand_status 1
*/

on 1:load:{
:begin
var %tmp $?!=\" $network $active - Run initial setup?\"
if (%tmp == $true) {
set %sendrand_network $network
set %sendrand_channel $active
set %sendrand_status 0
}
elseif (%tmp == $false) {
echo -a //set $chr(37) $+ sendrand_network $network
echo -a //set $chr(37) $+ sendrand_channel $active
echo -a //set $chr(37) $+ sendrand_status 0
}
else goto begin
}

alias puppet { sendraw $active :: $+ $1 PRIVMSG $active $2- }

on 1:input:#:{
if (($network == %sendrand_network) && (%sendrand_status > 0)) {
if (($active == %sendrand_channel) && ($left($1,1) != /)) {
puppet $nick($chan, $r(1,$nick($chan,0))) $1-
;Measure how many lines have been spoken with the script:
;inc %sendrand_status
halt
}
;else breakdance
}
}

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.