If you'd like to create some !triggers for your channel copy and paste this script in to your Remotes in mIRC.
Note: You'll need to make some modifications before it'll be ready to use. These modifications are explained below the code. Also, these triggers cannot be invoked by you if they're running on the copy of mIRC you are using to chat. So, if you wish to invoke these triggers yourself you'll need to run two copies of mIRC. One for you to chat with and another one that'll run this script (and possibly others. It'll essentially be a "bot.")
Code:
on 1:text:!rules:#channel: {
if (($calc(($ctime - %lastupdatetime)) >= 15) || (!%lastupdatetime)) {
set %lastupdatetime $ctime
/msg $chan Your-rules-or-message-goes-here
}
}
You'll need to change #channel on the 1st line to your channel's name.
The 2nd and 3rd line calculates how long ago this trigger was used and prevents it from being triggered again in so many minutes. In this example it can only be triggered once every 15 minutes. You can make it shorter or longer by changing the 15 to however many minutes you want it to be.
The 4th line contains the message you want sent to the channel. Leave /msg $chan the way it is and replace Your-rules-or-message-goes-here with whatever you want sent.
How to have more than one trigger: You can copy this script and change the 1st and 4th lines to send different messages. Just place every copy below the preceding one in mIRC's Remotes.
Example:
Code:
on 1:text:!rules:#channel: {
if (($calc(($ctime - %lastupdatetime)) >= 15) || (!%lastupdatetime)) {
set %lastupdatetime $ctime
/msg $chan If you repeat yourself, talk in caps, are abusive, or use sexually explicit language you won't be able to chat anymore.
}
}
on 1:text:!voice:#channel: {
if (($calc(($ctime - %lastupdatetime)) >= 15) || (!%lastupdatetime)) {
set %lastupdatetime $ctime
/msg $chan To get voiced you need to behave and follow the rules.
}
}
on 1:text:!cam:#channel: {
if (($calc(($ctime - %lastupdatetime)) >= 15) || (!%lastupdatetime)) {
set %lastupdatetime $ctime
/msg $chan I'm using a Logitech Quick Cam
}
}
_________________________
WyldRyde IRC Network Steve Mermelstein Root Admin
Ok, so am I to assume this script will work just as well with a "what is" question as opposed to a ! word? Being that I would replace the ! with a what is?
How would i make a trigger that will include a question no matter how it is wrote? Like, "How do I change my name?" Or "Can i change my name?" or if they subbed the word Nick for Name is there a way to make one trigger that will pickup any of those key words?
What about having triggers that only ops and hops can use? I have one that only ops can use but i want HOP and OP's to be able to use the trigger. I have if (($nick ishop $chan) || ($nick isop $chan))) && ($address($nick,2) != WyldRyde.org)) { but that doesnt work, only hops can do the trigger, is there a way to have hops AND ops do a trigger?
Pctech37
newbie
Registered: 03/26/08
Posts: 33
Loc: Everett, WA
So, since Pixie can also add those triggers from the web, can somebody edit that or tell me how to make the script get a list of triggers from the web. (or something similar) thanks!
_________________________
Hi. I am a forum signature virus. Paste me to your signature(s). *evil laugh*
Pctech37 G33k Recognized WyldRyde Life Form #Chris - VOP #DavisCreation - SOP #davisops - Founder #gtaivchat - SOP #Karol - HOP #mancode - 5 #McInTEC - VOP #pctech37 - Founder #pctech37poker - Founder #sports - Founder #turtles - HOP
Registered: 02/10/08
Posts: 18
Loc: Connecticut, USA
I originally came up with the !winner idea to begin with remember when Chris used to scroll thru the nicklist? That all changed when i brought the idea up in Jeff's channel, #besttechie, during his vista giveaway... then it was later incorporated into Chris' giveaways as well.
WyldRyde, WyldRyde IRC Network, WyldRyde Corp, WyldRyde Corporation, WyldRyde.org, WyldRyde.net, and WyldRyde Chat Script are trademarks of WyldRyde Corporation. All other trademarks and tradenames are property of their respective owners.