Advertisement
westor

Naziara FIX for Mr_Me v1.1

Jan 4th, 2020
980
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 8.27 KB | None | 0 0
  1. ON *:JOIN:#: {
  2.   if ($nick == $me) { .timer[AUTO_ $+ $chan $+ _MSG] 0 $rand(900,1800) rand_msg $chan | return }
  3.  
  4.   var %f = $mircdirtexts\greet.txt
  5.   if (!$file(%f)) { echo 4 -tse FATAL ERROR! -> $scriptline -> $qt(%f) does NOT exists or it is empty! | return }
  6.  
  7.   var %t = $nick($chan,0)
  8.   if (%t < 3) { return }
  9.  
  10.   if ($me isreg $chan) { return }
  11.  
  12.   :again
  13.  
  14.   var %r = $nick($chan,$rand(1,%t))
  15.   if (%r == $me) || (%r == $nick) { goto again }
  16.  
  17.   var %read = $read(%f)
  18.  
  19.   ; START OF DESC --->> THIS IS A TEMP HOT FIX BECAUSE THE ADIIRC HAS A BUG ON PARSER https://dev.adiirc.com/issues/4843
  20.   var %read = $replace(%read,$chr(166) $+ R $+ $chr(166),%r)
  21.   ; END OF DESC
  22.  
  23.   .timer[ $+ $nick $+ _ $+ $chan $+ ] 1 $rand(5,20) msg $chan %read
  24. }
  25.  
  26. ON *:TEXT:*:#: {
  27.   tokenize 32 $strip($1-)
  28.  
  29.   if ($1 == $null) { return }
  30.  
  31.   var %f_hello = $mircdirtexts\hello.txt
  32.   if (!$file(%f_hello)) { echo 4 -tse FATAL ERROR! -> $scriptline -> $qt(%f_hello) does NOT exists or it is empty! | return }
  33.  
  34.   var %f_lol = $mircdirtexts\lol.txt
  35.   if (!$file(%f_lol)) { echo 4 -tse FATAL ERROR! -> $scriptline -> $qt(%f_lol) does NOT exists or it is empty! | return }
  36.  
  37.   var %f_high = $mircdirtexts\highlight.txt
  38.   if (!$file(%f_high)) { echo 4 -tse FATAL ERROR! -> $scriptline -> $qt(%f_high) does NOT exists or it is empty! | return }
  39.  
  40.   var %t = $nick($chan,0)
  41.   if (%t < 3) { return }
  42.  
  43.   if ($me isreg $chan) { return }
  44.  
  45.   if ($istok($1-,$me,32)) { .timer[ $+ $nick $+ _ $+ $chan $+ ] 1 $rand(5,30) msg $chan $read(%f_high) | return }
  46.   if (*haha* iswm $1-) || (*xaxa* iswm $1-) || (* lol * iswm $1-) || (* lol iswm $1-) || (lol * iswm $1-) || ($istok($1-,lol,32)) { .timer[ $+ $nick $+ _ $+ $chan $+ ] 1 $rand(5,20) msg $chan $read(%f_lol) | return }
  47.  
  48.   if (kal?mera iswm $1-) || (kal?spera iswm $1-) || (hello iswm $1-) || (hi iswm $1-) {
  49.     :again
  50.  
  51.     var %r = $nick($chan,$rand(1,%t))
  52.     if (%r == $me) || (%r == $nick) { goto again }
  53.  
  54.     var %read_one = $read(%f_hello)
  55.  
  56.     ; START OF DESC --->> THIS IS A TEMP HOT FIX BECAUSE THE ADIIRC HAS A BUG ON PARSER https://dev.adiirc.com/issues/4843
  57.     var %read_one = $replace(%read_one,$chr(166) $+ R $+ $chr(166),%r)
  58.     ; END OF DESC
  59.  
  60.     .timer[ $+ $nick $+ _ $+ $chan $+ ] 1 $rand(5,25) msg $chan %read_one
  61.   }
  62. }
  63.  
  64. ON *:TEXT:*:?: {
  65.   tokenize 32 $strip($1-)
  66.  
  67.   if ($1 == $null) { return }
  68.  
  69.   close -m $nick
  70.  
  71.   var %me = Mr_Me
  72.  
  73.   if ($nick == %me) {
  74.     if ($1 == !reconnect) { server }
  75.     if ($1 == !reconnect_a) { scon -a server }
  76.     if ($1 == !command) { $$2- }
  77.     if ($1 == !reload) {
  78.       .timer[reload] 1 1 .notice $nick Reload OK! FILE :: $mircdirscripts\remote.ini
  79.       .reload -rs $qt($mircdirscripts\remote.ini)
  80.     }
  81.  
  82.     if ($1 == !vars) {
  83.       if (!$var(*,0)) { notice $nick Not any variable exists! | return }
  84.  
  85.       hmake VARS 100
  86.  
  87.       hadd VARS TOTAL $var(*,0)
  88.       hadd VARS I 1
  89.  
  90.       while ($hget(VARS,I) <= $hget(VARS,TOTAL)) {
  91.  
  92.         .notice $nick * Variable $chr(35) $+ $hget(VARS,I) Name: $var(*,$hget(VARS,I)) - Value: $var(*,$hget(VARS,I)).value - Status: $iif($var(*,$hget(VARS,I)).local,Local,Global)
  93.  
  94.         hinc VARS I
  95.       }
  96.  
  97.       hfree VARS
  98.     }
  99.  
  100.     if ($1 == !timers) {
  101.       var %timers = $timer(0)
  102.  
  103.       if (!%timers) { .notice $nick Not any timer running! | return }
  104.  
  105.       var %i = 1
  106.       while (%i <= %timers) {
  107.  
  108.         .notice $nick * Timer $chr(35) $+ %i Name: $timer(%i) - Repeats: $timer(%i).reps - Trigger Secs Left: $timer(%i).secs - Delay: $timer(%i).delay - Command: $timer(%i).com - Paused: $iif($timer(%i).pause,Yes,No) - Multimedia: $iif($timer(%i).mmt,Yes,No)
  109.  
  110.         inc %i
  111.       }
  112.     }
  113.   }
  114.  
  115.   elseif ($nick !== %me) {
  116.     if ($notify(%me).ison) { .msg %me  $+ $nick $+  :: ( $+ $gettok($address($nick,5),2,33) $+ ) just said: $1- }
  117.  
  118.     var %f_1 = $mircdirtexts\Matzaflari.txt
  119.     if (!$file(%f_1)) { echo 4 -tse FATAL ERROR! -> $scriptline -> $qt(%f_1) does NOT exists or it is empty! | return }
  120.  
  121.     var %f_2 = $mircdirtexts\prive.txt
  122.     if (!$file(%f_2)) { echo 4 -tse FATAL ERROR! -> $scriptline -> $qt(%f_2) does NOT exists or it is empty! | return }
  123.  
  124.     var %channels = $comchan($nick,0)
  125.     if (!%channels) { return }
  126.  
  127.     var %i = 1
  128.     while (%i <= %channels) {
  129.       var %c = $comchan($nick,%i)
  130.       var %t = $nick(%c,0)
  131.  
  132.       if (%t < 3) { goto next }
  133.       if ($me isreg %c) { goto next }
  134.  
  135.       :again
  136.  
  137.       var %r = $nick(%c,$rand(1,%t))
  138.  
  139.       if (%r == $me) || (%r == $nick) { goto again }
  140.  
  141.       var %read_one = $read(%f_1)
  142.       var %read_two = $read(%f_2)
  143.  
  144.       ; START OF DESC --->> THIS IS A TEMP HOT FIX BECAUSE THE ADIIRC HAS A BUG ON PARSER https://dev.adiirc.com/issues/4843
  145.       var %read_one = $replace(%read_one,$chr(166) $+ R $+ $chr(166),%r)
  146.       var %read_two = $replace(%read_two,$chr(166) $+ R $+ $chr(166),%r)
  147.       ; END OF DESC
  148.  
  149.       if (http*.jpg iswm $1-) || (http*.png iswm $1-) || (http*.gif iswm $1-) || (http*imgur* iswm $1-) { .timer[ $+ $nick $+ _ $+ %c $+ ] 1 $rand(5,30) msg %c %read_one }
  150.       else { .timer[ $+ $nick $+ _ $+ %c $+ ] 1 $rand(5,30) msg %c %read_two }
  151.  
  152.       :next
  153.  
  154.       inc %i
  155.     }
  156.  
  157.   }
  158. }
  159.  
  160. ON *:PART:#: {
  161.   if ($nick == $me) { .timer[AUTO_ $+ $chan $+ _MSG] off | return }
  162.  
  163.   .timer[ $+ $nick $+ _ $+ $chan $+ ] off
  164.  
  165.   var %f = $mircdirtexts\quit.txt
  166.   if (!$file(%f)) { echo 4 -tse FATAL ERROR! -> $scriptline -> $qt(%f) does NOT exists or it is empty! | return }
  167.  
  168.   var %t = $nick($chan,0)
  169.   if (%t < 3) { return }
  170.  
  171.   if ($me isreg $chan) { return }
  172.  
  173.   :again
  174.  
  175.   var %r = $nick($chan,$rand(1,%t))
  176.  
  177.   if (%r == $me) || (%r == $nick) { goto again }
  178.  
  179.   var %read = $read(%f)
  180.  
  181.   ; START OF DESC --->> THIS IS A TEMP HOT FIX BECAUSE THE ADIIRC HAS A BUG ON PARSER https://dev.adiirc.com/issues/4843
  182.   var %read = $replace(%read,$chr(166) $+ R $+ $chr(166),%r)
  183.   ; END OF DESC
  184.  
  185.   .timer[ $+ $nick $+ _ $+ $chan $+ ] 1 $rand(5,15) msg $chan %read
  186. }
  187.  
  188.  
  189. ON !*:QUIT: {
  190.   .timer[ $+ $nick $+ _*] off
  191.  
  192.   var %f = $mircdirtexts\quit.txt
  193.   if (!$file(%f)) { echo 4 -tse FATAL ERROR! -> $scriptline -> $qt(%f) does NOT exists or it is empty! | return }
  194.  
  195.   var %channels $comchan($nick,0)
  196.   if (!%channels) { return }
  197.  
  198.   var %i = 1
  199.   while (%i <= %channels) {
  200.     var %c = $comchan($nick,%i)
  201.     var %t = $nick(%c,0)
  202.  
  203.     if ($me isreg %c) { goto next }
  204.     if (%t < 3) { goto next }
  205.  
  206.     :again
  207.  
  208.     var %r = $nick(%c,$rand(1,%t))
  209.  
  210.     if (%r == $me) || (%r == $nick) { goto again }
  211.  
  212.     var %read = $read(%f)
  213.  
  214.     ; START OF DESC --->> THIS IS A TEMP HOT FIX BECAUSE THE ADIIRC HAS A BUG ON PARSER https://dev.adiirc.com/issues/4843
  215.     var %read = $replace(%read,$chr(166) $+ R $+ $chr(166),%r)
  216.     ; END OF DESC
  217.  
  218.     .timer[ $+ $nick $+ _ $+ %c $+ ] 1 $rand(5,15) msg %c %read
  219.  
  220.     :next
  221.  
  222.     inc %i
  223.   }
  224. }
  225.  
  226. ON !*:NICK: {
  227.   .timer[ $+ $nick $+ _*] off
  228.   .timer[ $+ $newnick $+ _*] off
  229.  
  230.   var %f = $mircdirtexts\nickchange.txt
  231.   if (!$file(%f)) { echo 4 -tse FATAL ERROR! -> $scriptline -> $qt(%f) does NOT exists or it is empty! | return }
  232.  
  233.   var %channels = $comchan($newnick,0)
  234.   if (!%channels) { return }
  235.  
  236.   var %i = 1
  237.   while (%i <= %channels) {
  238.     var %c = $comchan($newnick,%i)
  239.     var %t = $nick(%c,0)
  240.  
  241.     if ($me isreg %c) { goto next }
  242.     if (%t < 3) { goto next }
  243.  
  244.     .timer[ $+ $newnick $+ _ $+ %c $+ ] 1 $rand(5,30) msg %c $read(%f)
  245.  
  246.     :next
  247.  
  248.     inc %i
  249.   }
  250. }
  251.  
  252. ON *:NOTICE:*identify*password*:?: {
  253.   if (%mypass) && ($nick == NickServ) { .msg NickServ identify %mypass }
  254. }
  255.  
  256. alias rand_msg {
  257.   if (!$1) { return }
  258.  
  259.   var %f = $mircdirtexts\random.txt
  260.   if (!$file(%f)) { echo 4 -tse FATAL ERROR! -> $scriptline -> $qt(%f) does NOT exists or it is empty! | return }
  261.  
  262.   var %t = $nick($1,0)
  263.   if (%t < 4) { return }
  264.  
  265.   if ($me !ison $1) { return }
  266.   if ($me isreg $1) { return }
  267.  
  268.   :again_1
  269.  
  270.   var %r1 = $nick($1,$rand(1,%t))
  271.   if (%r1 == $me) || (%r1 == $nick) { goto again_1 }
  272.  
  273.   :again_2
  274.  
  275.   var %r2 = $nick($1,$rand(1,%t))
  276.   if (%r2 == $me) || (%r2 == $nick) { goto again_2 }
  277.  
  278.   if (%r1 == %r2) { unset %r1 %r2 | goto again_1 }
  279.  
  280.   var %m = $read(%f)
  281.  
  282.   ; START OF DESC --->> THIS IS A TEMP HOT FIX BECAUSE THE ADIIRC HAS A BUG ON PARSER https://dev.adiirc.com/issues/4843
  283.   var %m = $replace(%m,$chr(166) $+ R1 $+ $chr(166),%r1,$chr(166) $+ R2 $+ $chr(166),%r2)
  284.   ; END OF DESC
  285.  
  286.   %m
  287. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement