Advertisement
Guest User

Untitled

a guest
May 27th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.22 KB | None | 0 0
  1. #include <ButtonConstants.au3>
  2. #include <GUIConstantsEx.au3>
  3. #include <StaticConstants.au3>
  4. #include <WindowsConstants.au3>
  5. #NoTrayIcon
  6. #Region ### START Koda GUI section ### Form=C:\Users\pinki\Desktop\Projekte\CheatMe\Form1.kxf
  7. $HP = 100
  8. $HP_Protect = 0
  9. $HP_Protect2 = 3000
  10. $HP_Protect3 = 37362
  11. $HP_Protect4 = 1283.83
  12. $HP_Protect5 = 0
  13. $Form1 = GUICreate("CheatMe", 288, 93, 192, 124)
  14. $Label1 = GUICtrlCreateLabel("CheatMe", 8, 8, 65, 20)
  15. GUICtrlSetFont(-1, 10, 800, 0, "Microsoft Sans Serif")
  16. $Label2 = GUICtrlCreateLabel("HP:", 8, 40, 22, 17)
  17. $Label3 = GUICtrlCreateLabel($HP, 32, 40, 30, 17)
  18. $Button1 = GUICtrlCreateButton("Hit", 8, 64, 75, 25, $WS_GROUP)
  19. $Label4 = GUICtrlCreateLabel("Protected with PinkProtectA", 136, 72, 151, 19)
  20. GUICtrlSetFont(-1, 8, 400, 0, "Lucida Sans Unicode")
  21. GUICtrlSetColor(-1, 0xC0C0C0)
  22. GUISetState(@SW_SHOW)
  23. #EndRegion ### END Koda GUI section ###
  24. ShellExecute("PinkProtectA.exe")
  25.  
  26. if not ProcessExists("PinkProtectA.exe") Then
  27.     Exit 0
  28. EndIf
  29.  
  30. While 1
  31.     if not ProcessExists("PinkProtectA.exe") Then
  32.         Exit 0
  33.     EndIf
  34.    
  35.     $nMsg = GUIGetMsg()
  36.     Switch $nMsg
  37.         Case $GUI_EVENT_CLOSE
  38.             Exit
  39.  
  40.         Case $Button1
  41.             $HP_Protect5 = $HP_Protect5 + 74.32
  42.             $HP_Protect4 = $HP_Protect4 - 12.8383
  43.             $HP_Protect3 = $HP_Protect3 - 373.63
  44.             $HP_Protect2 = $HP_Protect2 - 30
  45.             $HP_Protect = $HP_Protect + 1
  46.             $HP = $HP - 1
  47.            
  48.             if $HP <> (100 - $HP_Protect) Then
  49.                 $HP = 100 - $HP_Protect
  50.             EndIf
  51.            
  52.             if ($HP_Protect2 * 100 / 3000) <> (100 - $HP_Protect) Then
  53.                 $HP = $HP_Protect2 * 100 / 3000
  54.             EndIf
  55.             ;Runden!
  56.             if Round(($HP_Protect3 * 100 / 37362), 1) <> ($HP_Protect2 * 100 / 3000) Then
  57.                 $HP = Round(($HP_Protect3 * 100 / 37362), 1)
  58.             EndIf
  59.            
  60.             if ($HP_Protect4 * 100 / 1283.83) <> ($HP_Protect3 * 100 / 37362) Then
  61.                 $HP = $HP_Protect4 * 100 / 1283.83
  62.             EndIf
  63.            
  64.             if (100 - ($HP_Protect5 * 100 / 7432)) <> ($HP_Protect4 * 100 / 1283.83) Then
  65.                 $HP = (100 - ($HP_Protect5 * 100 / 7432))
  66.             EndIf
  67.            
  68.             if $HP < 0 Then
  69.                 MsgBox(0, ":(", "Du bist tot!")
  70.                 $HP = 100
  71.                 $HP_Protect = 0
  72.                 $HP_Protect2 = 3000
  73.                 $HP_Protect3 = 37362
  74.                 $HP_Protect4 = 1283.83
  75.                 $HP_Protect5 = 0
  76.             EndIf
  77.            
  78.             GUICtrlSetData($Label3, $HP)
  79.     EndSwitch
  80. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement