mIRC Home    About    Download    Register    News    Help

Print Thread
B
bunty
bunty
B
I know how to assign a sound to a word when it's used in the room - for instance, when my name is typed, a wav plays "bunty" so i know i dont always have to be looking at the screen. But i now want to assign the wav "bunty audrey" but Mirc just picks up the last word so i just hear "audrey" (i have a wav for "audrey" as well). What am i doing wrong, please? I tried in the edit box of Highlight to seperate "bunty" from "audrey" with a comma as the edit box suggests but it failed.

C
Cyclone
Cyclone
C
if i assume correctly, you want to play a seperate wav sound everytime the words "Bunty" and/or "Audrey" are typed in the channel?

on *:TEXT:*:#: {
if (bunty isin $1-) { .splay -w bunty.wav }
if (audrey isin $1-) { .splay -w audrey.wav }
}

hope this helps laugh

B
bunty
bunty
B
Thank you for your response. Before i try to get to grips with yuur suggestion, i'll just clarify what i want - just in case!
I want a wav to play when "bunty" is typed in the room.
I want a different wav to play when "bunty audrey" is typed in the room. It's getting the latter to work that has so far eluded me.

bunty

C
Cyclone
Cyclone
C
on *:TEXT:bunty*audrey:#: {
.splay -w bunty_audrey.wav }
}

on *:TEXT:bunty:#: {
.splay -w bunty.wav
}

I haven't tested it but off the top of my head it should work ok m8 smile

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
on *:TEXT:*bunty*:#: {
if (audrey isin $1-) /splay -w <wav>
else /splay -w <wav>
}

Would also work ;d

Joined: Apr 2004
Posts: 755
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 755
sbuntyp blajhsas sadsaaudry would trigger on that as well

ON *:TEXT:*:#: {
if ($istok($1-,bunty,32) == $true) {
if ($istok($1-,audry,32) == $true) { /splay -w audry.wa v }
else { /splay -w bunty.way }
}
}
or
on *:TEXT:bunty:#: { /splay -w bunty.wav }
on *:TEXT:bunty audry:#: { /splay -w audry.wav }

B
bunty
bunty
B
i pasted in what you'd suggested. I pasted it all into the Perform box but it had no effect. As before, when "bunty audrey" was typed in the room, it activated the wav saying just "audrey" which bemuses me as "bunty" comes first and is dropped yet if "bunty" alone is typed, the wav saying that word plays. Most odd.
I'll delete that from the Perform box tonight and try one of the other suggestions but i do hope it IS the Perform box that i'm meant to be putting all this into?
Sorry for being so thick!

Joined: Jun 2003
Posts: 4,670
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 4,670
The perform box is for putting commands in that you want to have executed when you connect to an IRC network.

The code above needs to be put into your Remotes section, ALT+R in a new remote file. To get a new blank file up go to File > New.

Regards,

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
I wasn't going for bulletproof, just less code. >:D

B
bunty
bunty
B
They wont work! I'm depressed now. How hard can it be, to have "bunty audrey" trigger the wav "buntyaudrey"?
Every variant i've tried gives me just "bunty", which is already set up in the Highlight box, or "audrey" which is also set up in the Highlight box.
I have opened a new file in the Remote box, and pasted in your kind suggestions; deleted and pasted in the other kind suggestions....but every single time, when "bunty audrey" is typed, the PC steadfastly says "audrey"! When just "bunty" is typed, it says "bunty".
Am i going to have to admit defeat? And i was so thrilled to find a site that generated the wavs for me in a lovely voice!

Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
on *:text:bunty audrey:#:{ splay buntyaudrey.wav }


Link Copied to Clipboard