Action

By airfreshner on Jul 26, 2007

Simple on action script designed for a bot so when someone does /me pokes bot the bot will reply /me pokes person back. Has poke, snog, hug, cuddles, huggles, touches & slaps.

Works Perfect fully tested and running on my bot.

Simply Load into remotes!

on *:ACTION:*:#: {
  if ($1 == hugs) goto hug
  if ($1 == cuddles) goto hug
  if ($1 == huggles) goto hug
  if ($1 == touches) goto touch
  if ($1 == pokes) goto poke
  if ($1 == snogs) goto snog
  if ($1 == slaps) goto slap
  halt
  :hug
  if ($2 == $me) {
    describe # hugs $nick back.
    else halt
    halt
  }
  :touch
  if ($2 == $me) {
    describe # touches $nick back .
    else halt
    halt
  }
  :Poke
  if ($2 == $me) {
    describe # pokes $nick back!
    else halt
    halt
  }
  :snog
  if ($2 == $me) {
    describe # snogs $nick back.
    else halt
    halt
  }
  :slap
  if ($2 == $me) {
    describe # slaps $nick back.
    else halt
    halt
  }
}

Comments

Sign in to comment.
Mushufasa   -  Jul 28, 2007

Then I stand corrected. Again, well done. ;O

 Respond  
airfreshner   -  Jul 27, 2007

It does work im using it on my bot at present

 Respond  
Mushufasa   -  Jul 27, 2007

This wouldn\'t work?

$1 is the nick that *\'s you. For example; King-Kai huggles BeDfRaMe, so it would be better if you had if (hugs isin $1-)? Perhaps add if (hugs isin $1-) && ($me isin $1-) goto? The && part does exactly the same as the rest of the snippet but it might look neater, ahuno.

Apart from that, pretty good. I like the idea of having more than just huggle or slap revenge. I\'d rate it if I could. (Y)

 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.