Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- right::
- BreakLoop = 0
- White = 0xffffff
- Loop
- {
- ;This section selects Character race/gender.
- ;Remove semicolon for whatever race/gender you are rolling for.
- ;click 445, 874, 5 ;Race Selection - Human (M)
- ;click 436, 914, 5 ;Race Selection - Human (F)
- ;click 569, 875, 5 ;Race Selection - Elf (M)
- ;click 566, 917, 5 ;Race Selection - Elf (F)
- ;click 727, 878, 5 ;Race Selection - Dwarf (M)
- ;click 726, 920, 5 ;Race Selection - Gnome (F)
- ;click 874, 878, 5 ;Race Selection - Porkul (M)
- ;click 861, 910, 5 ;Race Selection - Porkul (F)
- sleep 60 ;A slight pause
- ;Start the rolling
- click 569, 984, 5 ;OK Button
- Sleep 2500 ;Wait until the roll is done
- ;Search for white pixels in the area on the screen where a tens digit
- ;would be after the roll is done. This one stops on a 2 (20) or higher
- ;in the tens place.
- PixelSearch, Px, Py, 617, 500, 627, 520, White, 0, Fast RGB
- if (ErrorLevel = 0)
- break
- ;Stop macro
- if (BreakLoop = 1)
- break
- ;Continue to next roll
- click 637, 544, 5 ;OK Button on bonus points dialog.
- sleep 60 ;Pause
- click 720, 982, 5 ;Cancel character and reroll another.
- sleep 60 ;Wait for Server
- }
- return
- Esc::
- BreakLoop = 1
- return
- ;Used to stop macro when a 1 is in the tens place.
- ;PixelSearch, Px, Py, 622, 500, 632, 520, Whi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement