mIRC Home    About    Download    Register    News    Help

Print Thread
#105530 17/12/04 03:22 AM
Joined: Dec 2004
Posts: 1
Z
zoik Offline OP
Mostly harmless
OP Offline
Mostly harmless
Z
Joined: Dec 2004
Posts: 1
I was just wondering how you make channel triggers, for example if someone in the channel typed !rules then a list of rules for the channel would show up but only the person who typed it could see it. Can anyone tell me?

#105531 17/12/04 06:40 AM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
You need to use the mIRC scripting language. For this, you would use the ON TEXT event which triggers when someone says something in the channel.

E.g.

on @*:text:!rules*:#your-channel:{
.notice $nick The Rules are as follows:
.notice $nick 1) No doing this
.notice $nick 2) No doing that
.notice $nick 3) And so forth
}


This triggers only if you're opped in #your-channel. It will send 4 notices so they are in a list. You will not see the notices being sent on your screen because of the . used, if you removed the . then you'd see the notice being sent.

This code, and most scripts in fact, go in mIRC's Remote of the Script Editor - press ALT+R to access it.

For further help, see /help on text.

Regards,


Mentality/Chris

Link Copied to Clipboard