mIRC Home    About    Download    Register    News    Help

Print Thread
#151843 22/06/06 11:32 AM
D
devour
devour
D
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
K
Karas
Karas
K
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.
#151845 22/06/06 11:50 AM
D
devour
devour
D
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
K
Karas
Karas
K
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

#151847 22/06/06 11:32 PM
D
DaveC
DaveC
D
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: 180
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 180
--------
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
D
DaveC
DaveC
D
Dont go hard coding numbers as timer names, thats the worst thing u can do,


Link Copied to Clipboard