A couple of twists on napa's trout protection.
Both of them have their own counters, and echo their own unique messages, and both of them will read and announce the number of times someone has triggered it by server.
Don't forget to change '%nickhere' to yours or your bot's nickname.
I haven't had a chance to test them with changed write variables yet, so feedback is always welcomes. =p
on *:text:*bye*:#: {
set %goodbye $calc( $readini( goodbye.ini, $address($nick,2), Bye ) +1 ) | writeini goodbye.ini $address($nick,2) Bye %goodbye | unset %goodbye
msg $chan Hasta la vista, $nick $+ .
.timer 1 2 msg $chan 6This is the3 $ord($readini(goodbye.ini, $address($nick,2), Bye)) 6 time that 3 $nick 6 has announced a departure on $server $+ .
}
on *:text:Let's have sex, %nickhere*:#: {
set %hump $calc( $readini( sex.ini, $address($nick,2), Sex ) +1 ) | writeini sex.ini $address($nick,2) Sex %hump | unset %hump
msg $chan Yes please, $nick $+ .
.timer 1 2 describe $chan humps $nick furiously!
.timer 1 4 msg $chan 6This is the3 $ord($readini(sex.ini, $address($nick,2), Sex)) 6 time that 3 $nick 6 has been humped on $server $+ .
}
I hate \"|\" when I see how they\'ve been used here. :(
They can cause many stupid errors while there\'s simpler and clearer ways to do :).
So first issue, in the \'unset\' command, you wrote: \"unset goodbye\". Must be \"unset %goodbye\".
Second issue, for the sex thing, you refer to the file sex.ini to count and append but later refer to some ryanon.ini file to msg the number of times for the same thing ... That will definitely not work.
Not using pipes \"|\" would probably have avoided those errors ;).
Regards