mIRC Home    About    Download    Register    News    Help

Print Thread
#240329 22/01/13 04:55 AM
Joined: Jan 2013
Posts: 5
K
King Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
K
Joined: Jan 2013
Posts: 5
Hello Everyone. I am learning mIRC Scripting. but i have 1 question

can it possible to make bot's Random Message? i mean bot will talk Automatically After 2-3 minutes

like this

Code:
<BOT> Hello & Welcome
After 2-3 Minutes
<BOT> i like Pizza
After2-3 minutes
<BOT>i am leaving..


if it's possible to make then please tell me how to make it

thx in Advance laugh

King #240330 22/01/13 06:17 AM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
You need to use a timer.

/help timers

and also
/help /msg


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #240358 24/01/13 01:10 PM
Joined: Jan 2013
Posts: 5
K
King Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
K
Joined: Jan 2013
Posts: 5
Dude but how to use timer for bot?? like how to use them in remote section of mIRC?

can u give me an Example pls??

King #240359 24/01/13 01:23 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
when the bot connect you trigger the timer.
Code:
on *:connect: {
 .timer 1 60 echo -a It have been 1 minute since i connected!
}

or you can use a on join event.
Code:
on *:join:#: {
  if ($nick == $me) { .timer 1 60 I joined the channel 1 minute ago! }
}

You can also trigger a alias with the timer.
Code:
on *:join:#: {
 if ($nick == $me) { .timer 1 60 call_alias }
}
alias call_alias {
  echo -a It was one minute since you triggered this alias!
  ; restarting the call again, and it will keep on goint untill you stop it.
  .timer 1 60 call_alias
}

And this goes in to the remote, you need to give the value in seconds, 60 = 1 minute, 120 = 2 minutes and so on.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #240360 24/01/13 01:24 PM
Joined: Jan 2013
Posts: 5
K
King Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
K
Joined: Jan 2013
Posts: 5
Nice explanation

thank you for help laugh

King #240361 24/01/13 02:21 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
You can also give name to a timer, if you look in the mirc help file Khaled explain there how to do it.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard