LPC cmd line

By `JoKeR´ on Nov 21, 2008

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
}

Comments

Sign in to comment.
Jonesy44   -  Nov 23, 2008

That you do, if you got time.

 Respond  
irchainscriptz   -  Nov 23, 2008

Learn something new every day

 Respond  
`JoKeR´   -  Nov 22, 2008

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.

 Respond  
Jonesy44   -  Nov 22, 2008

What's LPC? :L

 Respond  
`JoKeR´   -  Nov 22, 2008

Comments/Suggestions welcome.

 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.