Advertisement
Guest User

Untitled

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