mIRC Home    About    Download    Register    News    Help

Print Thread
#14688 09/03/03 06:24 PM
Joined: Mar 2003
Posts: 3
R
Rsmags Offline OP
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Mar 2003
Posts: 3
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

#14689 09/03/03 06:28 PM
Joined: Jan 2003
Posts: 94
S
Babel fish
Offline
Babel fish
S
Joined: Jan 2003
Posts: 94
use $snick($chan,1)


-
E-Mail: mirc_sabby@hotmail.com
Network: irc.enterthegame.com
Channel: #Helpdesk
#14690 09/03/03 06:33 PM
Joined: Mar 2003
Posts: 3
R
Rsmags Offline OP
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Mar 2003
Posts: 3
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>

#14691 09/03/03 06:46 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
/re /msg $chan $snick($chan,1) $+ : $$1-

#14692 09/03/03 06:50 PM
Joined: Dec 2002
Posts: 395
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
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.

#14693 09/03/03 06:53 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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.

#14694 09/03/03 07:03 PM
Joined: Mar 2003
Posts: 3
R
Rsmags Offline OP
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Mar 2003
Posts: 3
Thanks a bunch guys!

Ryan

#14695 09/03/03 07:23 PM
Joined: Dec 2002
Posts: 395
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
Sorry, he used $snick without parameters first, so i thought he means $snicks grin


Link Copied to Clipboard