Advertisement
Aareon

Attack on Titan Hotkey

Nov 17th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.92 KB | None | 0 0
  1. #include <Constants.au3>
  2. $has = 0
  3. $newDMG = 0
  4. $startHealth = 0
  5. $newHealth = 0
  6. $Health = 0
  7.  
  8.  
  9. Call("main")
  10.  
  11. Func main()
  12.    ToolTip("")
  13.    Sleep(2000)
  14.    HotKeySet("{ESC}", "esc")
  15.    HotKeySet("{;}", "gm")
  16.    HotKeySet("{y}", "flare")
  17.    HotKeySet("{z}", "reel")
  18.    HotKeySet("{\}", "sendgm")
  19.    While 1
  20.     Sleep(100)
  21.    WEnd
  22. EndFunc
  23.  
  24. Func esc()
  25.       ToolTip("Exiting...",0,0)
  26.       Sleep(1500)
  27.       Exit
  28. EndFunc
  29.  
  30. Func gm()
  31.    Switch @HotKeyPressed
  32.    Case "{;}"
  33.       ToolTip("GM"&$has,0,0)
  34.       $active = WinGetTitle("[ACTIVE]")
  35.             if $has == 0 Then
  36.                $Health = InputBox("GM Bot", "Input starting Health."&@LF&@LF&"Colossal I - Normal: 2000"&@LF&"Colossal I - Hard: 3500"&@LF&"Colossal I - Abnormal: 5000"&@LF&@LF&"Colossal II - Normal: 5000"&@LF&"Colossal II - Hard: 8000"&@LF&"Colossal II - Abnormal: 12000"&@LF&@LF&"Annie I - Normal: 1000"&@LF&"Annie I - Hard: 2500"&@LF&"Annie I - Abnormal: 4000"&@LF&@LF&"Annie II - Normal: 1000"&@LF&"Annie II - Hard: 3000"&@LF&"Annie II - Abnormal: 6000","","","","350")
  37.                ToolTip("Starting with "&$Health&" health.",0,0)
  38.                Sleep(1500)
  39.                ToolTip("Press ';' again for DMG Counter",0,0)
  40.                Sleep(2000)
  41.                WinActivate($active)
  42.                $has = 1
  43.                Call("main")
  44.             elseif $has == 1 Then
  45.                $newDMG = InputBox("GM Bot", "Input Damage dealt.")
  46.                $Health = $Health - $newDMG
  47.                ToolTip($Health,0,0)
  48.                Sleep(2000)
  49.                WinActivate($active)
  50.                Call("main")
  51.                EndIf
  52.    EndSwitch
  53. EndFunc
  54.  
  55. Func sendgm()
  56.    Switch @HotKeyPressed
  57.       Case "{\}"
  58.       ToolTip("Sending current health...",0,0)
  59.       Send('{ENTER}')
  60.       Sleep(500)
  61.       Send("Objective has "&$Health&" health.")
  62.       Sleep(2000)
  63.       Send('{ENTER}')
  64.       Sleep(2000)
  65.       Call("main")
  66.    EndSwitch
  67. EndFunc
  68.  
  69. Func flare()
  70.    Switch @HotKeyPressed
  71.    Case "{y}"
  72.       Call("main")
  73.    EndSwitch
  74. EndFunc
  75.  
  76. Func reel()
  77.    Switch @HotKeyPressed
  78.    Case "{z}"
  79.       Call("main")
  80.    EndSwitch
  81. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement