I have a hash table with items and descriptions in the table. when a person joins my channel/chat my script echo's to me information from the hash table. However if the table does not have a matching item my script still fires an echo line but the line does not contain any information because there is not a matching item in the hash table.
My line of script is below. I have this line within an if statement also. In an attempt to stop the script on no matching items I tried an if line like if ($gettok($hget(nicktrack,%ip),1,32) == $null) { halt } in the if loop which my statement below is in but this did not stop it from firing.
/echo -t $chan 11 New Join by: $gettok($hget(nicktrack,%ip),1,32) as $nick
Any Ideas?
Thanks for your help if you can!!
Been fighting this forever and no success. Any idea how to set this variable with a random number for the duration of the variable:
so I have this: set -eu900 %timerC 1 (that works fine for 900 seconds) but i need this to work: set -eu $rand(222,900) %timerC 1
I need it to set the variable %timerC with the value of 1 for a random time between 222 and 900 seconds.
Thanks SO much!!
Help please: I need a timer that will make an announcement in an IRC chat every 20 minutes. I have a text file with many one line of text (announcements) that I need the script cycle through and post in chat. So at either 0 minutes from start or 20 minutes from start I need line 1 from the text file to display in chat and then at minute 40 line two and then after say 5 or 6 lines in the text file can it start back at line 1. I have tried a timer with the play command but it does not always work properly.
Thanks!!!
Truk
in mIRC can someone please tell me how to nest this command (below) so I only have one "on $*:TEXT:"
I have a list of words i want to test for and whenever that word is said I want the script to fire off. so if the say apple or johnnyAPPLEseed I still want it to fire. I just need it nested so I can put a timer on it so it does not fire more than a specified time. The timer I have just not the nesting.
on $:TEXT:$(/(\Q $+ wok $+ \E)/iS):#: { /msg $chan oh!! more food talk. $nick said (wok) sure hope it tastes good!! }
on $:TEXT:$(/(\Q $+ yam $+ \E)/iS):#: { /msg $chan oh!! more food talk. $nick said (yam) sure hope it tastes good!! }
on $:TEXT:$(/(\Q $+ yeast $+ \E)/iS):#: { /msg $chan oh!! more food talk. $nick said (yeast) sure hope it tastes good!! }
on $:TEXT:$(/(\Q $+ yogurt $+ \E)/iS):#: { /msg $chan oh!! more food talk. $nick said (yogurt) sure hope it tastes good!! }
on $*:TEXT:$(/(\Q $+ yolk $+ \E)/iS):#: { /msg $chan oh!! more food talk. $nick said (yolk) sure hope it tastes good!! }
Thanks in advance!
Truk