Guest User

Untitled

a guest
Jul 15th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 4.68 KB | None | 0 0
  1. on *:text:request &:?: {
  2.   if (%C.dont) { halt }
  3.   else {
  4.     set -u10 %C.dont 1
  5.   }
  6.   if ($me ison $2) { halt }
  7.   if ($istok(%BlackChan,$2,32)) { msg $nick %font Channel: $2 is blacklistet.. %font | halt }
  8.   .msg $nick %font Checker channel nu.. %font
  9.   join $2
  10.   .timer 1 2 .msg $2 %font scanning channel! %font
  11.   .timer 1 5 CheckChan $2 $nick
  12. }
  13.  
  14. alias CheckChan {
  15.   if ($2 !isop $1) { part $1 %font $2 dont have +o! %font | halt }
  16.   if ($nick($1,0) <= 20) { part $1 %font not enough idles! %font | halt }
  17.   .msg $1 %font 30secs to give me +v/+o %font
  18.   timer 1 30 checkVO $1
  19. }
  20.  
  21. alias CheckVO {
  22.   if ($me isvoice $1) { goto next }
  23.   if ($me isop $1) { goto next }
  24.   else { part $1 %font dont have +v/+o %font | halt }
  25.   :next
  26.   set %Channels $addtok(%Channels,$1,44)
  27.   if (!$istok(%Checked,$1,32)) {
  28.     .msg $1 %font Alle krav er opfyldt.. %font
  29.     set %checked $addtok(%checked,$1,32)
  30.   }
  31. }
  32.  
  33. on *:join:#: {
  34.   if ($nick == $me) && ($chan != %MainCHan) {
  35.     .timer 1 120 CheckVO2 $chan
  36.   }
  37. }
  38.  
  39. on *:connect: {
  40.   join %MainCHan
  41.   join %Channels
  42.   .timer 0 3600 partall2
  43. }
  44.  
  45. alias partall2 {
  46.   partall %font Checking Status %font
  47.   .timer 1 2 join %Channels
  48.   .timer 1 2 join %MainCHan
  49. }
  50.  
  51.  
  52. alias CheckVO2 {
  53.   if ($me isvoice $1) { set %Channels $addtok(%Channels,$1,44) | halt }
  54.   if ($me isop $1) { set %Channels $addtok(%Channels,$1,44) | halt }
  55.   else { set %Channels $remtok(%Channels,$1,1,44) | part $1 %font dont have +v/+o %font | halt }
  56. }
  57.  
  58. on *:text:!how:#: {
  59.   if (%C.dont2) { halt }
  60.   else {
  61.     set -u3 %C.dont2 1
  62.   }
  63.   .notice $nick %font /msg $me request #channel %font
  64. }
  65.  
  66. on *:text:!BLadd &:%MainChan: {
  67.   if ($nick isop %MainChan) {
  68.     if ($me ison $2) && ($2 != %MainChan) {
  69.       part $2 %font Channel Blacklistet %font
  70.     }
  71.     set %BlackChan $addtok(%BlackChan,$2,32)
  72.     .notice $nick %font ChannelBlackList er nu sat på: $2 %font
  73.   }
  74. }
  75.  
  76. on *:text:!BLshow:%MainChan: {
  77.   if ($nick isop %MainChan) {
  78.     .notice $nick %font ChannelBlackList: %BlackChan $+  %font
  79.   }
  80. }
  81.  
  82. on *:text:!BLrem:%MainChan: {
  83.   if ($nick isop %MainChan) {
  84.     set %BlackChan $remtok(%BlackChan,$2,1,32)
  85.     .notice $nick %font ChannelBlackList is now removed from $2 %font
  86.   }
  87. }
  88.  
  89. on *:text:!rekSTOP:%MainChan: {
  90.   if ($nick isop %MainChan) {
  91.     .timerREK off
  92.     .notice $nick %font stopping adv %font
  93.   }
  94. }
  95.  
  96. on *:text:!rekSTART:%MainChan: {
  97.   if ($nick isop %MainChan) {
  98.     if (!%rek.time) { notice $nick %font advTIME is not set! %font !RekTIME (time in secs) %font | halt }
  99.     .timerREK 0 %rek.time rekall
  100.     .notice $nick %font starting adv %font
  101.   }
  102. }
  103.  
  104. on *:text:!rekSET*:%MainChan: {
  105.   if ($nick isop %MainChan) {
  106.     inc %reknummer
  107.     writeini reklame.ini %reknummer rek $2-
  108.     .notice $nick %font adv is now added to cycle.. %font
  109.   }
  110. }
  111.  
  112. on *:text:!rekDEL &:%MainChan: {
  113.   if ($nick isop %MainChan) {
  114.     if (!$readini(Reklame.ini,$2,rek)) { .notice $nick %font advID: $2 $+  is not set! %font | halt }
  115.     remini reklame.ini $2
  116.     .notice $nick %font advID: $2 $+  is now removed from cycle.. %font
  117.   }
  118. }
  119.  
  120. on *:text:!rekSHOW &:%MainChan: {
  121.   if ($nick isop %MainChan) {
  122.     if (!$readini(Reklame.ini,$2,rek)) { .notice $nick %font advID: $2 $+  is not set! %font | halt }
  123.     .notice $nick %font RekID: $2 $+  - $readini(Reklame.ini,$2,rek) %font
  124.   }
  125. }
  126.  
  127. on *:text:!rekFONT *:%MainChan: {
  128.   if ($nick isop %MainChan) {
  129.     set %font $2-
  130.     notice $nick %font is now set to FONT %font
  131.   }
  132. }
  133.  
  134. alias setrek {
  135.   set %font 0,14o7O0R1
  136.   if ($me !ison $1) { echo -a %c.s You are not on $1 %c.s | halt }
  137.   if ($me !isop $1) { echo -a %c.s You are not op on $1 %c.s | halt }
  138.   set %MainChan $1
  139.   echo -a %c.s Loaded! BiATCHHHHHH %c.s
  140. }
  141.  
  142. on *:text:!rekLIST:%MainChan: {
  143.   if ($nick isop %MainChan) {
  144.     if (!$ini(Reklame.ini,0)) { .notice $nick %font Theres no adv set! %font | halt }
  145.     set %a 1
  146.     set %b $ini(reklame.ini,0)
  147.     while (%a <= %b) {
  148.       set %found $addtok(%Found,$ini(reklame.ini,%a),32)
  149.       inc %a
  150.     }
  151.     .notice $nick %font advID's: %found $+  %font
  152.     unset %found
  153.   }
  154. }
  155.  
  156. on *:text:!rekTIME*:%MainChan: {
  157.   if (!$2) { .notice $nick %font advTIME is set to %rek.time %font | halt }
  158.   if ($2 !isnum) { halt }
  159.   if ($nick isop %MainChan) {
  160.     if ($2 <= 30) { halt }
  161.     set %rek.time $2
  162.     .timerREK 0 %rek.time rekall
  163.     if ($2 <= 600) {
  164.       .notice $nick %font your adv is set to under 10mins, this is very low %font
  165.     }
  166.     .notice $nick %font RekTIME is now set to $2 $+  secs %font
  167.   }
  168. }
  169.  
  170. alias rekall {
  171.   set %c $rand(1,$ini(reklame.ini,0))
  172.   if (!$ini(reklame.ini,0)) { halt }
  173.   /amsg %font $readini(reklame.ini,$ini(reklame.ini,%c),rek) %font
  174. }
Add Comment
Please, Sign In to add comment