Need help making a script reddit / irc ---------------------------------------------------------------------- feedmecurry · 2015-01-17 10:45 Hi, I was wondering if someone could make a script for me. I'm making a bot for my private game server channel but I don't know how mIRC scripting. What I want to do is make a command like !assistance which pings all the operators in the channel. Any help would be appreciated, thanks! ---------------------------------------------------------------------- tavaryn · 2015-01-17 16:00 You mean like a command that highlights them? Well, you could just have all the ops add !assistance to their highlights, but if you wanted a script to get their attention, you could do something like this: on *:TEXT:!assistance:#yourchannel:{ var %numops = $nick(#,0,o) ;get the number of ops on the channel var %a = 1 while (%a <= %numops) { ;enumerate the list of ops .notice $nick(#,%a,o) $nick is requesting assistance in $chan $+ ! inc %a } } If there's a more elegant way to do that, it escapes me at a 10AM where I have not yet consumed coffee. EDIT: If you want to send the notice to all halfops and voiced users instead of just ops, replace line 2 with var %numops = $nick(#,0,ohv) ---------------------------------------------------------------------- FiendKing04 · 2015-01-17 16:01 I was going to paste something and realized it would've been terrible. I'd just recommend Googling mIRC on TEXT event scripts and modifying one. It's easy and a great way to learn. ---------------------------------------------------------------------- feedmecurry · 2015-01-17 16:56 This script works perfectly, thanks. But the other operators in my channel all use Kiwi (and they won't switch to mIRC ;-;) so it doesn't make a sound or flash when it sends the notice. Could you do it so it queries operators instead? EDIT: And maybe also a function so it queries ChanServ to timeban them if they use it more than 2 times in 10 minutes, to prevent abuse ---------------------------------------------------------------------- wobblyweasel · 2015-01-18 06:06 Users can ping ops using "PRIVMSG @#channel :message" which, in case of mIRC, is preformed by the /omsg command. ---------------------------------------------------------------------- feedmecurry · 2015-01-18 13:37 I don't understand what you mean. But what I wanted to make was a on text script. When you say "!assistance" it sends a notice to all the ops (look at the above comments, that script works). I wanted to add a feature to it that timebans if one uses it 3 times within 10 minutes.