Search
 
 

Display results as :
 


Rechercher Advanced Search

Web Applications
install Joomla Wordpress Phpbb Drupal FluxBB PunBB osCommerce simple-machines MYBB moodle vBulletin Dolphin-v.7.1.1 PHPNUKE XOOPS
Services
install BorkNet Services X3 Services Anope Atheme Services Srvx IRC Srervices
IRCD
install Snircd IRCU INSPIRCD UNREAL Nefarious Bircd Bahamut Asuka Charybdis
TCL SCRIPT
TCL SCRIPT FOR EGGDROP Allprotection4.7 Antiproxy
Bots
Bots install FishBot bobot++ Eggdrop janus Omega Security Services Botnix Bopm
Latest topics
» Guide install Janus IRC
Sat Dec 03, 2016 3:46 am by Chief

» Guide install Anope in Centos 7
Sat Nov 19, 2016 7:24 am by Chief

» mIRCx IRC Network Config
Tue Oct 18, 2016 10:52 pm by Chief

» מדריך התקנה מירק על ubuntu 14.04
Mon Sep 19, 2016 2:40 am by Chief

» Guide install srvx 1.4.1-rc1  in ubuntu
Fri Aug 26, 2016 5:02 pm by Chief

» Guide install Inspircd
Fri Aug 19, 2016 8:21 am by Chief

» config Inspircd+atheme 7.2.4
Mon Aug 01, 2016 2:21 am by Chief

» מדריך התקנה SRVX Services על Centos 7
Sat Jul 16, 2016 9:58 pm by Chief

» Guide All protection4.7
Fri Jul 15, 2016 2:31 pm by Chief

May 2017
MonTueWedThuFriSatSun
1234567
891011121314
15161718192021
22232425262728
293031    

Calendar Calendar

Affiliates
free forum

Affiliates
free forum


Q Commands helper

View previous topic View next topic Go down

Q Commands helper

Post  Admin on Tue Apr 17, 2012 11:26 pm

