mIRC Home    About    Download    Register    News    Help

Print Thread
Improvements #184331 27/08/07 10:25 PM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
Can anyone make some improvements in this script ?
So that it can work faster etc etc !
Code:
on *:action:*cookies*:#:{
  if ($me isin $1-) {
    kick $chan $nick Geef mijn koekjes terug, $nick $+ !
    cs kick $chan $nick Geef mijn koekjes terug, $nick $+ !
  }
}
 
on *:action:*slaps*:#:{
  if ($me isin $1-) {
    kick $chan $nick Ik hou niet van SM, $nick $+ !
    cs kick $chan $nick ik hou niet van SM, $nick $+ !
  }
}
 
on *:action:*pokèball*:#:{
  if ($me isin $1-) {
    mode # +J 1337
    .timermode. $+ $chan 1 5 mode # -J
    cs flags $chan $nick -*
    ban # $address($nick,2)
    kick $chan $nick Sterf af met je pokeball's $nick $+ !
    cs kick $chan $nick Sterf af met je pokeball's $nick $+ !
    cs akick $chan add $address
  }
}
 
on *:ban:#:{
  if ($banmask == $address($me,0)) || ($banmask == $address($me,1)) || ($banmask == $address($me,2)) || ($banmask == $address($me,3)) || ($banmask == $address($me,4)) || ($banmask == $address($me,5)) || ($banmask == $address($me,6)) {
    mode $chan -b $banmask
    cs unban $chan 
    mode $chan -o $nick
    cs deop $chan $nick 
    ban # $address($nick,2)
    kick # $nick Dont ban me
    /cs kick $chan $nick Dont ban me
  }
}
 
on *:deop:#:{
  if ($opnick == $me) {
    /cs op $chan
    kick $chan $nick Don't deop me, $nick $+ !
  }
}
 
on *:TEXT:!ban*:#: {
  if ($2 == $me) {
    ban # $address($nick,2)
    cs ban $chan $address ($nick,2)
    kick # $nick Dont ban me
    cs kick $chan $nick Don't ban me
  }
}
 
on *:TEXT:!kb*:#: {
  if ($2 == $me) {
    if ($me isop $chan) {
      ban # $address($nick,2)
      kick # $nick Dont ban me
      cs kick $chan $nick Don't ban me, $nick $+ !
      cs kickban $chan $nick Don't ban me, $nick $+ !
      /cs set $chan +e *!*@Dracoz.users.barafranca.com
    }
  }
}
 
on *:TEXT:!kickban*:#: {
  if ($2 == $me) {
    if ($me isop $chan) {
      ban # $address($nick,2)
      kick # $nick Dont ban me
      cs kickban $chan $nick Don't ban me, $nick $+ !
      /cs set $chan +e *!*@Dracoz.users.barafranca.com
    }
  }
}
on *:TEXT:!kick*:#: {
  if ($2 == $me) {
    mode # +J 1337
    .timermode. $+ $chan 1 5 mode # -J
    kick # $nick Dont kick me
    cs kick $chan $nick Don't kick me, $nick $+ !
  }
}



Re: Improvements [Re: Dracoz] #184361 28/08/07 02:09 AM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Originally Posted By: Dracoz
Can anyone make some improvements in this script ?
So that it can work faster etc etc !
Code:
on *:action:*cookies*:#:{
  if ($me isin $1-) {
    kick $chan $nick Geef mijn koekjes terug, $nick $+ !
    cs kick $chan $nick Geef mijn koekjes terug, $nick $+ !
  }
}
 
on *:action:*slaps*:#:{
  if ($me isin $1-) {
    kick $chan $nick Ik hou niet van SM, $nick $+ !
    cs kick $chan $nick ik hou niet van SM, $nick $+ !
  }
}
 
on *:action:*pokèball*:#:{
  if ($me isin $1-) {
    mode # +J 1337
    .timermode. $+ $chan 1 5 mode # -J
    cs flags $chan $nick -*
    ban # $address($nick,2)
    kick $chan $nick Sterf af met je pokeball's $nick $+ !
    cs kick $chan $nick Sterf af met je pokeball's $nick $+ !
    cs akick $chan add $address
  }
}
 
