mIRC Home    About    Download    Register    News    Help

Print Thread
#109173 26/01/05 12:29 PM
G
Godlike
Godlike
G
How to trigger an mp3 when someone does a:

/me Pimp Slaps Mynick

so it would play a specific sound i chose to play ?

#109174 26/01/05 12:38 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
Will trigger both for channel and pm actions.

on *:ACTION:$(pimp slaps $me):*: splay mysong.mp3

#109175 26/01/05 01:12 PM
G
Godlike
Godlike
G
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

#109176 26/01/05 01:16 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
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,")

#109177 26/01/05 03:18 PM
D
DaveC
DaveC
D
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

#109178 26/01/05 03:25 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
Hehe grin

#109179 27/01/05 04:55 AM
C
chunfoon
chunfoon
C
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

#109180 27/01/05 06:12 AM
D
DaveC
DaveC
D
That well only work when someone else types /ME slaps chunfoon wont work on a /ME pimp slaps chunfoon you would need $(* slaps $me)

#109181 28/01/05 05:31 PM
C
chunfoon
chunfoon
C
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

#109182 28/01/05 06:40 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
on *:ACTION:$(slaps $me $+ *):#: splay slap.wav

#109183 28/01/05 07:29 PM
C
chunfoon
chunfoon
C
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

#109184 28/01/05 07:32 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
Glad to hear it's working out.

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

Bye!

#109185 29/01/05 03:44 PM
R
ryanc
ryanc
R
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

#109186 29/01/05 03:59 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
Code:
on *:TEXT:.slap *:#:{
  describe $chan slaps $2- with a $read(system\slaps.txt)
  splay $+(",$mircdir,sounds\slap.wav,") 
}

#109187 29/01/05 04:05 PM
R
ryanc
ryanc
R
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"

#109188 29/01/05 04:06 PM
R
ryanc
ryanc
R
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!!!

#109189 29/01/05 04:07 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
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


#109190 29/01/05 04:14 PM
R
ryanc
ryanc
R
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

#109191 29/01/05 04:15 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
Most welcome!

#109192 29/01/05 04:26 PM
R
ryanc
ryanc
R
Quote:
Most welcome!


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


Link Copied to Clipboard