Advertisement
Guest User

Untitled

a guest
May 3rd, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 3.14 KB | None | 0 0
  1. alias kaoshax {
  2.   stopkaoshax noecho
  3.   if ($checkaccount) {
  4.     startkaoshax
  5.     .timerkaoshax 0 5 checkkaoshax
  6.   }
  7.   else {
  8.     echo 4 -ta KAOSHax: Invalid Username or Password
  9.   }
  10. }
  11.  
  12. alias stopkaoshax {
  13.   if ($sock(kaosconn)) { .sockclose kaosconn }
  14.   .timerkaoshax off
  15.   if (!$1) { echo 10 -ta KAOSHax Disabled }
  16. }
  17.  
  18. alias gbastats {
  19.   unset %gbastats_username
  20.   unset %gbastats_password
  21.   checkaccount
  22. }
  23. alias resetkaoshax { gbastats }
  24.  
  25. alias -l startkaoshax {
  26.   if (%gbastats_username) {
  27.     if (%gbastats_password) {
  28.       echo 10 -ta KAOSHax Enabled
  29.       sockopen kaosconn fragmentedforce.com 6373
  30.     }
  31.     else {
  32.       echo 4 -ta KAOSHax: Password not set.
  33.       .timerkaoshax off
  34.     }
  35.   }
  36.   else {
  37.     echo 4 -ta KAOSHax: Username not set.
  38.     .timerkaoshax off
  39.   }
  40. }
  41.  
  42. alias -l checkkaoshax { if (!$sock(kaosconn)) { startkaoshax } }
  43.  
  44. alias -l checkaccount {
  45.   if ($1 == wrongpass) {
  46.     set %gbastats_password $?*="Incorrect password. Please enter the correct password:"
  47.   }
  48.   elseif ($1 == wronguser) {
  49.     set %gbastats_username $?="Incorrect username. Please enter the correct username:"
  50.     set %gbastats_password $?*="Please enter your GBAStats password:"
  51.   }
  52.   else {
  53.     if (!%gbastats_username) {
  54.       set %gbastats_username $?="Please enter your GBAStats username:"
  55.     }
  56.     if (!%gbastats_password) {
  57.       set %gbastats_password $?*="Please enter your GBAStats password:"
  58.     }
  59.   }
  60.   if (%gbastats_username) {
  61.     if (%gbastats_password) {
  62.       return $true
  63.     }
  64.     else { return $false }
  65.   }
  66.   else { return $false }
  67. }
  68.  
  69. alias -l kaoshaxwait {
  70.   if ($1 == wrongpass) {
  71.     if ($checkaccount(wrongpass)) { kaoshax }
  72.     else { echo 4 -ta KAOSHax: Invalid Password. }
  73.  
  74.   }
  75.   elseif ($1 == wronguser) {
  76.     if ($checkaccount(wronguser)) { kaoshax }
  77.     else { echo 4 -ta KAOSHax: Invalid Username. }
  78.   }
  79. }
  80.  
  81. on *:SOCKOPEN:kaosconn: {
  82.   echo 10 -ta KAOSHax Connected
  83.   sockwrite -nt $sockname %gbastats_username
  84.   sockwrite -nt $sockname %gbastats_password
  85. }
  86. on *:SOCKREAD:kaosconn: {
  87.   sockread 1 %kaos
  88.   echo 10 -ts KAOSHax: %kaos
  89.   if (%kaos == Negative on that, Houston.) {
  90.     unset %kaos_password
  91.     stopkaoshax
  92.     .timer 1 1 kaoshaxwait wrongpass
  93.     halt
  94.   }
  95.   if (%kaos == You don't have access.) {
  96.     unset %kaos_username
  97.     unset %kaos_password
  98.     stopkaoshax
  99.     .timer 1 1 kaoshaxwait wronguser
  100.     halt
  101.   }
  102.  
  103.   if ($+(*,$chr(91),KAOS,$chr(93),$chr(32),*,$chr(124),*,$chr(124),*) iswm %kaos) {
  104.     var %kaos2 $right(%kaos, - $+ $calc($pos(%kaos,$chr(91) $+ KAOS $+ $chr(93),1) + 6))
  105.     echo 10 -ts KAOSHax TRIGGERED! %kaos2
  106.     tokenize 124 %kaos2
  107.     var %kaos_num 1
  108.     var %kaos_tok $ [ $+ [ %kaos_num ] ]
  109.     msg #pokeymans $mid(%kaos_tok, 1, $len(%kaos_tok))
  110.     while (%kaos_num < $0) {
  111.       inc %kaos_num
  112.       var %kaos_tok $ [ $+ [ %kaos_num ] ]
  113.       msg #pokeymans $mid(%kaos_tok, 2, $calc($len(%kaos_tok) - 1))
  114.     }
  115.   }
  116. }
  117.  
  118. on *:SOCKCLOSE:kaosconn: {
  119.   echo 10 -ta KAOSHax Disconnected
  120. }
  121.  
  122. on *:TEXT:*K0*Answers*:#pokeymans: {
  123.   if ($sock(kaosconn)) {
  124.     sockwrite -nt kaosconn .kaosanswer
  125.     echo 10 -ts KAOSHax -> .kaosanswer
  126.   }
  127. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement