mIRC Home    About    Download    Register    News    Help

Print Thread
#242075 15/06/13 09:34 PM
Joined: Jun 2013
Posts: 43
G
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Jun 2013
Posts: 43
Hi, I am having trouble making a script that says 3 sentences but in 3 different messages.

Code:
on *:TEXT:!links:$chan:{
  msg $chan test1
  timerone 1 3 msg $chan test2
  timertwo 1 3 msg $chan test3
}


I tried that but it only says the first message and the last message.. Any help would be appreciated.

Last edited by GamingTom; 15/06/13 09:35 PM.
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
The script you provided is correct, assuming you didn't use "$chan" literally in your on TEXT event, only in the timers.

Note that test2 and test3 will both appear simultaneously after 3 seconds. Maybe you are overlooking test2 because of that?

Tip: you don't need to name your timers and if you use ".timer" instead of "timer" then the messages regarding their start and stop will become silent.

Joined: Jun 2013
Posts: 9
K
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
K
Joined: Jun 2013
Posts: 9
Try this:
on *:TEXT:*:#: {
if ( $1 == !links ) { msg $chan test1
msg $chan test2
msg $chan test3
----------
This is how it showed for me after that:
[11:22] * TeamDRD sets mode +qo Kyance Kyance for #K-Bot
[11:22] * K-Bot sets mode +v Kyance for #K-Bot
[11:22] <~K-Bot> Welcome, Kyance - Please read !help, and enjoy your stay!
[11:22] ->> Channel Modes are: +ntr
[11:22] ->> Channel created on 2013.06.15. 20:26:49
[11:22] <~Kyance> !links
[11:22] <~K-Bot> test1
[11:22] <~K-Bot> test2
[11:22] <~K-Bot> test3


Link Copied to Clipboard