mIRC Homepage

Delay Script

Posted By: Angelitto

Delay Script - 08/01/11 11:33 PM

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
Posted By: DJ_Sol

Re: Delay Script - 09/01/11 12:26 AM

on *:text:*hi all*:#: { .timermsg 1 5 /msg $chan yo }
Posted By: CtrlAltDel

Re: Delay Script - 09/01/11 01:55 AM

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 }
Posted By: Riamus2

Re: Delay Script - 09/01/11 02:31 AM

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)
}
Posted By: Angelitto

Re: Delay Script - 09/01/11 08:35 PM

thx a lot guys. It works. U all rock!
© 2022 mIRC Discussion Forums