Advertisement
westor

Mod Thanker FIX for Koragg v1.0

May 25th, 2020
2,579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 4.91 KB | None | 0 0
  1. ;taken from http://www.ladysclub.net/index.php/downloads/download/2-mirc-scripte/1-g-script.html
  2. alias mt { dialog $iif(!$dialog(autothx),-md,-v) autothx autothx }
  3. dialog autothx {
  4.   title "Mode Thanker"
  5.   size -1 -1 172 266
  6.   option dbu
  7.   box "Voice", 1, 3 3 166 21
  8.   edit "", 2, 5 11 162 10, autohs
  9.   box "Halfop", 3, 3 51 166 21
  10.   edit "", 4, 5 59 162 10, autohs
  11.   box "Op", 5, 3 99 166 21
  12.   edit "", 6, 5 107 162 10, autohs
  13.   box "", 7, 3 242 166 21
  14.   check "Activate Mode Thanker", 8, 43 250 85 10
  15.   box "", 9, 1 -2 170 267
  16.   box "Devoice", 10, 3 25 166 21
  17.   edit "", 11, 5 33 162 10, autohs
  18.   box "Dehalfop", 12, 3 73 166 21
  19.   edit "", 13, 5 81 162 10, autohs
  20.   edit "", 14, 5 128 162 10, autohs
  21.   box "Deop", 15, 3 120 166 21
  22.   box "Deprotect", 16, 3 167 166 21
  23.   box "Protect", 17, 3 146 166 21
  24.   edit "", 18, 5 154 162 10, autohs
  25.   edit "", 19, 5 175 162 10, autohs
  26.   box "Owner", 20, 3 193 166 21
  27.   box "Deowner", 21, 3 214 166 21
  28.   edit "", 22, 5 201 162 10, autohs
  29.   edit "", 23, 5 222 162 10, autohs
  30. }
  31. on *:dialog:autothx:*:*:{
  32.   if ($devent == init) {
  33.     if ($hget(thx,voice)) { did -a $dname 2 $v1 }
  34.     if ($hget(thx,devoice)) { did -a $dname 11 $v1 }
  35.     if ($hget(thx,halfop)) { did -a $dname 4 $v1 }
  36.     if ($hget(thx,dehalfop)) { did -a $dname 13 $v1 }
  37.     if ($hget(thx,op)) { did -a $dname 6 $v1 }
  38.     if ($hget(thx,deop)) { did -a $dname 14 $v1 }
  39.     if ($hget(thx,prot)) { did -a $dname 18 $v1 }
  40.     if ($hget(thx,deprot)) { did -a $dname 19 $v1 }
  41.     if ($hget(thx,own)) { did -a $dname 22 $v1 }
  42.     if ($hget(thx,deown)) { did -a $dname 23 $v1 }
  43.  
  44.     if ($hget(thx,akt) == 1) { did -c $dname 8 }
  45.   }
  46.   if ($devent == sclick) && ($did = 8) { hadd thx akt $did($did).state }
  47.   if ($devent == edit) {
  48.     if ($did = 2) && ($did(2).text) { hadd thx voice $did($did).text }
  49.     if ($did = 11) && ($did(11).text) { hadd thx devoice $did($did).text }
  50.     if ($did = 4) && ($did(4).text) { hadd thx halfop $did($did).text }
  51.     if ($did = 13) && ($did(13).text) { hadd thx dehalfop $did($did).text }
  52.     if ($did = 6) && ($did(6).text) { hadd thx op $did($did).text }
  53.     if ($did = 14) && ($did(14).text) { hadd thx deop $did($did).text }
  54.     if ($did = 18) && ($did(18).text) { hadd thx prot $did($did).text }
  55.     if ($did = 19) && ($did(19).text) { hadd thx deprot $did($did).text }
  56.     if ($did = 22) && ($did(22).text) { hadd thx own $did($did).text }
  57.     if ($did = 23) && ($did(23).text) { hadd thx deown $did($did).text }
  58.   }
  59.   if ($devent == close) {
  60.     if ($hget(thx)) { hsave -o thx $qt(settings.hsh) }
  61.   }
  62. }
  63. on *:rawmode:#:{
  64.   if ($nick == $me) { return }
  65.   if ($hget(thx,akt) !== 1) { return }
  66.   if ($me !isin $1-) { return }
  67.  
  68.   if ($nick == ChanServ) || ($nick == OperServ) || ($nick == BotServ) || ($nick == NickServ) || ($nick == Global) || ($nick == HostServ) || ($nick == MemoServ) || (help isin $chan) { return }
  69.   if ($network == ICQ-Chat) && ($nick == Autobot) { return }
  70.   if ($network == UnderNET) && ($nick == X) { return }
  71.   if ($network == Quakenet) && ($nick == Q) { return }
  72.   if ($evalnext($+(%,modethankercheck,.,$nick))) { return }
  73.  
  74.   if (+v isin $1-) && ($chr(46) !isin $nick) { $iif($hget(thx,voice),.awaynoticesystem $nick $hget(thx,voice)) | set -eu10 $+(%,modethankercheck,.,$nick) 1 }
  75.   if (-v isin $1-) && ($chr(46) !isin $nick) { $iif($hget(thx,devoice),.awaynoticesystem $nick $hget(thx,devoice)) | set -eu10 $+(%,modethankercheck,.,$nick) 1 }
  76.   if (+h isin $1-) && ($chr(46) !isin $nick) { $iif($hget(thx,halfop),.awaynoticesystem $nick $hget(thx,halfop)) | set -eu10 $+(%,modethankercheck,.,$nick) 1 }
  77.   if (-h isin $1-) && ($chr(46) !isin $nick) { $iif($hget(thx,halfop),.awaynoticesystem $nick $hget(thx,dehalfop)) | set -eu10 $+(%,modethankercheck,.,$nick) 1 }
  78.   if (+o isin $1-) && ($chr(46) !isin $nick) { $iif($hget(thx,op),.awaynoticesystem $nick $hget(thx,op)) | set -eu10 $+(%,modethankercheck,.,$nick) 1 }
  79.   if (-o isin $1-) && ($chr(46) !isin $nick) { $iif($hget(thx,deop),.awaynoticesystem $nick $hget(thx,deop)) | set -eu10 $+(%,modethankercheck,.,$nick) 1 }
  80.   if (+a isin $1-) && ($chr(46) !isin $nick) { $iif($hget(thx,prot),.awaynoticesystem $nick $hget(thx,prot)) | set -eu10 $+(%,modethankercheck,.,$nick) 1 }
  81.   if (-a isin $1-) && ($chr(46) !isin $nick) { $iif($hget(thx,deprot),.awaynoticesystem $nick $hget(thx,deprot)) | set -eu10 $+(%,modethankercheck,.,$nick) 1 }
  82.   if (+q isin $1-) && ($chr(46) !isin $nick) { $iif($hget(thx,own),.awaynoticesystem $nick $hget(thx,own)) | set -eu10 $+(%,modethankercheck,.,$nick) 1 }
  83.   if (-q isin $1-) && ($chr(46) !isin $nick) { $iif($hget(thx,deown),.awaynoticesystem $nick $hget(thx,deown)) | set -eu10 $+(%,modethankercheck,.,$nick) 1 }
  84.  
  85. }
  86. on *:start:{
  87.   if (!$hget(thx)) { hmake thx }
  88.   if ($exists(settings.hsh)) { hload thx settings.hsh }
  89. }
  90. on *:load:{
  91.   if (!$hget(thx)) { hmake thx }
  92.   if ($exists(settings.hsh)) { hload thx settings.hsh }
  93. }
  94. On *:Exit: { if ($hget(thx)) { hsave thx settings.hsh } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement