mIRC Homepage
Posted By: Rsmags PLEASE: Real Quick Help - 09/03/03 06:24 PM
I am trying to make a reply script but it wont work.
What I am trying to do is this alias:
/re /msg $chan $snick : $$1-

But when I type "/re Hello" (with a nick selected in the userlist) It just says:
": Hello"

What I want it to say is:
"<SelectedNick> : <message>"

Please help ASAP. Thankyou.

Ryan
Posted By: Sabby Re: PLEASE: Real Quick Help - 09/03/03 06:28 PM
use $snick($chan,1)
Posted By: Rsmags Re: PLEASE: Real Quick Help - 09/03/03 06:33 PM
Okay thankyou, but now i want to remove the space between the nick and the ":"
How do i do this? when i have the alias as:
/re /msg $chan $snick($chan,1): $$1-
it just says:
<nickname> <message>

I want it to say:
<nickname>: <message>
Posted By: Collective Re: PLEASE: Real Quick Help - 09/03/03 06:46 PM
/re /msg $chan $snick($chan,1) $+ : $$1-
Posted By: MonoSex Re: PLEASE: Real Quick Help - 09/03/03 06:50 PM
Code:
/re /msg $chan $snick($chan,1) [color:red]$+[/color] : $$1-

or
Code:
/re /msg $chan [color:red]$+([/color]$snick($chan,1)[color:red],[/color]:[color:red])[/color] $$1-


btw. it's $snicks, not $snick.
Posted By: Collective Re: PLEASE: Real Quick Help - 09/03/03 06:53 PM
Quote:
btw. it's $snicks, not $snick

$snicks returns all the selected nicks (comma seperated), $snick(#,N) returns the Nth selected nickname in the # channel.
Posted By: Rsmags Re: PLEASE: Real Quick Help - 09/03/03 07:03 PM
Thanks a bunch guys!

Ryan
Posted By: MonoSex Re: PLEASE: Real Quick Help - 09/03/03 07:23 PM
Sorry, he used $snick without parameters first, so i thought he means $snicks grin
© mIRC Discussion Forums