on *:ban:#:{
  if ($banmask == $address($me,0)) || ($banmask == $address($me,1)) || ($banmask == $address($me,2)) || ($banmask == $address($me,3)) || ($banmask == $address($me,4)) || ($banmask == $address($me,5)) || ($banmask == $address($me,6)) {
    mode $chan -b $banmask
    cs unban $chan 
    mode $chan -o $nick
    cs deop $chan $nick 
    ban # $address($nick,2)
    kick # $nick Dont ban me
    /cs kick $chan $nick Dont ban me
  }
}
 
on *:deop:#:{
  if ($opnick == $me) {
    /cs op $chan
    kick $chan $nick Don't deop me, $nick $+ !
  }
}
 
on *:TEXT:!ban*:#: {
  if ($2 == $me) {
    ban # $address($nick,2)
    cs ban $chan $address ($nick,2)
    kick # $nick Dont ban me
    cs kick $chan $nick Don't ban me
  }
}
 
on *:TEXT:!kb*:#: {
  if ($2 == $me) {
    if ($me isop $chan) {
      ban # $address($nick,2)
      kick # $nick Dont ban me
      cs kick $chan $nick Don't ban me, $nick $+ !
      cs kickban $chan $nick Don't ban me, $nick $+ !
      /cs set $chan +e *!*@Dracoz.users.barafranca.com
    }
  }
}
 
on *:TEXT:!kickban*:#: {
  if ($2 == $me) {
    if ($me isop $chan) {
      ban # $address($nick,2)
      kick # $nick Dont ban me
      cs kickban $chan $nick Don't ban me, $nick $+ !
      /cs set $chan +e *!*@Dracoz.users.barafranca.com
    }
  }
}
on *:TEXT:!kick*:#: {
  if ($2 == $me) {
    mode # +J 1337
    .timermode. $+ $chan 1 5 mode # -J
    kick # $nick Dont kick me
    cs kick $chan $nick Don't kick me, $nick $+ !
  }
}




Code:
on *:action:*:#:{
  if ($1 == cookies) && ($me isin $1-) {
    kick $chan $nick Geef mijn koekjes terug, $nick $+ !
    cs kick $chan $nick Geef mijn koekjes terug, $nick $+ !
  }
  elseif ($1 == slaps) && ($me isin $1-) {
    kick $chan $nick Ik hou niet van SM, $nick $+ !
    cs kick $chan $nick ik hou niet van SM, $nick $+ !
  }
  elseif ($1 == pokèball) && ($me isin $1-) {
    mode # +J 1337
    .timermode. $+ $chan 1 5 mode # -J
    cs flags $chan $nick -*
    ban # $address($nick,2)
    kick $chan $nick Sterf af met je pokeball's $nick $+ !
    cs kick $chan $nick Sterf af met je pokeball's $nick $+ !
    cs akick $chan add $address
  }
}

on *:ban:#:{
  if ($banmask == $address($me,0)) || ($banmask == $address($me,1)) || ($banmask == $address($me,2)) || ($banmask == $address($me,3)) || ($banmask == $address($me,4)) || ($banmask == $address($me,5)) || ($banmask == $address($me,6)) {
    mode $chan -b $banmask
    cs unban $chan 
    mode $chan -o $nick
    cs deop $chan $nick 
    ban -uk $nick Don't Ban Me
    /cs kick $chan $nick Dont ban me
  }
}

on *:deop:#:{
  if ($opnick == $me) {
    /cs op $chan
    kick $chan $nick Don't deop me, $nick $+ !
  }
}

on *:TEXT:*:#: {
  if ($me isop $chan) {
    if ($1 == !kb) || ($1 == !kickban) && ($2 == $me) {
      cs kick $chan $nick Don't ban me, $nick $+ !
      cs kickban $chan $nick Don't ban me, $nick $+ !
      /cs set $chan +e *!*@Dracoz.users.barafranca.com
    }
    elseif ($1 == !ban) && ($2 == $me) {
      ban -uk $nick Don't Ban ME!
      cs set # +e *!*@Dracoz.users.barafranca.com
    }
    elseif ($1 == !kick) && ($2 == $me) {
      mode # +J 1337
      .timermode. $+ $chan 1 5 mode # -J
      kick # $nick Dont kick me
      cs kick $chan $nick Don't kick me, $nick $+ !
    }
  }
}


Not much to do except turn some bans into ban -uk $nick Msg


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }