mIRC Home    About    Download    Register    News    Help

Print Thread
#242183 21/06/13 05:27 PM
Joined: May 2013
Posts: 7
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: May 2013
Posts: 7
i need the output of an alias called by a script in the channel instead of the server window.
what i have done is:

on $*:text:/^!countdown from (\d+)/iS:#:{

var %c $regml(1) | msg $target count down starting from %c $+ :
msg $target %c | timercd %c 1 msg # $!timer(cd).reps

timer 1 12 let
}
}

alias let {
msg $chan hello
}


Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Code:
on $*:TEXT:/^!countdown from (\d+)/iS:#:{
  var %c = $regml(1)
  msg $chan Countdown starting from %c $+ :
  msg $chan %c
  .timercd %c 1 msg # $!timer(cd).reps 
  .timer 1 12 let $chan
}	
alias let {
  msg $1 hello 
}


Joined: May 2013
Posts: 7
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: May 2013
Posts: 7
thanks, works like a gem laugh


Link Copied to Clipboard