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


VIP list, v1

View previous topic View next topic Go down

VIP list, v1

Post  Admin on Sun Mar 25, 2012 5:13 pm

שם הקוד:VIP list, v1
נוצר על ידי: Arthas
Code:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; VIP list, v1
;; By Arthas
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
dialog VIPList {
  title "VIPList"
  size -1 -1 102 137
  option dbu notheme
  box "VIP list", 1, 3 3 96 94
  list 2, 8 12 86 80, size
  box "VIP mode", 3, 3 99 44 35
  check "Voice", 4, 6 109 29 10
  check "Op", 5, 6 120 29 10
  button "Add VIP", 6, 52 102 47 10
  button "Delete VIP", 7, 52 113 47 10
  button "Clear VIP", 8, 52 124 47 10
}
dialog VIPListadd {
  title "Add VIPList"
  size -1 -1 102 38
  option dbu notheme
  edit "", 1, 3 3 96 11, autohs
  button "Add", 2, 61 17 37 17, OK
  check "Voice", 3, 3 16 50 10
  check "Op", 4, 3 26 50 10
}
on *:dialog:*:*:*:{
  if ($dname == VIPList) {
    if ($devent == sclick) {
      if ($did == 4) && ($did($dname,2).seltext) {
        if ($did(4).state == 1) && ($did(5).state !== 1) { writeini VIPList.ini VIPList $did($dname,2).seltext Voice }
        if ($did(4).state !== 1) && ($did(5).state !== 1) { remini VIPList.ini VIPList $did($dname,2).seltext }
      }
      if ($did == 5) && ($did($dname,2).seltext) {
        if ($did(5).state == 1) { writeini VIPList.ini VIPList $did($dname,2).seltext Op }
        if ($did(5).state !== 1) && ($did(5).state !== 1) { remini VIPList.ini VIPList $did($dname,2).seltext }
      }
      if ($did == 2) {
        if ($did($dname,2).seltext) { did -e $dname 4 | did -e $dname 5 }
        if (Op == $readini(VIPList.ini,VIPList,$did($dname,2).seltext)) { did -u $dname 4 | did -c $dname 5 }
        elseif (Voice == $readini(VIPList.ini,VIPList,$did($dname,2).seltext)) { did -c $dname 4 | did -u $dname 5 }
        else { did -u $dname 4 | did -u $dname 5 }
      }
      If ($Did == 6) { dialog -m VIPListadd VIPListadd }
      If ($did == 7) && ($did($dname,2).seltext) {
        var %g = $did(2).seltext | did -ub $dname 4 | did -ub $dname 5
        if ($?!="Are you sure?") {
          if ($numtok($readini(VIPList.ini,VIPList,VIPList),32) == 1) { remini VIPList.ini VIPList VIPList }
          else { writeini VIPList.ini VIPList VIPList $remtok($readini(VIPList.ini,VIPList,VIPList),%g,1,32) }
          did -d $dname 2 $did($dname,2).sel
        }
      }
      If ($Did == 8) { .remove VIPList.ini | did -r $dname 2 | did -bu $dname 4 | did -bu $dname 5 }
    }
    if ($devent == init) { did -b $dname 4 | did -b $dname 5 | var %x = 1 | while (%x <= $numtok($readini(VIPList.ini,VIPList,VIPList),32)) { did -a $dname 2 $gettok($readini(VIPList.ini,VIPList,VIPList),%x,32) | inc %x } }
  }
  if ($dname == VIPListadd) {
    if ($devent == sclick) {
      if ($did == 2 && $did(1)) {
        did -a VIPList 2 $did(1) | writeini VIPList.ini VIPList VIPList $addtok($readini(VIPList.ini,VIPList,VIPList),$iif($gettok($gettok($did(1),1,46),2,64) !== $null,$gettok($gettok($did(1),1,46),2,64),$did(1)),32)
        if ($did(3).state == 1) || ($did(4).state == 1) {
          if ($did(4).state == 1) { writeini VIPList.ini VIPList $iif(@ isin $did(1),$gettok($did(1),2,64),$did(1)) Op }
          else { writeini VIPList.ini VIPList $iif(@ isin $did(1),$gettok($did(1),2,64),$did(1)) Voice }
        }
      }
    }
  }
}
on *:join:#:{
  if ($gettok($gettok($wildsite,1,46),2,64) isin $readini(VIPList.ini,VIPList,VIPList)) || ($nick isin isin $readini(VIPList.ini,VIPList,VIPList)) {
    var %r =  $+ $r(2,15) | msg # %r $+ Hi %r $+  $+ $left($nick,1) $+  $+ $mid($nick,2,$calc($len($nick) -2)) $+ %r $+  $+ $right($nick,1) $+  $+ $chr(44) $+  %r $+ You %r $+ Are %r $+ In %r $+ My %r $+ VIP %r $+ List ( $+ %r $+ FxpScript)
    if ($me isop #) {
      if ($readini(VIPList.ini,VIPList,$gettok($gettok($wildsite,1,46),2,64)) == Op) || ($readini(VIPList.ini,VIPList,$nick) == Op) { mode # +o $nick }
      elseif ($readini(VIPList.ini,VIPList,$gettok($gettok($wildsite,1,46),2,64)) == Voice) || ($readini(VIPList.ini,VIPList,$nick) == Voice) { mode # +v $nick }
    }
  }
}
menu * {
  VIPList: dialog $iif($dialog(VIPList),-v,-m) VIPList VIPList
}
menu nicklist {
  VIPList
  .Add VIP: if ($gettok($gettok($address($1,2),1,46),2,64) !isin $readini(VIPList.ini,VIPList,VIPList)) { if ($dialog(VIPList)) did -a VIPList 2 $gettok($gettok($address($1,2),1,46),2,64) | writeini VIPList.ini VIPList VIPList $addtok($readini(VIPList.ini,VIPList,VIPList),$gettok($gettok($address($1,2),1,46),2,64),32) } | else { echo -a $address($1,2) is already on the VIPList list }
}
http://script.quakenet.org/paste/573183
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