mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2016
Posts: 8
O
OAM Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
O
Joined: Jun 2016
Posts: 8
I have this script

Quote:
on *:TEXT:!s *:#: {
if ($nick == username) {

.timer 10 .30 msg # /color #ffffff
.timer 10 .30 describe # $2-
.timer 10 .60 msg # /color #ffffff
.timer 10 .60 describe # $2-

}
}


but I'd like to change it to where I can type

!s [text] [amount] [time between messages]

please help, thanks :^)

Joined: May 2015
Posts: 249
Fjord artisan
Offline
Fjord artisan
Joined: May 2015
Posts: 249
You need to use identifiers $1, $2, etc. And better replace your phrase like "!s [amount] [time] [text]", so you will always have $2 and $3 as [amount] and [time], and rest as [text].


Dont give a fish - teach to fish!

Link Copied to Clipboard