mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2003
Posts: 68
Y
yamaz Offline OP
Babel fish
OP Offline
Babel fish
Y
Joined: Oct 2003
Posts: 68
If I do a SOUND command to another user (example: /sound Joe hey.wav) mIRC visualizes a thing like " [20:33.27] -> [Joe] SOUND ".

How can I do to make it visualize "[20:33.27] -> [Joe] hey.wav" ?

P.S.
I cannot use the form "/ctcp Joe SOUND hey.wav".

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Excuse the mess of this...

Code:
alias snd {
  .ctcp $1 SOUND $nopath($2-)
  echo 4 -at -> $chr(91) $+ $1 $+ $chr(93) $nopath($2-)
  splay $2-
  halt
}


Use /snd <nick> <fname>



[20:18] -> [Andy] Alter Bridge - In Loving Memory.mp3


Last edited by SladeKraven; 18/01/05 08:20 PM.
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Like many other commands, /sound can be silenced if a . (dot) precedes it.

Code:
alias sound {
  .sound $1 $$2-
  echo -atc ctcp -&gt; $+([, $1, ]) $nopath($2-)
}

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I know the dot prefix silences, but I didn't know if it'd cancel out the /sound command by writing a sound alias. And if it did I wouldn't of wanted it so I did the a completely new command. But thanks for showing me it don't cancel it out. smile

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
You can replace /commands, but not $identifiers

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Cheers for clearing that up mate. smile

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
That doesn't account for
/sound on|off
/sound file.ext (used in a channel|query window the target is optional)
/sound [target] file.ext message text. :tongue:


Link Copied to Clipboard