mIRC Home    About    Download    Register    News    Help

Print Thread
#41608 13/08/03 07:21 PM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
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?

#41609 13/08/03 07:26 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on 1:KICK:#: {
  ;checks if your the op who kicked the user
  if ($nick == $me) {
  ;plays the file you specified.
    splay kick.wav
  }
}

#41610 13/08/03 08:08 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
on me:*:KICK:#: .splay filename.wav
wink


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#41611 13/08/03 08:10 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Yes, or that. smile

#41612 13/08/03 08:21 PM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
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

#41613 13/08/03 08:26 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on 1:INPUT:#: {
  if (lol isin $1-) { msg $chan $1- | splay lol.wav | halt }
}

#41614 13/08/03 08:46 PM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
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?

#41615 13/08/03 08:47 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I don't understand..

#41616 13/08/03 08:50 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
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 smirk


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#41617 13/08/03 08:55 PM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
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

#41618 13/08/03 08:57 PM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jul 2003
Posts: 132
oh, sorry, i fixed it now, hehe sorry for your lost time smile

sorry sorry ! and THANX !

#41619 13/08/03 08:59 PM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jul 2003
Posts: 132
crap, actually now on any word it plays that frown

so if you can STILL look on that last code how to fix i would be gratefull

#41620 13/08/03 09:00 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
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 }
}

#41621 14/08/03 02:18 PM
Joined: Dec 2002
Posts: 117
R
Vogon poet
Offline
Vogon poet
R
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?)
#41622 14/08/03 05:15 PM
Joined: Aug 2003
Posts: 3
G
Self-satisified door
Offline
Self-satisified door
G
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.
#41623 14/08/03 05:31 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Don't click that link, it's just a newbie clickwar, rofl..


Link Copied to Clipboard