Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. ^2::
  2. t1run:
  3. shell = %A_AppData%\hackmud\shell.txt
  4. WaitForShell()
  5. FileRead, rotatecheck, %shell%
  6. FoundPos := RegExMatch(rotatecheck, "System breach state reset")
  7. if ( FoundPos > 0 )
  8. {
  9. SendToHM("clear")
  10. sleep,6000
  11. SendToHM("unload_l")
  12. sleep,6000
  13. PokeZac()
  14. sleep,25000
  15. PokeCos()
  16. sleep,6000
  17. SendToHM("clear")
  18. Goto, t1run
  19. }
  20. FileRead, logcheck, %shell%
  21. FoundPos := RegExMatch(logcheck, "l0g_wr1t3r")
  22. if ( FoundPos > 0 )
  23. {
  24. SendToHM("clear")
  25. sleep,6000
  26. SendToHM("load_l")
  27. Goto, t1run
  28. }
  29. else
  30. {
  31. Goto, t1run
  32. }
  33.  
  34. PokeZac(){
  35. Hardline()
  36. start := A_Tickcount
  37. while (A_TickCount-start <= 105000)
  38. {
  39. SendToHM("zac.public_m68sed")
  40. sleep,4000
  41. }
  42. HardlineDC()
  43. }
  44.  
  45. PokeCos(){
  46. Hardline()
  47. start := A_Tickcount
  48. while (A_TickCount-start <= 105000)
  49. {
  50. SendToHM("cos.extern_op8no6")
  51. sleep,4000
  52. }
  53. HardlineDC()
  54. }
  55.  
  56. SendToHM(text){
  57. Clipboard := text
  58. sleep, 500
  59. ControlClick, ,hackmud,, RIGHT
  60. sleep, 500
  61. SetKeyDelay, 10, 10
  62. ControlSend, ,{Enter}{Enter}, hackmud
  63. }
  64.  
  65. WaitForShell(){
  66. global stopstate
  67. shell = %A_AppData%\hackmud\shell.txt
  68. FileGetTime, initialtime, %shell%
  69. newtime := initialtime
  70. while (newtime == initialtime){
  71. FileGetTime, newtime, %shell%
  72. sleep, 1000
  73. if (stopstate == 1)
  74. {
  75. GuiControl,,Status,idle
  76. Exit
  77. }
  78. }
  79. return
  80. }
  81.  
  82. HardlineDC(){
  83. sendToHM("kernel.hardline{dc:true}")
  84. sleep,6000
  85. }
  86.  
  87. Hardline(){
  88. sendToHM("kernel.hardline")
  89. sleep, 11000
  90. SetKeyDelay, 10, 10
  91. ControlSend, ,012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789, hackmud
  92. sleep, 13000
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement