mIRC Homepage
Posted By: Godlike A small sound script - 26/01/05 12:29 PM
How to trigger an mp3 when someone does a:

/me Pimp Slaps Mynick

so it would play a specific sound i chose to play ?
Posted By: FiberOPtics Re: A small sound script - 26/01/05 12:38 PM
Will trigger both for channel and pm actions.

on *:ACTION:$(pimp slaps $me):*: splay mysong.mp3
Posted By: Godlike Re: A small sound script - 26/01/05 01:12 PM
Doesnt work frown I have the .mp3 file in sounds subdir thats mirc/sounds/play.mp3

When the person "slaps" me the sound doesnt play frown
Posted By: FiberOPtics Re: A small sound script - 26/01/05 01:16 PM
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 wink

on *:ACTION:$(pimp slaps $me):*: splay $+(",$mircdir,sounds\play.mp3,")
Posted By: DaveC Re: A small sound script - 26/01/05 03:18 PM
Quote:
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> smile
Posted By: FiberOPtics Re: A small sound script - 26/01/05 03:25 PM
Hehe grin
Posted By: chunfoon Re: A small sound script - 27/01/05 04:55 AM
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 smile
Posted By: DaveC Re: A small sound script - 27/01/05 06:12 AM
That well only work when someone else types /ME slaps chunfoon wont work on a /ME pimp slaps chunfoon you would need $(* slaps $me)
Posted By: chunfoon Re: A small sound script - 28/01/05 05:31 PM
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. blush
Thanks in advance!
CF grin
Posted By: FiberOPtics Re: A small sound script - 28/01/05 06:40 PM
on *:ACTION:$(slaps $me $+ *):#: splay slap.wav
Posted By: chunfoon Re: A small sound script - 28/01/05 07:29 PM
smile smile smile
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
Posted By: FiberOPtics Re: A small sound script - 28/01/05 07:32 PM
Glad to hear it's working out.

Good luck with the scripting, and don't be shy to ask questions around here.

Bye!
Posted By: ryanc Re: A small sound script - 29/01/05 03:44 PM
Quote:
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
Posted By: FiberOPtics Re: A small sound script - 29/01/05 03:59 PM
Code:
on *:TEXT:.slap *:#:{
  describe $chan slaps $2- with a $read(system\slaps.txt)
  splay $+(",$mircdir,sounds\slap.wav,") 
}
Posted By: ryanc Re: A small sound script - 29/01/05 04:05 PM
Quote:
Code:
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"
Posted By: ryanc Re: A small sound script - 29/01/05 04:06 PM
Quote:
Quote:
Code:
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!!!
Posted By: FiberOPtics Re: A small sound script - 29/01/05 04:07 PM
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

Posted By: ryanc Re: A small sound script - 29/01/05 04:14 PM
Quote:
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! cool
Posted By: FiberOPtics Re: A small sound script - 29/01/05 04:15 PM
Most welcome!
Posted By: ryanc Re: A small sound script - 29/01/05 04:26 PM
Quote:
Most welcome!


Anychance you cna help me on this?
https://forums.mirc.com/s...p;page=0#114755
© mIRC Discussion Forums