mIRC Home    About    Download    Register    News    Help

Print Thread
#94074 13/08/04 08:29 PM
Joined: Aug 2004
Posts: 8
O
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
O
Joined: Aug 2004
Posts: 8
Ok, I have this talking bot and whenever i turn the talk mode on, everyone keeps saying 'Hey' or w/e and causing the bot to flood and be kicked. So I was wondering if there was a wat to get a timer so it only says 'Hi' back like once a min or something.

Thats all....

#94075 13/08/04 08:39 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
You'd need to show us the script to get the act method..

However, see a similiar script, here.

Pay particular attention to the variable %ds.delay, it prevents the same command being run in a 5 second period.

Eamonn.

#94076 13/08/04 08:41 PM
Joined: Aug 2004
Posts: 8
O
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
O
Joined: Aug 2004
Posts: 8
Ok, its this:

on 1:TEXT:Hello:#airheads:/msg # 12Hey

how do I add a timer to that?

#94077 13/08/04 09:05 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788

on 1:TEXT:Hello:#airheads:{
if (!%saymsg) { msg # 12Hey | set -u5 %saymsg 1 }
}

Will only trigger the command since every 5 seconds the rest of the time it will be ignored.

Eamonn.


Link Copied to Clipboard