kekku500 Posted August 10, 2007 Share Posted August 10, 2007 how i can make like if says !brb then just says [NICK] Will Be Right Back! Reason: NONE and if says !brb toilet then says [NICK] Will Be Right Back! Reason: toilet Link to comment
SanZoR Posted August 10, 2007 Share Posted August 10, 2007 if ($3 == !brb) { ;$4-:Reason if ($4- == $null) { mta.text $1 $mta.nick($1,$2) will be right back! } else mta.text $1 $mta.nick($1,$2) will be right back - Reason: $4- } Link to comment
kekku500 Posted August 10, 2007 Author Share Posted August 10, 2007 thx, but how i can also make !hi command like !hi -> [NICK] Says Hello To Everyone! !hi raz -> [NICK] Says Hello To Raziel! I mean it wont say raz but it will say full name, how i can do that? Link to comment
SanZoR Posted August 10, 2007 Share Posted August 10, 2007 on *:SIGNAL:mta.command: { var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$gus.getid($1,$4)),$2) if ($3 == !hi) || ($3 == !hello) { ;$4-:Reason if ($4- == $null) { mta.text $1 $mta.nick($1,$2) says hello to everyone! } else mta.text $1 $mta.nick($1,$2) says hello to $mta.nick($1,%a) } - or - on *:SIGNAL:mta.command: { var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$gus.getid($1,$4)),$2) if ($3 == !hi) || ($3 == !hello) { ;$4-:Reason if ($4- == $null) { mta.text $1 $mta.nick($1,$2) says hello to everyone! } else mta.pm $1 %a $mta.nick($1,$2) says hello to you! } Link to comment
lil Toady Posted August 10, 2007 Share Posted August 10, 2007 (edited) k, here's mine for both on *:SIGNAL:mta.command:{ if ($3 == !brb) mta.text $1 $mta.nick($1,$2) will be right back! $iif($4,Reason: $4-) elseif ($3 == !hi) mta.text $1 $mta.nick($1,$2) says hello to $iif($mta.getid($1,$4),$mta.nick($1,$mta.getid($1,$4)),everyone) $+ ! } Edited August 10, 2007 by Guest Link to comment
SanZoR Posted August 10, 2007 Share Posted August 10, 2007 k, here's mine for both on* :SIGNAL:mta.command:{ if ($3 == !brb) mta.text $1 $mta.nick($1,$2) will be right back! $iif($4,Reason: $4-) elseif ($3 == !hi) mta.text $1 $mta.nick($1,$2) says hello to $iif($mta.getid($1,$4),$mta.nick($1,$mta.getid($1,$4)),everyone) $+ ! } damn you Link to comment
Recommended Posts