|
Joined: Jan 2005
Posts: 28
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2005
Posts: 28 |
How to trigger an mp3 when someone does a:
/me Pimp Slaps Mynick
so it would play a specific sound i chose to play ?
|
|
|
|
Joined: Feb 2004
Posts: 2,019
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 2,019 |
Will trigger both for channel and pm actions.
on *:ACTION:$(pimp slaps $me):*: splay mysong.mp3
Gone.
|
|
|
|
Joined: Jan 2005
Posts: 28
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2005
Posts: 28 |
Doesnt work I have the .mp3 file in sounds subdir thats mirc/sounds/play.mp3 When the person "slaps" me the sound doesnt play
|
|
|
|
Joined: Feb 2004
Posts: 2,019
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 2,019 |
Heh, I couldn't possibly know in advance what your file is called, and where it resides. The mysong.mp3 was an example, you are supposed to put the path to the file there instead on *:ACTION:$(pimp slaps $me):*: splay $+(",$mircdir,sounds\play.mp3,")
Gone.
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
Heh, I couldn't possibly know in advance what your file is called, and where it resides. What you mean YOU cant do that? <snicker snicker>
|
|
|
|
Joined: Feb 2004
Posts: 2,019
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 2,019 |
Hehe
Gone.
|
|
|
|
Joined: Jan 2005
Posts: 10
Pikka bird
|
Pikka bird
Joined: Jan 2005
Posts: 10 |
hmmm couldn't get it to work for me. Mirc Ver. 6.16 on *:ACTION:$(slaps $me):*: splay slap.wav Looks like it should work, I loaded it in a remote file that I allready had. Should there be a ' / ' before the splay? Regards, CF
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
That well only work when someone else types /ME slaps chunfoon wont work on a /ME pimp slaps chunfoon you would need $(* slaps $me)
|
|
|
|
Joined: Jan 2005
Posts: 10
Pikka bird
|
Pikka bird
Joined: Jan 2005
Posts: 10 |
I still cannot get this to work. Mirc ver 6.16. Here is what I have now. on 1:ACTION:#:*slaps*:{ if ($nick == $me) { /splay slap.wav } } Someone please tell me what I am doing wrong. The original code in the above posts above didn't work for me at all,so I thought I would try my own code. Thanks in advance! CF
|
|
|
|
Joined: Feb 2004
Posts: 2,019
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 2,019 |
on *:ACTION:$(slaps $me $+ *):#: splay slap.wav
Gone.
|
|
|
|
Joined: Jan 2005
Posts: 10
Pikka bird
|
Pikka bird
Joined: Jan 2005
Posts: 10 |
Thank you, it works perfect now. I even modified it to do a ' | ' Quit slapping me channel message. One day I will master this Mirc thing! Best regards FiberOPtics CF
|
|
|
|
Joined: Feb 2004
Posts: 2,019
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 2,019 |
Glad to hear it's working out.
Good luck with the scripting, and don't be shy to ask questions around here.
Bye!
Gone.
|
|
|
|
Joined: Jan 2005
Posts: 10
Pikka bird
|
Pikka bird
Joined: Jan 2005
Posts: 10 |
Glad to hear it's working out.
Good luck with the scripting, and don't be shy to ask questions around here.
Bye! QUESTION: I have this: on *:TEXT:.slap *:#:{ describe $chan slaps $2- with a $read($shortfn($mircdir) $+ system\slaps.txt):*: splay $+(",$mircdir,sounds\slap.wav,") } now the slap part works but the spund doesn;t it jsut puts : <47598> .slap vex BarFool slaps vex with a trout splay "C:\Program Files\mIRC\sounds\slap.wav" How can i get it so it says BarFool slaps vex with a trout and then plays the slap.wav
|
|
|
|
Joined: Feb 2004
Posts: 2,019
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 2,019 |
on *:TEXT:.slap *:#:{
describe $chan slaps $2- with a $read(system\slaps.txt)
splay $+(",$mircdir,sounds\slap.wav,")
}
Gone.
|
|
|
|
Joined: Jan 2005
Posts: 10
Pikka bird
|
Pikka bird
Joined: Jan 2005
Posts: 10 |
on *:TEXT:.slap *:#:{
describe $chan slaps $2- with a $read(system\slaps.txt)
splay $+(",$mircdir,sounds\slap.wav,")
} WOW your fast. when i add that i get: BarFool slaps vex with a Boost Mobile cell phone splay "C:\Program Files\mIRC\sounds\slap.wav"
|
|
|
|
Joined: Jan 2005
Posts: 10
Pikka bird
|
Pikka bird
Joined: Jan 2005
Posts: 10 |
on *:TEXT:.slap *:#:{
describe $chan slaps $2- with a $read(system\slaps.txt)
splay $+(",$mircdir,sounds\slap.wav,")
} WOW your fast. when i add that i get: BarFool slaps vex with a Boost Mobile cell phone splay "C:\Program Files\mIRC\sounds\slap.wav" NEXERMIND i had to put returns in and put them on anotherline THANKSS!!!
|
|
|
|
Joined: Feb 2004
Posts: 2,019
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 2,019 |
I think you are not copy/pasting the code exactly as you see it on this board. You probably have it all on 1 line. This is a bug in the forum, it'll often put the code all in 1 line when copying it.
Some work arounds:
1. Click on "Quote" and copy the code between the code tags from there.
2. Copy code, open Wordpad, paste there, and then copy from there
Gone.
|
|
|
|
Joined: Jan 2005
Posts: 10
Pikka bird
|
Pikka bird
Joined: Jan 2005
Posts: 10 |
I think you are not copy/pasting the code exactly as you see it on this board. You probably have it all on 1 line. This is a bug in the forum, it'll often put the code all in 1 line when copying it.
Some work arounds:
1. Click on "Quote" and copy the code between the code tags from there.
2. Copy code, open Wordpad, paste there, and then copy from there
That is exactly what wahs happening. Thank you for your super fast help!
|
|
|
|
Joined: Feb 2004
Posts: 2,019
Hoopy frood
|
Hoopy frood
Joined: Feb 2004
Posts: 2,019 |
Gone.
|
|
|
|
Joined: Jan 2005
Posts: 10
Pikka bird
|
Pikka bird
Joined: Jan 2005
Posts: 10 |
|
|
|
|
|