mIRC Homepage
Posted By: devour usage of $me and if ? - 22/06/06 11:32 AM
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
}
Posted By: Karas Re: usage of $me and if ? - 22/06/06 11:43 AM
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
Posted By: devour Re: usage of $me and if ? - 22/06/06 11:50 AM
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
Posted By: Karas Re: usage of $me and if ? - 22/06/06 04:07 PM
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
Posted By: DaveC Re: usage of $me and if ? - 22/06/06 11:32 PM
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
Posted By: Crinul Re: usage of $me and if ? - 23/06/06 12:15 AM
--------
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
Posted By: DaveC Re: usage of $me and if ? - 23/06/06 05:21 AM
Dont go hard coding numbers as timer names, thats the worst thing u can do,
© mIRC Discussion Forums