|
Joined: Jul 2003
Posts: 132
Vogon poet
|
OP
Vogon poet
Joined: Jul 2003
Posts: 132 |
okay, i want my script can play 1 wave sound on kick event, BUT ONLY WHEN I KICK SOMEONE, and only then. Not when someone other kickes someone.
can that be done?
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
on 1:KICK:#: {
;checks if your the op who kicked the user
if ($nick == $me) {
;plays the file you specified.
splay kick.wav
}
}
|
|
|
|
Joined: Dec 2002
Posts: 1,321
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,321 |
on me:*:KICK:#: .splay filename.wav
DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Yes, or that.
|
|
|
|
Joined: Jul 2003
Posts: 132
Vogon poet
|
OP
Vogon poet
Joined: Jul 2003
Posts: 132 |
great, it works, now i have another Q, when someone says lol and simmiliar i have sound for laugh, but when i type lol and simmiliar, it wont play sound, how to fix it ? , thanx
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
on 1:INPUT:#: {
if (lol isin $1-) { msg $chan $1- | splay lol.wav | halt }
}
|
|
|
|
Joined: Jul 2003
Posts: 132
Vogon poet
|
OP
Vogon poet
Joined: Jul 2003
Posts: 132 |
okay, it works with slight problem, then it does not uses custom script apperance of text, it uses mirc default apperaince, any way to use script normal apperance + so it still can splay sound?
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
on 1:INPUT:#: { if (lol isin $1-) { msg $chan $1- | if (%sound == on) splay lol.wav | halt }} somthing like that?!? :tongue: i know it wont work as i wrote it now.. but only asking? that code "if edited a bit" will only play sound if %sound is set to ON
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Jul 2003
Posts: 132
Vogon poet
|
OP
Vogon poet
Joined: Jul 2003
Posts: 132 |
well it is still the sam cos of /msg command (/say makes same crap) coz when i use them my text looks like this:
(22:52) <@mynick>
but script has nicer without @ and timestamps are not bolded
thatz why i ask: try looking at this:
ON 1:INPUT:=: { if ($1 == lol) || ($1 == lol) || ($1 == lol) { .echo -a $timestamps $theme(metext,$nick,$1-) | .msg $active $1- | .splay %lol | halt } } ON 1:INPUT:?:{ if ($1 == lol) || ($1 == lol) || ($1 == lol) { .quote PRIVMSG $active : $+ $1- | .echo -a $timestamps $theme(metext,$nick,$1-) | .splay %lol | halt } } ON 1:INPUT:#:{ if ($1 == lol) || ($1 == lol) || ($1 == lol) { .echo -a $timestamps $theme(metext,$nick,$1-) | .msg $active $1- | halt } } | if ($left($1,1) != /) { .quote PRIVMSG $active : $+ $1- | .echo -a $timestamps $theme(metext,$nick,$1-) | .splay %lol | halt } }
here i sucseeded that it can play it on private chat, but still on channel it cant (%lol variable is already defined with full path)
so if this helps
|
|
|
|
Joined: Jul 2003
Posts: 132
Vogon poet
|
OP
Vogon poet
Joined: Jul 2003
Posts: 132 |
oh, sorry, i fixed it now, hehe sorry for your lost time sorry sorry ! and THANX !
|
|
|
|
Joined: Jul 2003
Posts: 132
Vogon poet
|
OP
Vogon poet
Joined: Jul 2003
Posts: 132 |
crap, actually now on any word it plays that so if you can STILL look on that last code how to fix i would be gratefull
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
on 1:INPUT:#: {
if ($left($1,1) == /) { return }
if (lol isin $1-) { .msg $chan $1- | .echo $target $timestamp ( $+ $me $+ ) $1- | splay lol.wav | halt }
else { .msg $chan $1- | .echo $target $timestamp ( $+ $me $+ ) $1- | halt }
}
|
|
|
|
Joined: Dec 2002
Posts: 117
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 117 |
on *:INPUT:#:if ((/* !iswm $1) && (lol isin $1-)) splay %lol on *:INPUT:?:if ((/* !iswm $1) && (lol isin $1-)) splay %lol on *:INPUT:=:if ((/* !iswm $1) && (lol isin $1-)) splay %lol
This only plays the sound and doesn't use /halt, so your other scripts can still process your text with their own ON INPUT. (Make sure to put this line before any ON INPUT that does use /halt, or it won't do anything.)
$input(Me like stars, You too?)
|
|
|
|
Joined: Aug 2003
Posts: 3
Self-satisified door
|
Self-satisified door
Joined: Aug 2003
Posts: 3 |
Hey guy download the new sound for Mirc on
~spam removed~
Last edited by Karen; 14/08/03 05:42 PM.
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
Don't click that link, it's just a newbie clickwar, rofl..
|
|
|
|
|