Purrrrrrr.... Purrrrr....

By EMMURE on Mar 11, 2009

Alright, i was bored with my bot, so I made this. It just makes it to where, when you make an action involving petting the person with the script loaded, they'll purr. :) fun to freak out people. Enjoy :)

on *:action:*:#: {
  if (( pets isin $1- ) && ( $me isin $1- )) {
    .timer 1 1 /describe $chan purrrrrr.... purrrrrr....
  }
  else {
    halt
  }
}

Comments

Sign in to comment.
EMMURE   -  Mar 20, 2009

meh. what else should i do? not many potential life-saving scripts out there. :P im just doing this as a proof of concept. :) albeit, petting someone is odd ;)

 Respond  
PATX   -  Mar 14, 2009

good script i agree w/ slacker on those above coding issues though. my only question is who would pet a person??? sorry but i found it a bit dull. i would think could make the trigger a bit better then petting someone i give it a 4

 Respond  
slacker   -  Mar 11, 2009

if you want it per person for the flood control you can use..

if (!$($+(%,purrflood,.,$nick),2)) { set -u3 $+(%,purrflood,.,$nick) $nick

so now the code would look like..

on *:action:$($+(*,pets,*,$me,*)):#: { if (!$($+(%,purrflood,.,$nick),2)) { set -u3 $+(%,purrflood,.,$nick) $nick | .timer.purr 1 1 describe # purrrrrr.... purrrrrr.... } }

also i would add a few responses..

on *:action:$($+(*,pets,*,$me,*)):#:{ if (!$($+(%,purrflood,.,$nick),2)) { set -u3 $+(%,purrflood,.,$nick) $nick | .timer.purr 1 1 describe # $gettok(purrrrrr.... purrrrrrssss....|moans|ask's for a happy ending,$r(1,3),124) } }

also you should really name ur timers.

 Respond  
Kirby   -  Mar 11, 2009

If you're saying you don't understand what slacker did, Aucun,

on *:action:$($+(*,pets,*,$me,*)):#: { if (!%purrflood) { set -u3 %purrflood on | .timer.purr 1 1 describe # purrrrrr.... purrrrrr.... } }

There is a $ infront of the $+(,pets,,$me,) because you cannot directly use identifiers like $+'s as a match.
is just a wildcard, so there can be anything between "pets" and "$me".
So the script can be activated, assuming let's say the bot nick is CatBot, by saying something like:

/me pets the bot CatBot by touching her fur.

 Respond  
Kirby   -  Mar 11, 2009

As slacker has said,

on *:action:$($+(*,pets,*,$me,*)):#: { if (!%purrflood) { set -u3 %purrflood on | .timer.purr 1 1 describe # purrrrrr.... purrrrrr.... } }

, can be used, however it disables the script all together for three seconds.

To make antispam per person, you can also do

on *:action:$($+(*,pets,*,$me,*)):#: { if ($wildsite !isin %purrflood) { set -u3 %purrflood $addtok(%purrflood,$wildsite,32) | .timerpurr 1 1 .describe # purrrrrr.... purrrrrr... } }

using tokens, or the traditional method:

on *:action:$($+(*,pets,*,$me,*)):#: { if (!%purrflood. [ $+ [ $nick ] ]) { set -u3 %purrflood. [ $+ [ $nick ] ] | .timerpurr 1 1 .describe # purrrrrr.... purrrrrr... } }
 Respond  
Aucun50   -  Mar 11, 2009

I did $iif because in the original script there's a halt and i don't understand your script LOL, i wasn't trying to change it that much so $iif worked.

 Respond  
slacker   -  Mar 11, 2009

Aucun50 why would you use a $iif for that. an $iif is not needed.
and you should really think about some sort of flood control, and for just pets and the bot's nick within $1- just do

on *:action:$($+(*,pets,*,$me,*)):#:{

so with no flood control

on *:action:$($+(*,pets,*,$me,*)):#: { .timer.purr 1 1 describe # purrrrrr.... purrrrrr.... }

with flood control witch you should use...

on *:action:$($+(*,pets,*,$me,*)):#: { if (!%purrflood) { set -u3 %purrflood on | .timer.purr 1 1 describe # purrrrrr.... purrrrrr.... } }
 Respond  
Kirbeh_Pr0nz   -  Mar 11, 2009

or:

on *:action:pets *botnick*:#:{
.timer 1 1 /describe # purrrr.....purrrrr
}

i think ;o

 Respond  
Aucun50   -  Mar 11, 2009

or:

on *:action:*:#: { $iif(( pets isin $1- ) && ( $me isin $1- ),.timer 1 1 /describe $chan purrrrrr.... purrrrrr....,halt) }
 Respond  
slacker   -  Mar 11, 2009

you could do

on *:action:$($+(*,pets,*,$me,*)):#: { if (!%purrflood) { set -u3 %purrflood on | .timer.purr 1 1 describe # purrrrrr.... purrrrrr.... } }
 Respond  
Kirby   -  Mar 11, 2009

It's just for entertainment...similar to those AI bots, but in a simpler form.

EMMURE, maybe you can add flood protection for each person to prevent abuse.

Also, you don't need

else { halt }

.

 Respond  
Aucun50   -  Mar 11, 2009

What is the point in this?

 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.