mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2004
Posts: 4
B
bunty Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Jul 2004
Posts: 4
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.

Joined: Feb 2004
Posts: 54
Babel fish
Offline
Babel fish
Joined: Feb 2004
Posts: 54
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

Joined: Jul 2004
Posts: 4
B
bunty Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Jul 2004
Posts: 4
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

Joined: Feb 2004
Posts: 54
Babel fish
Offline
Babel fish
Joined: Feb 2004
Posts: 54
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: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
on *:TEXT:*bunty*:#: {
if (audrey isin $1-) /splay -w <wav>
else /splay -w <wav>
}

Would also work ;d


-KingTomato
Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
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 }


$maybe
Joined: Jul 2004
Posts: 4
B
bunty Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Jul 2004
Posts: 4
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: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
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,


Mentality/Chris
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I wasn't going for bulletproof, just less code. >:D


-KingTomato
Joined: Jul 2004
Posts: 4
B
bunty Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Jul 2004
Posts: 4
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,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
on *:text:bunty audrey:#:{ splay buntyaudrey.wav }


New username: hixxy

Link Copied to Clipboard