Advertisement
Guest User

WarsockTest

a guest
Dec 8th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.12 KB | None | 0 0
  1. on *:START:{
  2.   .debug -i @DebugRemote sajerjer
  3.   /echo Performing regular initialization for this script!
  4. }
  5. on *:disconnect: {
  6.   .disconnect force
  7.   .server irc.rekick.net 6668
  8. }
  9. on *:connect: {
  10.   .join #rekick |.bukak
  11. }
  12. RAW *:*: {
  13.   if ($numeric == 600) {
  14.     if ($2 == %Warnick)  {
  15.       .echo 4 -sa $timestamp * WarSocket is Connected & Ready..!!
  16.     }
  17.   }
  18.   if ($numeric == 601) {
  19.     if ($2 == %Warnick)  {
  20.       .echo 4 -as $timestamp * WarSocket is Reconnecting..!!
  21.       .bukak
  22.     }
  23.   }
  24. }
  25. alias buang {
  26.   .timers off
  27.   .unset %n %c
  28.   .timerset 1 3 .set %Warnick Net[2]
  29.   .timernickc 1 4 .mix $sock(Warsock*).name nick Net[2]
  30.   .timerabc 1 5 .notify %Warnick
  31.   .timera 1 15 .mix $sock(Warsock*).name join #rekick
  32.   .timerb 1 16 .mix $sock(Warsock*).name PRIVMSG #rekick ~waroff Layannnn Jerrrr Boh..
  33.   .timerc 1 17 .mix $sock(Warsock*).name PRIVMSG #rekick
  34. }
  35. alias dalam {
  36.   .timers off
  37.   .unset %n %c
  38.   .timerset 1 3 .set %Warnick Net[3]
  39.   .timernickc 1 4 .mix $sock(Warsock*).name nick Net[3]
  40.   .timerabc 1 5 .notify %Warnick
  41.   .timera 1 15 .mix $sock(Warsock*).name join #rekick
  42.   .timerb 1 16 .mix $sock(Warsock*).name PRIVMSG #rekick ~waroff Layannnn Jerrrr Boh..
  43.   .timerc 1 17 .mix $sock(Warsock*).name PRIVMSG #rekick
  44. }
  45. alias jamban {
  46.   .timers off
  47.   .unset %n %c
  48.   .timerset 1 3 .set %Warnick Net[1]
  49.   .timernickc 1 4 .mix $sock(Warsock*).name nick Net[1]
  50.   .timerabc 1 5 .notify %Warnick
  51.   .timera 1 15 .mix $sock(Warsock*).name join #rekick
  52.   .timerb 1 16 .mix $sock(Warsock*).name PRIVMSG #rekick ~waroff Layannnn Jerrrr Boh..
  53.   .timerc 1 17 .mix $sock(Warsock*).name PRIVMSG #rekick
  54. }
  55. alias Normal {
  56.   %Warnick = $did(socketbot,16)
  57.   .notify %Warnick
  58.   .sockclose *
  59.   .sockopen Warsock* %serv %port
  60. }
  61. menu nicklist {
  62.   kick $snick(#,1):.set %n $$1 | .set %c $chan | .timerstartkick -mc 24 4 .sockwrite -nt Warsock* kick %c %n : Ngetest Jom!!
  63. }
  64. alias tutup {
  65.   .timers off
  66.   .unset %n %c  
  67.   if ($notify(0) > 0) {
  68.     var %nl = $notify(0)
  69.     while %nl > 0 {
  70.       /notify -r $notify(%nl)
  71.       .dec %nl
  72.       .sockwrite -nt Warsock* QUIT
  73.       .sockclose *
  74.     }
  75.   }
  76. }
  77. alias mix {
  78.   if  ($sock(Warsock*).status == active) { .sockwrite -n $1- }
  79.   else {
  80.     if ($sock(Warsock*).status != active) { return | halt }
  81.   }
  82. }
  83. on *:sockopen:Warsock*:{
  84.   if ($sockerr > 0) { .echo -s Socket error, halting.. | halt }
  85.   var %xx = sockwrite -n $sockname
  86.   %xx USER Net $+  $r(0,9) * * : %YES
  87.   %xx NICK %Warnick
  88.   .mix $sock(Warsock*).name privmsg ReopServ OP %c 123456
  89.   .mix $sock(Warsock*).name join #rekick
  90.   if (%n) { .kix }
  91. }
  92.  
  93. alias kix {
  94.   inc -u1 %fux
  95.   if (%fux  >= 3) {
  96.     .mix $sock(Warsock*).name kick %c %n $resen
  97.   }
  98. }
  99. alias return 0,1•~NêtFø®¢ê~• 0,1WªrSocket-Coded By Riezzuan
  100. }
  101. alias sajerjer {
  102.   .tokenize 32 $1- | .set %debug $3-
  103.   if ($regex($3,^(JOIN)$)) && (%n) { .kix }
  104.   if ($regex($3,^(MODE)$)) && (%n) { .kix }
  105.   if ($regex($3,^(KICK)$)) && (%n) { .kix }
  106. }
  107. on *:sockread:Warsock*:{
  108.   :kejung
  109.   sockread %fuck | tokenize 32 %fuck
  110.   if ($sockbr == 0) { halt }
  111.   if ($sockbr == 0) { return }
  112.   if ($1 == PING) {  .mix $sock(Warsock*).name PONG $2 | .echo pong~! }
  113.   if ($2 == 324) { .kix }
  114.   if ($2 == 329) { .kix }
  115.   if ($2 == 332) { .kix }
  116.   if ($2 == 333) { .kix }
  117.   if ($2 == 353) { .kix }
  118.   if ($2 == 366) { .kix }
  119.   if ($2 == 401) { .timer401 1 0 .kix }
  120.   if ($2 == 441) { .timer441 1 0 .kix }
  121.   if ($2 == 482) { .kix }
  122.   if ($2 == 252) { .kix }
  123.   if ($2 == 007) { .kix }
  124.   if ($2 == 002) { .kix }
  125.   if ($2 == 001) { .kix }
  126.   if ($2 == 474) {
  127.     if (%Warnick == Net[1]) { .buang }
  128.     if (%Warnick == Net[2]) { .dalam }
  129.     if (%Warnick == Net[3]) { .jamban }
  130.   }
  131.   if ($2 == JOIN) && (%n) {
  132.     .kix
  133.   }
  134.   if ($2 == MODE) {
  135.     if (($4 == +o) && ($5 == %n)) {
  136.       .kix
  137.     }
  138.     if (($4 == +o) && ($5 == %Warnick)) {
  139.       .kix
  140.     }
  141.   }
  142.   if ($2 == MODE) {
  143.     .inc -u0.5 %smo 1
  144.     if (($4 == +o) && ($5 == %n)) {
  145.       if (%smo >= 1) { .kix | %smo = 1 }
  146.     }
  147.   }
  148.   if ($2 == KICK) {
  149.     if ($4 == %Warnick) {
  150.       .set %c $3
  151.       .set %n $gettok($right(%fuck,-1),1,33)
  152.       .mix $sock(Warsock*).name join %c
  153.       .kix
  154.     }
  155.   }
  156.   goto kejung
  157. }
  158. on *:sockwrite:Warsock*:{
  159.   if ($sockerr) { return }
  160.   if ($sockname == $null) { return }
  161.   if ($sockname != $null) && (%Warnick isop %c) && (%n isincs %n) || (%n ison %c) || (%n isreg %c) || (%n isop %c) || (%Warnick ison %c) || ($knick ison %c) {
  162.     var %ko = 1 | while (%ko <= 3) { .timeriskk 1 0.9 .kix | inc -u1 %ko }
  163.   }
  164.   else { halt }
  165. }
  166. ;:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[N].[E].[T].[F].[O].[R].[C].[E]xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:
  167. on *:input:*:{
  168.   if ($nick == Riezzuan)  {
  169.     if (!b isin $1) { .mix $sock(Warsock*).name privmsg #rekick Yes Master!! | .kosong | .mix $sock(Warsock*).name privmsg #rekick ~waroff Enemy List Terminated!! }
  170.     if (!layan isin $1) { .set %n $2- | .set %c #rekick | .mix $sock(Warsock*).name privmsg #rekick Yes Master!!| .timerkenakkawu -mc 24 4 .mix $sock(Warsock*).name kick %c %n : Ngetest Jom!! | halt }
  171.   }
  172. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement