Nicklist modes

By Kinight on Aug 06, 2010

So I got bored while my BSD server was installing and MW2 was downloading, so I thought I´d make a new snippet.

V1.0: Has a nicklist popup labeled Control. You can give/take all statuses with v,h,o,a,or q. Also includes a counter with how many times you have done that action

V1.1 (In the works): Will have Banning and kicking

V1.2 (In the works): Skipped. LOL

V1.3 (In t3h ub3r w0rks): Mode checking for if you can assign that mode or not.

Suggestions greatly appreciated!

If you need help with this script, you may type /anhelp

Please note, there MAY be a problem with this anhelp command. It caused my mIRC 7 to be in a constant loop. If this happens, please just restart mIRC. I apologize if this happens to you.

on *:LOAD:{
echo -a Lolol thank you for loading alex´s script.
echo -a Troubles? type /anhelp
echo -a THANK YOU!
echo -a Need free, paid, or vps web hosting?  Super cheap and reliable, x10hosting! http://x10hosting.com
echo -a Offering amazing free hosting, just log into the forums once every 31 days.
}

menu nicklist {
  Alex Control
  .Owner { inc %qgiv | mode $active +qqq $1 $2 $3 } | msg $active 11,1 Granted $1 $2 $3 7,1 OWNER 13,1(+q)0,1 I've given Owner %qgiv times
  .Deowner { inc %qrev | mode $active -qqq $1 $2 $3 } | msg $active 11,1 Revoked $1 $2 $3 7,1 OWNER 13,1(+q)0,1 I've removed Owner %qrev times
  .Admin { inc %agiv | mode $active +aaa $1 $2 $3 } | msg $active 11,1 Granted $1 $2 $3 7,1 ADMIN 13,1(+a)0,1 I've given Admin %agiv times
  .Deadmin { inc %arev | mode $active +aaa $1 $2 $3 } | msg $active 11,1 Revoked $1 $2 $3 7,1 ADMIN 13,1(-a)0,1 I've removed Admin %arev times
  .Op { inc %ogiv | mode $active +ooo $1 $2 $3 } | msg $active 11,1 Granted $1 $2 $3 7,1 OPERATOR 13,1(+o)0,1 I've given Op %ogiv times
  .Deop { inc %orev | mode $active -ooo $1 $2 $3 } | msg $active 11,1 Revoked $1 $2 $3 7,1 OPERATOR 13,1(-o)0,1 I've removed Op %orev times
  .Halfop { inc %hgiv | mode $active +hhh $1 $2 $3 } | msg $active 11,1 Granted $1 $2 $3 7,1 HALFOP 13,1(+h)0,1 I've given Halfop %hgiv times
  .DeHalfop { inc %hrev | mode $active -hhh $1 $2 $3 } | msg $active 11,1 Revoked $1 $2 $3 7,1 HALFOP 13,1(-h)0,1 I've removed Halfop %hrev times
  .Voice { inc %vgiv | mode $active +vvv $1 $2 $3 } | msg $active 11,1 Granted $1 $2 $3 7,1 VOICE 13,1(+v)0,1 I've given Voice %vgiv times
  .DeVoice { inc %vrev | mode $active -vvv $1 $2 $3 } | msg $active 11,1 Revoked $1 $2 $3 7,1 VOICE 13,1(-v)0,1 I've removed Voice %vrev times
-
}

alias anhelp {
  set %anhelp $$?="What do you need help with?"
  echo -a PLEASE STAND BY WHILE THIS IS PROCESSED. THIS CAN TAKE UP TO 30 SECONDS
  .timer 1 30 server -m irc.authoritygamer.com
  .timer 4 30 echo -a CONNECTING YOU WITH ALEX FOR SUPPORT
  .timer 5 35 query Alex
  .timer 6 35 msg Alex Hey... Im having troubles with NickList version 1.0 Problem: %anhelp
  .timer 7 36 unset %anhelp
  halt
}

Comments

Sign in to comment.
Jethro   -  Aug 06, 2010

You can do the mode settings as such:

mode $active $+(+,$str(q,3)) $1-3
mode $active $+(-,$str(q,3)) $1-3 | msg $active 11,1 Granted $1-3 blah blah...
mode $active $+(+,$str(a,3)) $1-3 | ...
mode $active $+(-,$str(a,3)) $1-3 | ...

etc...

OR just replace $1 $2 $3 with $1-3, much shorter and does the same thing.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.