mIRC Home    About    Download    Register    News    Help

Print Thread
Delay Script #228721 08/01/11 11:33 PM
Joined: Jan 2011
Posts: 2
A
Angelitto Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
A
Joined: Jan 2011
Posts: 2
Hi guys. Im new here and i want some help. I wanna know if there is a script who can delay some words from an irc bot.
For example if i have a taklin bot. I say on the channel "hi", and he answer "hello".
I wanna know if i can make him say hello after 4-5 seconds. Cos he respond right away and ppl knows that is a bot smile
I put here on axample of the commands that i loaded on him.

on *:text:*hi all*:#: { .msg $chan yo }



So, exist such script with that i can make it to speak back in 4-6 sec or more?

Tnx a lot

Re: Delay Script [Re: Angelitto] #228722 09/01/11 12:26 AM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
on *:text:*hi all*:#: { .timermsg 1 5 /msg $chan yo }

Re: Delay Script [Re: DJ_Sol] #228726 09/01/11 01:55 AM
Joined: Jun 2003
Posts: 994
C
CtrlAltDel Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
Originally Posted By: DJ_Sol
on *:text:*hi all*:#: { .timermsg 1 5 /msg $chan yo }


or, to make it appear more "human" by replying somewhere between 4 and 15 seconds later, smile

on *:text:*hi all*:#: { .timermsg 1 $rand(4,15) msg $chan yo }


I refuse to engage in a battle of wits with an unarmed person. wink
Re: Delay Script [Re: CtrlAltDel] #228729 09/01/11 02:31 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Or even more human... wink

Code:
on *:text:*hi all*:#: {
  var %welcome = hello|hi|hey|what's up?|how are you?|yo
  .timermsg 1 $rand(4,15) msg $chan $gettok(%welcome,$rand(1,$numtok(%welcome,124)),124)
}


Invision Support
#Invision on irc.irchighway.net
Re: Delay Script [Re: Riamus2] #228764 09/01/11 08:35 PM
Joined: Jan 2011
Posts: 2
A
Angelitto Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
A
Joined: Jan 2011
Posts: 2
thx a lot guys. It works. U all rock!