Q Commands helper by Arthas
Code:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Q helper
;; By Arthas
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
on *:dialog:qcommands:*:*:{
  if ($devent == init) { inc -u2 %der | .msg q showcommands }
  elseif ($devent == sclick) {
    if ($did isnum 5-16) { inc -u2 %dud }
    if ($did !== 18) { did -r $dname 18 }
    if ($did == 5) && ($did(17)) { .msg q ban $active $did(17) }
    elseif ($did == 6) && ($did(17)) { .msg q unban $active $did(17) }
    elseif ($did == 16) { .msg q whoami }
    elseif ($did == 12) { .msg q banlist $active }
    elseif ($did == 15) { .msg q chanlev $active $iif(+amno == $gettok($did(17),2,32),$gettok($did(17),1,32) +amo,$did(17)) | $iif(+amno == $gettok($did(17),2,32),.msg q giveowner $active $gettok($did(17),1,32)) }
    elseif ($did == 13) { .msg q chanflags $active $did(17) }
    elseif ($did == 14) { .msg q chanmode $active $did(17) }
    elseif ($did == 7) { .msg q banclear $active }
    elseif ($did == 8) && ($did(17)) { .msg q settopic $active $did(17) }
    elseif ($did == 9) && ($did(17)) { .msg q welcome $active $did(17) }
    elseif ($did == 10) && ($did(17)) { clearchanlev $active $did(17) }
  }
}
dialog qcommands {
  title "Q Commands helper"
  size -1 -1 117 139
  option dbu notheme
  tab "All of the Q commands", 1, 3 3 111 132
  list 2, 7 38 103 93, tab 1 size hsbar vsbar
  text "Q Commands", 3, 8 26 34 8, tab 1
  tab "Helper", 4
  button "Q ban", 5, 7 20 33 12, tab 4
  button "Q topic", 8, 7 34 33 12, tab 4
  button "Q welcome", 9, 42 34 34 12, tab 4
  button "Clear chanlev", 10, 40 62 38 12, tab 4
  button "Recover", 11, 7 62 31 12, tab 4
  button "Banlist", 12, 78 34 33 12, tab 4
  button "Chanflags", 13, 78 48 33 12, tab 4
  button "Chanmodes", 14, 7 48 33 12, tab 4
  button "Chanlev", 15, 42 48 34 12, tab 4
  button "Who am i", 16, 80 62 31 12, tab 4
  edit "", 17, 9 85 99 11, tab 4 autohs
  list 18, 9 97 99 32, tab 4 size
  button "Un qban", 6, 42 20 34 12, tab 4
  button "Q ban clear", 7, 78 20 33 12, tab 4
  text "Nick+Level/mode/topic/welcome/address:", 19, 8 77 101 8, tab 4
}
alias clearchanlev {
  if ($3-) { set %protected $3- }
  if ($left($1,1) == $chr(35)) && ($network == QuakeNet) {
    unset %temp | unset %zxx | unset %mylevel | unset %clea*
    if ($2) {
      if (!%clearing) && (!%clear1) {
        if ($left($2,1) == $chr(43)) || ($left($2,1) == $chr(45)) { set -u60 %clear $1 $remove($2,$left($2,1)) }
        else { set -u60 %clear $1 $2 }
        .timercheckwhat 1 5 checkwhat | set %clear1 1 | .msg q chanlev $1 | set %mylevel $remove($address($me,2),*!*@,.users.quakenet.org) | set %clearing 1 | set -u15 %zxx 1
      }
      elseif (%clearing) || (%clear1) { .did -ra qcommands 18 $1- * Error! During a clearing!
      }
    }
    else { .did -ra qcommands 18 $1- * Error! Please use: <level>/<+level>/<-level> | halt
    }
  }
  else {
    .did -ra qcommands 18 $1- * Error! Either you didnt typed $chr(35) , or you are not using the network "quakenet". | halt
  }
}
alias checkwhat {
  var %zzz = $calc(%zxx -4)
  if ($numtok(%temp,32) < 18) && ($numtok(%temp,32) >= 1) { .timer 1 %zzz .msg q removeuser $gettok(%clear,1,32) %temp | .timer 1 $calc(%zzz +2) .did -ra qcommands 18 * Clearing ended. | unset %temp | unset %zxx | unset %mylevel | .timer 1 $calc(%zzz +4) unset %clea* | unset %protected }
  elseif ($numtok(%temp,32) == 0) { unset %mylevel | unset %zxx | .did -ra qcommands 18 * Error! No one has the level: " $+ $chr(43) $+ $gettok(%clear,2,32) $+ " | unset %zxx | unset %clea* | halt }
}
on ^*:Notice:*:?: {
  if ($nick == Q) {
    if (%der) && (!$istok(the for end,$1,32)) { haltdef | .did -a qcommands 2 $1- }
    if (%dud) { haltdef | .did -a qcommands 18 $1- | $iif($1 == Current,.did -a qcommands 18 $6) }
    if (%clear1) {
      if (%clearing) {
        if (*You do not have sufficient access on* iswm $1-) { .did -ra qcommands 18 * Error! you dont have enough acsses on $gettok(%clear,1,32) to use chanlev. | unset %clearing | .timercheckwhat off | .timera* off | halt }
        if (*is unknown or suspended* iswm $1-) { .did -ra qcommands 18 * Error! channel is unknown or suspended. | .timercheckwhat off | .timera* off | unset %clearing | halt }
        if (*known* !iswm $1-) && (*username* !iswm $1-) && ($1 != %mylevel) && (n !isin $2) && ($1 !isin %protected) {
          if ($left($2,1) == $chr(43)) && ($gettok(%clear,2,32) isin $2) && (n !isin $2) { set %temp %temp $chr(35) $+ $1 }
          if ($numtok(%temp,32) == 18) { .timera $+ %zxx 1 %zxx .msg q removeuser $gettok(%clear,1,32) %temp | unset %temp | inc %zxx 2 }
        }
        if (*End of* iswm $1-) { unset %clearing | halt }
        if (Total: iswm $1) { unset %clearing | halt }
      }
    }
  }
}
menu * {
  Q dialog: dialog $iif($dialog(qcommands),-v,-m) qcommands qcommands
}
avatar
Admin
Admin

מספר הודעות : 289
Join date : 2009-09-12
Age : 36
מיקום : www.mIRCx.co.il

View user profile http://mircx.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum