I was mostly just bored, and had an idea to play around with the command line for LPC coding I used to do way back when. I liked the interface about setting variables, and thought it'd be fun to make an IRC version.
I have tested it and it does work. There's no real reason for it unless you want something fun to use for your bot. Just remove or comment out the msg part. Used it for the sole purpose of testing.
Constructive criticism accepted, but negative comments are not welcome and will be removed.
on *:text:@.*:#:{
var %z $len($1)
var %str $remove($1,$chr(41))
var %x 0
while %x < %z {
inc %x
var %nick $instok(%nick,$right($left($gettok(%str,2,46),%x),1),%x,32)
var %param $instok(%param,$right($left($gettok(%str,2,62),%x),1),%x,32)
var %var $gettok(%str,2,40)
if $gettok(%nick,%x,32) == $chr(45) {
var %nick.str $remove(%nick,$chr(45),$chr(32))
msg # %nick.str
}
if $gettok(%param,%x,32) == $chr(40) {
var %param.str $remove(%param,$chr(40),$chr(32))
msg # %param.str
}
}
msg # %var
}
A coding that I know some MUDs use, and the command I made for IRC was a command that is used to change things about certain mobs on the fly, like weight, str, etc.
You can also screw with people with it by executing procs, like @.bob->i_die() would cause the target, bob, to be killed instantly by running the i_die() proc.
Best I can tell you is look it up online, and more than likely, you'll run into many examples being MUDs.