mIRC Home    About    Download    Register    News    Help

Print Thread
#109173 26/01/05 12:29 PM
Joined: Jan 2005
Posts: 28
G
Godlike Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
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 ?

#109174 26/01/05 12:38 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
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.
#109175 26/01/05 01:12 PM
Joined: Jan 2005
Posts: 28
G
Godlike Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Jan 2005
Posts: 28
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,019
Hoopy frood
Offline
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 wink

on *:ACTION:$(pimp slaps $me):*: splay $+(",$mircdir,sounds\play.mp3,")


Gone.
#109177 26/01/05 03:18 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hehe grin


Gone.
#109179 27/01/05 04:55 AM
Joined: Jan 2005
Posts: 10
C
Pikka bird
Offline
Pikka bird
C
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 smile

#109180 27/01/05 06:12 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
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)

#109181 28/01/05 05:31 PM
Joined: Jan 2005
Posts: 10
C
Pikka bird
Offline
Pikka bird
C
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. blush
Thanks in advance!
CF grin

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


Gone.
#109183 28/01/05 07:29 PM
Joined: Jan 2005
Posts: 10
C
Pikka bird
Offline
Pikka bird
C
Joined: Jan 2005
Posts: 10
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,019
Hoopy frood
Offline
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.
#109185 29/01/05 03:44 PM
Joined: Jan 2005
Posts: 10
R
Pikka bird
Offline
Pikka bird
R
Joined: Jan 2005
Posts: 10
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,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Code:
on *:TEXT:.slap *:#:{
  describe $chan slaps $2- with a $read(system\slaps.txt)
  splay $+(",$mircdir,sounds\slap.wav,") 
}


Gone.
#109187 29/01/05 04:05 PM
Joined: Jan 2005
Posts: 10
R
Pikka bird
Offline
Pikka bird
R
Joined: Jan 2005
Posts: 10
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
Joined: Jan 2005
Posts: 10
R
Pikka bird
Offline
Pikka bird
R
Joined: Jan 2005
Posts: 10
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,019
Hoopy frood
Offline
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.
#109190 29/01/05 04:14 PM
Joined: Jan 2005
Posts: 10
R
Pikka bird
Offline
Pikka bird
R
Joined: Jan 2005
Posts: 10
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,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Most welcome!


Gone.
#109192 29/01/05 04:26 PM
Joined: Jan 2005
Posts: 10
R
Pikka bird
Offline
Pikka bird
R
Joined: Jan 2005
Posts: 10
Quote:
Most welcome!


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


Link Copied to Clipboard