Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- ; script to create the x potion in candy box 2
- ; sleep variable
- s := 10
- ftime := 3300 ; time for fireball to reach opponent
- ; reference position on the exit button in battle, must be in area above desert
- ; using position relative to window
- WPosX := 1044
- WPosY := 181
- desertY := 620 ; assuming scrolled to top in map
- Loop
- {
- Sleep, 100
- if (GetKeyState("CapsLock", "T"))
- {
- MouseClick, left, WPosX, WPosY ; exit battle
- Sleep, s
- MouseClick, left, WPosX, WPosY+desertY ; go to desert
- Sleep, s
- Send {Blind}x
- Sleep, s
- Send {Blind}f
- Sleep, ftime
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement