mIRC Homepage
Posted By: Dragneel alias output in channel - 21/06/13 05:27 PM
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
}

Posted By: 5618 Re: alias output in channel - 21/06/13 07:17 PM
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 
}

Posted By: Dragneel Re: alias output in channel - 21/06/13 08:25 PM
thanks, works like a gem laugh
© mIRC Discussion Forums