Top

TakeOver - GiveBack *updated*


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Nov 12, 2007
Last Updated  Nov 13, 2007
Tags  giveback  takeover 

Introduction

Just a very simple TakeOver snippet! Enjoy =)
Please leave your comments

Grab the Code

on *:load: //echo -a 7Thanks For Loading The 12G13AoUsTiS TakeOver/GiveBack7 Addon 
 
alias mass { 
  if ($regex($1,/^[+-]?[ohv]$/)) {
    if ($me isop $active) {  
      var %x 1, %modenicks  
      while ($nick($active, %x)) {
        %modenicks = $addtok(%modenicks, $v1, 32)
        if ($numtok(%modenicks,32) = $modespl) { mode # $+($left($1,1),$str($right($1,1),$modespl)) %modenicks | %modenicks = "" } 
        inc %x
      }
      if (%modenicks) mode $active $+($left($1,1),$str($right($1,1),$numtok(%modenicks,32))) %modenicks
    }
    else { //echo -a 7You Have to be an op to perform this command
    }
  }
}
 
 
 
 
dialog takeover1 {
  title "G13AoUsTiS TakeOver Menu"
  size -1 -1 160 125
  option dbu
  tab "Mass Deop", 2, 0 0 234 179
  tab "Takeover", 4
  tab "X TakeOver", 13
  Button "Mass deop",5, 20 30 120 60,tab 2
  Button "TakeOver",6, 20 30 120 60,tab 4
  Button "Cancel",10, 10 105 140 15, cancel
  Box "Menu:", 11, 10 20 140 80
  Button "X TakeOver",12, 20 30 120 60,tab 13
}
 
ON *:DIALOG:takeover1:sclick:5: { /mass -o }
ON *:DIALOG:takeover1:sclick:6: { 
  if ($me !isop $active) { echo $active 7Get An Op First! | halt }
  /mass -o | /topic $active 7G13AoUsTiS 12TAKEOVER!  set %i 0
  :lewp
  inc %i
  else { 
    kick $active $nick($chan,%i) 7GO HOME!
    mode $active +imk g13aoustis
  }
  ON *:DIALOG:takeover1:sclick:12: { /msg X ban $active *!*@* 7,12G13AoUsTiS TakeOver }
 
  menu channel {
  -
  G13AoUsTiS TakeOver: /dialog -m takeover1 takeover1
  }
 

Comments

  (7)  RSS
Noutrious
Comments: 365
 
mIRC Snippet:  TakeOver - GiveBack *updated*
Posted on Nov 12, 2007 2:57 pm
So-So ;) something doesn't fit around here.
SLS10
Comments: 35
 
mIRC Snippet:  TakeOver - GiveBack *updated*
Posted on Nov 12, 2007 8:40 pm
Hmmm. Works well, my friend. Though I don't see a point... ^_^ But nicely done.
mountaindew
Comments: 1,826
 
mIRC Snippet:  TakeOver - GiveBack *updated*
Posted on Nov 12, 2007 8:44 pm
a few revisions to ur code, $nick and $chan return $null, and u should do var not set, and i suggest using an else rather than halting
Code:

alias takeover {
  if ($me isop $active) {
    topic $v2 G13AoUsTiS 12 TAKEOVER!
    mode $v2 +mstilk 1 g13aoustis
    var %x = 1
    while $nick($v2,%x) {
      kick $active $v1 7GO HOME!
      inc %x
    }
  }
  else echo $active Get An Op First!
}
mountaindew
Comments: 1,826
 
mIRC Snippet:  TakeOver - GiveBack *updated*
Posted on Nov 12, 2007 8:46 pm
actually, that while wont work ;)
Code:

while $nick($v2,1) kick $active $v1 7GO HOME!

w/o variable
napa182
Comments: 1,455
 
mIRC Snippet:  TakeOver - GiveBack *updated*
Posted on Nov 12, 2007 8:48 pm
i dont see the point in this sorry
brinxy
Comments: 29
 
mIRC Snippet:  TakeOver - GiveBack *updated*
Posted on Nov 13, 2007 9:29 pm
I performed a search on the mass snippets on here and found this:
http://www.hawkee.com/snippet/3375/, exactly identical. You just added an else event in there. Please give the author proper credit, thanks.

Now onto your own coding:
Awful /'s in front of commands, you advertise literally everywhere, you are missing a bracket, you don't check if the dialog is in use, and not sure who X is? Either way, you should just use the /ban command.
fire_wizard1
Comments: 80
 
mIRC Snippet:  TakeOver - GiveBack *updated*
Posted on Nov 17, 2008 8:18 am
is this script for undernet or is it for other servers as well??

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom