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.

[IMDB2script] need help with timer on the trigger

Old posts that have not been replied to for several years.
Locked
N
Novus-Opi

[IMDB2script] need help with timer on the trigger

Post by Novus-Opi »

hi i'm using the imdb2 script for some movie info. but my users are sometimes a little too enthousiastic about it and everything goes laggy.

i came up with this :

set imdb_wait 180
set killtim [utimerexists "imdb_handler"]; if {$killtim != ""} { killutimer $killtim }
set killtim [utimerexists "set wacht \"jaja\""]; if {$killtim != ""} { killutimer $killtim }

set wachttim [utimerexists "set wacht \"jaja\""]

if {$wachttim != ""} {
putserv "NOTICE $chan :Sorry, maar om flood te voorkomen kan dit slechts 1 keer per $imdb_wait seconden.."
return 0
}

utimer $imdb_wait "set wacht \"jaja\""

but it don't work.

to be honest the piece of code is from another script, so my senses tell me i forgot something or ripped to much. can't figure it out :oops:

anyone? tia
P
Phooka

Post by Phooka »

is that the WHOLE script? if,it is i know why it isnt working. u need to have the script execute everything with the proc command. and another thing ripping is [censored] gay if hesays its ok for u to edit HIS script thats cool
andif u knewhowtomake ur own tcl then u would have no errors
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

It's gay to come out with messages like this.

It's 100% OK for him to edit the script, that is why it's released as open source.

He is trying to add a section, that prevents people from using it to flood the bot off.

You should make your comments contructive.
Locked