|
TerrellKl Novice
Joined: 30 Aug 2005 Posts: 49
|
Posted: Sat Sep 10, 2005 9:22 pm
Trigger be spamming |
I got a trigger.. its a very complicated trigger so ill just show u a more simplified trigger
#trigger {(%w) says, 'Pie'} {Say I like pie}
Someone says that 10 times in 3 seconds..
Instead of saying I like pie 10 times.. i want it to {say stfu} and not say I like pie 10 times. Anyway to do this. |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sat Sep 10, 2005 9:41 pm |
Uh....
Code: |
#TRIGGER {(%w) says, 'Pie'} {say stfu} |
would work...
But then you'd say 'stfu' 10 times...
Charneus |
|
|
|
Insomniac Wanderer
Joined: 25 Mar 2004 Posts: 78 Location: United Kingdom
|
Posted: Sat Sep 10, 2005 10:44 pm |
Could store the says in a variable, then setup a trigger to act on it when the variable hits a certain limit, like:
#TRIGGER {(%w) says, 'Pie'} {#ADD ILIKEPIE 1;#IF (@ILIKEPIE = 10) {say stfu} {say I like pie}} |
|
_________________
No-one ever gets flamed for posting too much information. Conform to the PPP (Preferred Posting Protocol) and give as much information as possible, including MUD output where needed. |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sat Sep 10, 2005 11:15 pm |
Don't forget to have a reset for that, or it would never happen again.
Code: |
#TRIGGER {(%w) says, 'Pie'} {#ADD ILIKEPIE 1;#IF (@ILIKEPIE = 10) {say stfu;ILIKEPIE = 0} {say I like pie}} |
Charneus |
|
|
|
TerrellKl Novice
Joined: 30 Aug 2005 Posts: 49
|
Posted: Sat Sep 10, 2005 11:17 pm |
ewww.. good idea thx
|
|
|
|
|
|