This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

triggers

Old posts that have not been replied to for several years.
Locked
User avatar
DrTongue
Op
Posts: 115
Joined: Sat Jan 26, 2002 8:00 pm
Location: Orlando, Florida
Contact:

triggers

Post by DrTongue »

I have searched the .tcl page for a trigger script but I did not see one that included the following. I'd like a simple trigger script to send a line or two of text to a particular channel when specified !trigger is typed. That part I have found. I was wondering if there was one that had a pre-determined time limit before the !trigger could be used again to prevent someone from typing !trigger repeatedly? Or even being to set it so only certain users are able to USE the !trigger. Not determined by user flags, but nicks themselves.
Last edited by DrTongue on Tue May 06, 2003 3:20 pm, edited 1 time in total.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

One way to solve it

Post by user »

Store the time it was triggered ([clock seconds] or [unixtime]) in a global variable and check if that time + delay > current time each time the proc is triggered.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

or unbind the trigger, then use a utimer/timer to bind it again
Elen sila lúmenn' omentielvo
User avatar
DrTongue
Op
Posts: 115
Joined: Sat Jan 26, 2002 8:00 pm
Location: Orlando, Florida
Contact:

Post by DrTongue »

Thank you both for responding. Unfortunetly I am not up to that level of .tcl yet as to write my own. I also do not expect anyone to write it FOR me, was just wondering if there was one like this already in exsistance out there somewhere. :D
Locked