Hi.
So I was asked to write a script that did 2 things:
1. Check to see if the user's voiced or not.
2. If not voiced, notice/message them on join with a sufficiently long-enough timer to ensure people who hadn't id'd to Services, id and not get the message.
I'm pretty sure I got this right with my testing of the script, but the person that asked me about this seems to be still messaging users.
So, here's the script in question:
; Alright. First, this script is meant to go into the Remotes tab for the Script Editor. If you already have the first two portions of this script, disregard, you only need to add the messager section.
; Step 1: To load the script up, press ALT+R in mIRC. Make sure you're on the Remotes tab.
; Step 2: Hit File -> New. Paste this text into that new script screen.
; Step 3: File -> Save as, call it messager.mrc, ensure the extension is set to No Selection. Paste the content from on *:voice:derpchan: { to the two }}s before the message stating the opmeinvite needs to go into Aliases.
; Step 4: Paste the Alias section into the alias tab in the Script editor.
; Step 5: Enjoy the awesomeness.
on *:voice:#derpchan: {
opmeinvite $vnick
}
on *:op:#derpchan: {
opmeinvite $opnick
}
; This is the messager script. Obviously, this messages non-voiced users only and guides them through the steps of getting voiced to join the Lounge. Put this BELOW the op and voice scripts as indicated above.
on *:join:#: {
if ($nick != $me) {
if ($me isop #Derpchan) {
.timer 1 3 if ($nick isvoice #Derp) { goto end }
else { goto give }
:give
notice $nick $+ , welcome to Derp! To get approved for voice, please message one of the ops after reading the Rules/FAQ.
:end
}
}
}
; This is meant to go into the Aliases section.
opmeinvite {
if $me isop #Derpchan2 {
if $1 !ison #Derpchan {
invite $1 #Derpchan2
}
}
}