mIRC Home    About    Download    Register    News    Help

Print Thread
#151843 22/06/06 11:32 AM
Joined: Jun 2006
Posts: 2
D
devour Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Jun 2006
Posts: 2
Ok im pretty new at this, so my question might seem a little retarded...

How do i make an event trigger when someone says my name?

example, for a highlight script of the easiest kind, it would seem obvious to use $me but i can't seem to make it fit smile

.. here is what i have tryed:

on *:text:$me:#:(events) <-- that didnt work obviously

I figure maybe i need to use - if - and - elseif - .. but unfortunately i don't have any experience in mIRC scripting sooo thats probably where i need help smile anyone?

ps. you can laugh at my puny attempt to create an 'if' situation right here:

on *:text:*:#: {
if (*$me* ) { /hlsound }
}
alias hlsound {
/splay sounds/beep.wav
/echo $nick has highlighted you in channel $chan
}

#151844 22/06/06 11:43 AM
Joined: Jul 2005
Posts: 40
K
Ameglian cow
Offline
Ameglian cow
K
Joined: Jul 2005
Posts: 40
eheh..
Code:
on *:text:*:#: {
if ($me isin $1-) { 
/splay sounds/beep.wav
/echo -a $nick has highlighted you in channel $chan
}
}


/help if-then-else
xD

Last edited by Karas; 22/06/06 11:44 AM.

j0k3r @ k4s.ch
#151845 22/06/06 11:50 AM
Joined: Jun 2006
Posts: 2
D
devour Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Jun 2006
Posts: 2
hm, yeah seems kinda obvious now that you put it there for me =P

dont mock me just because i dont have any scripting skills frown

#151846 22/06/06 04:07 PM
Joined: Jul 2005
Posts: 40
K
Ameglian cow
Offline
Ameglian cow
K
Joined: Jul 2005
Posts: 40
Quote:
hm, yeah seems kinda obvious now that you put it there for me =P

dont mock me just because i dont have any scripting skills frown


it's not a skill thing.. mirc has it's manual.. use it xD


j0k3r @ k4s.ch
#151847 22/06/06 11:32 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Code:
on *:text:$($+(*,$me,*)):#: {
 splay sounds/beep.wav
 echo -a $nick has highlighted you in channel $chan
}


$+(*,$me,*) to make *DaveC*
$( ) to activate it in the ON TEXT

#151848 23/06/06 12:15 AM
Joined: Feb 2006
Posts: 181
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
--------
ON 1:TEXT:*:#:{ if ($me isin $1-) { /echo -a $timestamp $+ $Nick said your nick on $+ $chan | .timer1 1 2 .splay sounds/beep.wav }
}


---------
Regards,
Crinul

#151849 23/06/06 05:21 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Dont go hard coding numbers as timer names, thats the worst thing u can do,


Link Copied to Clipboard