Public paste
scriptje voor ha :)
By: biggie | Date: Feb 11 2007 18:21 | Format: None | Expires: never | Size: 2.97 KB | Hits: 1423

  1. alias adduser guser 1000 $1 2
  2. alias deluser ruser 1000 $1 2
  3.  
  4. on *:TEXT:*:#:{
  5.   if ($ulevel >= 100) {
  6.     if ($1 == $+(%trigger,op)) {
  7.       if ($2 == $me) { halt }
  8.       elseif ($2 == $null) { mode # +o $nick }
  9.       else { mode # +ooooo $2 $3 $4 $5 $6 }
  10.     }
  11.     if ($1 == $+(%trigger,deop)) {
  12.       if ($2 == $me) { halt }
  13.       elseif ($2 == $null) { mode # -o $nick }
  14.       else { mode # -ooooo $2 $3 $4 $5 $6 }
  15.     }
  16.     if ($1 == $+(%trigger,voice)) {
  17.       if ($2 == $me) { halt }
  18.       elseif ($2 == $null) { mode # +v $nick }
  19.       else { mode # +vvvvv $2 $3 $4 $5 $6 }
  20.     }
  21.     if ($1 == $+(%trigger,devoice)) {
  22.       if ($2 == $me) { halt }
  23.       elseif ($2- == $null) { mode # -v $nick }
  24.       else { mode # -vvvvv $2 $3 $4 $5 $6 }
  25.     }
  26.     if ($1 == $+(%trigger,kick)) {
  27.       if ($2 == $me) { halt }
  28.       else {
  29.         if ($3 == $null) { kick # $2 You have been KICKED from this channel }
  30.         else { kick # $2 $3- }
  31.       }
  32.     }
  33.     if ($1 == $+(%trigger,kickban)) {
  34.       if ($2 == $me) { halt }
  35.       else {
  36.         if ($3 == $null) { mode $chan -o+b $2 $address($2,2) | kick $chan $2 You have been BANNED from this channel }
  37.         else { mode $chan -o+b $2 $address($2,2) | kick $chan $2 $3- }
  38.       }
  39.     }
  40.     if ($1 == $+(%trigger,trigger)) {
  41.       if ($2 == $null) { notice $nick Usage: $+(%trigger,trigger) <new trigger> }
  42.       else { set %trigger $2 | notice $nick Ok, setted as trigger: %trigger }
  43.     }
  44.     if ($1 == $+(%trigger,ban)) {
  45.       if ($2 == $me) { halt }
  46.       else { ban $chan $2 2 | ban $chan $3 2 | ban $chan $4 2 }
  47.     }
  48.     if ($1 == $+(%trigger,unban)) {
  49.       if ($2 == *) || ($2 == all) { mode $chan +b-b * * }
  50.       else { ban -r $chan $2 | ban -r $chan $3 | ban -r $chan $4 }
  51.     }
  52.     if ($1 == $+(%trigger,settopic)) { topic # $2- }
  53.     if ($1 == $+(%trigger,join)) { join $2 }
  54.     if ($1 == $+(%trigger,part)) { part # }
  55.     if ($1 == $+(%trigger,slap)) { describe # slaps $2 around a bit with a large trout }
  56.     if ($1 == $+(%trigger,action)) { describe # $2- }
  57.     if ($1 == $+(%trigger,say)) { msg # $2- }
  58.     if ($1 == $+(%trigger,hop)) { hop # $2- }
  59.     if ($1 == $+(%trigger,adduser)) {
  60.       guser 1000 $2 2
  61.       notice $nick Ok, added $2 as a user with level 1000
  62.       notice $2 You have been added in my database to control me. Typ $+(%trigger,commands) to see the command list!
  63.     }
  64.     if ($1 == $+(%trigger,deluser)) {
  65.       ruser 1000 $2 2
  66.       notice $nick Ok, removed $2
  67.     }
  68.     if ($1 == $+(%trigger,commands )) { notice $nick Commands: $+(%trigger,op) - $+(%trigger,deop) - $+(%trigger,voice) - $+(%trigger,devoice) - $+(%trigger,kick) - $+(%trigger,kickban) - $+(%trigger,ban) - $+(%trigger,unban) - $+(%trigger,settopic) - $+(%trigger,hop) - $+(%trigger,slap) - $+(%trigger,say)
  69.     }
  70.   }
  71. }
  72.  
  73. menu channel,menubar,status {
  74.   Bot Commands
  75.   .Add Nick:/adduser $$?="Enter a nickname:"
  76.   .Remove Nick:/deluser $$?="Enter a nickname:"
  77. }
  78.  
Latest pastes
57 minutes ago
10 hours ago
1 days ago
2 days ago
2 days ago