Advertisement
Guest User

Wizardry online auto mouse script

a guest
Feb 11th, 2013
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. right::
  2. BreakLoop = 0
  3. White = 0xffffff
  4. Loop
  5. {
  6. ;This section selects Character race/gender.
  7. ;Remove semicolon for whatever race/gender you are rolling for.
  8. ;click 445, 874, 5 ;Race Selection - Human (M)
  9. ;click 436, 914, 5 ;Race Selection - Human (F)
  10. ;click 569, 875, 5 ;Race Selection - Elf (M)
  11. ;click 566, 917, 5 ;Race Selection - Elf (F)
  12. ;click 727, 878, 5 ;Race Selection - Dwarf (M)
  13. ;click 726, 920, 5 ;Race Selection - Gnome (F)
  14. ;click 874, 878, 5 ;Race Selection - Porkul (M)
  15. ;click 861, 910, 5 ;Race Selection - Porkul (F)
  16.  
  17. sleep 60 ;A slight pause
  18. ;Start the rolling
  19. click 569, 984, 5 ;OK Button
  20. Sleep 2500 ;Wait until the roll is done
  21. ;Search for white pixels in the area on the screen where a tens digit
  22. ;would be after the roll is done. This one stops on a 2 (20) or higher
  23. ;in the tens place.
  24. PixelSearch, Px, Py, 617, 500, 627, 520, White, 0, Fast RGB
  25. if (ErrorLevel = 0)
  26. break
  27. ;Stop macro
  28. if (BreakLoop = 1)
  29. break
  30. ;Continue to next roll
  31. click 637, 544, 5 ;OK Button on bonus points dialog.
  32. sleep 60 ;Pause
  33. click 720, 982, 5 ;Cancel character and reroll another.
  34. sleep 60 ;Wait for Server
  35. }
  36. return
  37. Esc::
  38. BreakLoop = 1
  39. return
  40.  
  41. ;Used to stop macro when a 1 is in the tens place.
  42. ;PixelSearch, Px, Py, 622, 500, 632, 520, Whi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement