mIRC Home    About    Download    Register    News    Help

Print Thread
Name Trigger #193811 26/01/08 04:37 AM
Joined: Jan 2008
Posts: 6
F
Fryzz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: Jan 2008
Posts: 6
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.

Re: Name Trigger [Re: Fryzz] #193818 26/01/08 11:12 AM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156


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

Re: Name Trigger [Re: Fryzz] #193838 26/01/08 05:12 PM
Joined: Jan 2004
Posts: 509
L
LostShadow Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
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.

Re: Name Trigger [Re: LostShadow] #193846 26/01/08 07:09 PM
Joined: Jan 2008
Posts: 6
F
Fryzz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: Jan 2008
Posts: 6
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.

Re: Name Trigger [Re: Fryzz] #193854 26/01/08 08:50 PM
Joined: Jan 2004
Posts: 509
L
LostShadow Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
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.

Re: Name Trigger [Re: LostShadow] #193864 26/01/08 09:30 PM
Joined: Jan 2008
Posts: 6
F
Fryzz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: Jan 2008
Posts: 6
ok kool thanks. one other question is where do i put the code? lol

Re: Name Trigger [Re: Fryzz] #193865 26/01/08 09:33 PM
Joined: Jan 2004
Posts: 509
L
LostShadow Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Press Alt R and copy/paste the code into the blank page.

Re: Name Trigger [Re: LostShadow] #193873 26/01/08 09:44 PM
Joined: Jan 2008
Posts: 6
F
Fryzz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: Jan 2008
Posts: 6
ok, the highlighting and beeping worked great but the part where it maximizes the screen doesnt seem to be working.

Re: Name Trigger [Re: Fryzz] #193876 26/01/08 09:52 PM
Joined: Jan 2004
Posts: 509
L
LostShadow Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Sorry I have no idea.

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

Re: Name Trigger [Re: LostShadow] #193878 26/01/08 09:54 PM
Joined: Jan 2008
Posts: 6
F
Fryzz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: Jan 2008
Posts: 6
ok thats cool.. thank you very much for the help laugh

Re: Name Trigger [Re: LostShadow] #193881 26/01/08 10:00 PM
Joined: Jan 2008
Posts: 6
F
Fryzz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: Jan 2008
Posts: 6
wait, when i hit alt r what tab would i put it under? i had it under variables.

Re: Name Trigger [Re: Fryzz] #193887 26/01/08 10:21 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net