Advertisement
hkbruvold

Candy Box 2 use X Potion

Mar 12th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn  ; Enable warnings to assist with detecting common errors.
  3. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5.  
  6. ; script to create the x potion in candy box 2
  7.  
  8.  
  9. ; sleep variable
  10. s := 10
  11. ftime := 3300 ; time for fireball to reach opponent
  12.  
  13. ; reference position on the exit button in battle, must be in area above desert
  14. ; using position relative to window
  15. WPosX := 1044
  16. WPosY := 181
  17.  
  18. desertY := 620 ; assuming scrolled to top in map
  19.  
  20. Loop
  21. {
  22. Sleep, 100
  23. if (GetKeyState("CapsLock", "T"))
  24. {
  25.  
  26. MouseClick, left, WPosX, WPosY ; exit battle
  27. Sleep, s
  28. MouseClick, left, WPosX, WPosY+desertY ; go to desert
  29. Sleep, s
  30. Send {Blind}x
  31. Sleep, s
  32. Send {Blind}f
  33. Sleep, ftime
  34.  
  35.  
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement