mIRC Home    About    Download    Register    News    Help

Print Thread
#193811 26/01/08 04:37 AM
F
Fryzz
Fryzz
F
Hi, I play a game online and our crew uses Irc for chat. I was wondering how you can set a trigger so that when somebody says your name it does something to let you know. Thank you.

#193818 26/01/08 11:12 AM
Joined: Jan 2007
Posts: 1,155
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,155


Code:
on *:text:*:#:{
if ($1 == $me) { beep 4 100 | echo -a $nick is contacting you from $chan | echo -a Message: $2- }
}

#193838 26/01/08 05:12 PM
L
LostShadow
LostShadow
L
Originally Posted By: Fryzz
Hi, I play a game online and our crew uses Irc for chat. I was wondering how you can set a trigger so that when somebody says your name it does something to let you know. Thank you.


You're not being specific enough. There are many ways your mIRC can "let you know" someone said your name or nick.

On a scripting standpoint, you could make mIRC simply use /beep, or play a sound. It could maximize itself if minimized and /window -a to the channel where the person called you. It could increase the volume of the computer and play a song louder. Or it could simply /echo to you the nick, person, network, and text relayed to any window. Or both. Or 3 or 4 of the above.

And by name I'm assuming your nick is your name. Maybe you want to use $me as well as your name incase you use YourName-Away. You could tell us exactly what you want happened.

#193846 26/01/08 07:09 PM
F
Fryzz
Fryzz
F
umm.. well it would be kinda kool if I could have it so that when somebody either says fry, fryz, or fryzz the screen maximizes and like it highlights where they said it in yellow or something to that effect. Im pretty new with this stuff so i don't know where i would put the code and I don't know what $me means either.

#193854 26/01/08 08:50 PM
L
LostShadow
LostShadow
L
Originally Posted By: Fryzz
umm.. well it would be kinda kool if I could have it so that when somebody either says fry, fryz, or fryzz the screen maximizes and like it highlights where they said it in yellow or something to that effect. Im pretty new with this stuff so i don't know where i would put the code and I don't know what $me means either.


Code:
on *:text:*fry*:#: {
  if ($appstate == minimized) { 
    /showmirc -x
  }
}


Alt B, click on the highlight tab, click on the Add button, type in $me, select the color yellow (and sound if you like), click okay, then, at the top, click on the icon that says Enable highlight, then click ok.

$me is whatever current nick you are using.

#193864 26/01/08 09:30 PM
F
Fryzz
Fryzz
F
ok kool thanks. one other question is where do i put the code? lol

#193865 26/01/08 09:33 PM
L
LostShadow
LostShadow
L
Press Alt R and copy/paste the code into the blank page.

#193873 26/01/08 09:44 PM
F
Fryzz
Fryzz
F
ok, the highlighting and beeping worked great but the part where it maximizes the screen doesnt seem to be working.

#193876 26/01/08 09:52 PM
L
LostShadow
LostShadow
L
Sorry I have no idea.

I typed //timer1 1 5 showmirc -x, then minimized my mIRC. 4 seconds later, it maximized itself.

#193878 26/01/08 09:54 PM
F
Fryzz
Fryzz
F
ok thats cool.. thank you very much for the help laugh

#193881 26/01/08 10:00 PM
F
Fryzz
Fryzz
F
wait, when i hit alt r what tab would i put it under? i had it under variables.

#193887 26/01/08 10:21 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Anything given to you in here will go into the Remotes tab unless you're told otherwise. You will very rarely every put anything manually into the variables tab.

You should also put any scripts into new files (File > New, while in the Remotes tab) to avoid conflicts unless you know there won't be a conflict.


Link Copied to Clipboard