A few of my scripts ( Kick ,Ban ,Op)

By VV1mmortl on Aug 28, 2006

Kickscript:
!kick <message (optional) >
Help register script:
Let them say !register help.
Op script !+

My very first scripts (with some help from maiki)

KICKSCRIPT

on 1:text:*!kick*:*: {
  if ($nick ishalfop $chan) { 
    /msg $chan $2 you are kicked in:5 seconds.
    timer 1 1  /msg $chan 5
    timer 1 2  /msg $chan 4
    timer 1 3  /msg $chan 3
    timer 1 4  /msg $chan 2
    timer 1 4  /msg $chan 1
  timer 1 6  /kick $chan $2 $nick made me do it because $3- }
  else {
/notice $nick You need to login first before you can kick } }

on 1:text:*!kick*:*: {
  if ($nick ishalfop $chan) { 
    /msg $chan $2 you are kicked in:5 seconds.
    timer 1 1  /msg $chan 5
    timer 1 2  /msg $chan 4
    timer 1 3  /msg $chan 3
    timer 1 4  /msg $chan 2
    timer 1 4  /msg $chan 1
  timer 1 6  /kick $chan $2 $nick made me do it because $3- }
  else {
/notice $nick You need to login first before you can kick } }

HELP REGISTER SCRIPT.

on 1:text:*!register help:*: { /msg $chan 4 ZSay /notice $me !register |name| |pass| |mail| 
        /msg Please change your name to "Geust" before you register   }     on 1:notice:*!registreren*:*: {
  /nick $2
  /notice $nick Wait 46 seconds to change your name. 
  timer 1 45 /ns register $3-
  timer 1 46 /notice $nick This is what you filled in , remember that : $3- This is your pass : $3
  timer 1 46 /nick <yournick>
  timer 1 48 /ns identify <yourpass>
  timer 1 48 /notice $nick When you change your name type this immediatly : /ns identify $3
  }

OP SCRIPT

on 1:text:*!+*:*: {
  if ( $nick ishalfop $chan ) {
    timer 1 2  /notice $nick You are opping $2 in 15 seconds.
  timer 1 15 /mode $chan +hop $2 }
  else {
/msg $chan $nick You aren't authorized to Op someone . } }

Comments

Sign in to comment.
VV1mmortl   -  Aug 28, 2006

if ( $nick ishalfop $chan ) {

that means that halfop and anyone higher , can use it right?

Almost_Paradise  -  Apr 04, 2016

yes but on some networks halfop doesn't exsist its just op or not

Sign in to comment

krimson   -  Aug 28, 2006

don\'t use #channel, use either # or $chan. furthermore, you forgot to replace some channels (like #die or #LisanneChat).

why limit this to halfop ? check if the one who issued the command is at least halfop (that means including ops too).

using on 1:TEXT:!kick:* has some problems. for example, the trigger will set off if you recieve the text !kick either in prv or in a channel, regardless of it\'s possition or if there are any other chars appended to it. (this means it will set off for !kick, adsf!kickSDa and any other combinations with !kick inside -> this makes the use of $2 useless)

 Respond  
VV1mmortl   -  Aug 28, 2006

Op script !+ My very first scripts (with some help from maiki)

 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.