msg problem - 26/10/04 02:31 PM
Any way you can identify if a input start with .msg ? $1 return the msg i sent.. its sent by a remote event. :tongue:
alias msg { set %inptext $2- settime ; <<-- Set the timestamp to curent time if ($me isop $active) { goto op } if ($me isvo $active) { goto vo } else { goto normal } :op ; <<-- Show the @ prefix beside the nick. echo $color(own text) $active %tstmp $+ $chr(3) $+ %cbrackets $+ %right $+ $chr(3) $chr(3) $+ %opcolor $+ @ $+ $chr(3) $+ $chr(3) $+ $+ $me $chr(3) $+ %cbrackets $+ %left $+ $chr(3) $+ $chr(3) $+ %inptext | .msg $active %inptext | goto end :vo ; <<-- Show the + prefix beside the nick. echo $color(own text) $active %tstmp $+ $chr(3) $+ %cbrackets $+ %right $+ $chr(3) $chr(3) $+ %voiccolor $+ + $+ $chr(3) $+ $chr(3) $+ $+ $me $chr(3) $+ %cbrackets $+ %left $+ $chr(3) $+ $chr(3) $+ %inptext | .msg $active %inptext | goto end :normal ; <<-- Show nothing beside the nick. echo $color(own text) $active %tstmp $+ $chr(3) $+ %cbrackets $+ %right $+ $chr(3) $chr(3) $+ $chr(3) $+ $+ $me $chr(3) $+ %cbrackets $+ %left $+ $chr(3) $+ $chr(3) $+ %inptext | .msg $active %inptext | goto end :end }