Advertisement
Guest User

wizard

a guest
Jun 5th, 2012
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.59 KB | None | 0 0
  1. Global $Paused
  2.  
  3. HotKeySet("=","Leave")
  4. HotKeySet("-", "Pause")
  5. HotKeySet("x", "Stop")
  6.  
  7. $default_resolutionX = 1920
  8. $default_resolutionY = 1080
  9. $x_ratio = @Desktopwidth / $default_resolutionX
  10. $y_ratio = @Desktopheight / $default_resolutionY
  11.  
  12. $go = True
  13. $Leave = False
  14.  
  15. While $go
  16. if($Leave) Then
  17. $Pixel1 = PixelSearch((682 * $x_ratio),(10 * $y_ratio),(1635 * $x_ratio),(195 * $y_ratio),0xFFF000) ;searches top right screen for
  18.  
  19. yellow of broken armor
  20. If Not @error Then
  21. Send("t")
  22. Sleep(8000)
  23. MouseClick("left", Round(1480 * $x_ratio),Round(281 * $y_ratio));begin movement towards merchant
  24. Sleep(1500)
  25. MouseClick("left", Round(1316 * $x_ratio),Round(206 * $y_ratio)) ;moves to get merchant in screen
  26. Sleep(1500)
  27. MouseClick("left", Round(945 * $x_ratio),Round(225 * $y_ratio)) ;NPC Merchant to the right of cain's home
  28. Sleep(1500)
  29. MouseClick("left", Round(581 * $x_ratio),Round(526 * $y_ratio)) ;button to open up repair menu
  30. Sleep(1500)
  31. MouseClick("left", Round(260 * $x_ratio),Round(595 * $y_ratio)) ;button to pay for repairs
  32. Sleep(2500)
  33. Send("{ESCAPE}") ;opens menu
  34. Sleep(1000)
  35. MouseClick("left", Round(956 * $x_ratio),Round(579 * $y_ratio)) ;button to leave game
  36. Sleep(8000)
  37. MouseClick("left", Round(230 * $x_ratio),Round(416 * $y_ratio)) ;button to resume game from main menu
  38. Sleep(8000)
  39. Else
  40. MouseClick("left", Round(587 * $x_ratio),Round(333 * $y_ratio)) ;starts the main run
  41. Sleep(400)
  42. Send("1")
  43. Sleep(700)
  44. Send("3")
  45. Sleep(700)
  46. Send("2")
  47. MouseClick("left", Round(96 * $x_ratio),Round(383 * $y_ratio))
  48. Sleep(800)
  49. Sleep(1500)
  50. MouseClick("left", Round(117 * $x_ratio),Round(422 * $y_ratio)) ;middle of area outside of cellar
  51. Sleep(2000)
  52.  
  53. ;Send("2")
  54. MouseMove(Round(115 * $x_ratio),Round(210 * $y_ratio),1) ;moves cursor over to the cellar so the proper blue pixel
  55.  
  56. becomes highlighted
  57. Sleep(2000)
  58. $Pixel2 = PixelSearch(0,0,(960 * $x_ratio),(540 * $y_ratio),0x3B62E3,3) ;searches for the specific blue pixel
  59.  
  60. that only occurs when mouse hovers over open cellar
  61. If Not @error Then
  62. MouseClick("left",Round(115 *$x_ratio),Round(210 * $y_ratio)) ;Entrance to cellar
  63. Sleep(1900)
  64. Send(2)
  65. Sleep(1800)
  66. MouseClick("left",Round(531 *$x_ratio),Round(769 * $y_ratio))
  67. Sleep(2000)
  68. MouseClick("left",Round(447 *$x_ratio),Round(490 * $y_ratio)) ;moves to doorway leading to rare inside
  69.  
  70. cellar
  71. Sleep(1500)
  72. MouseMove(Round(579 * $x_ratio),Round(209 * $y_ratio),1) ;hovers over the rare Sarkoth
  73. Send(4)
  74. Sleep(1000)
  75. Send("{SHIFTDOWN}")
  76. MouseDown("right") ;attack middle
  77. Sleep(3800)
  78. MouseMove(Round(467 * $x_ratio),Round(269 * $y_ratio),1) ;attack left, add more sleep time if you
  79.  
  80. can't kill minion on left
  81. Sleep(3000)
  82. MouseMove(Round(682 * $x_ratio),Round(147 * $y_ratio),1) ;attack right
  83. Sleep(800)
  84. MouseMove(Round(579 * $x_ratio),Round(209 * $y_ratio),1) ;move back to middle
  85. Sleep(1000)
  86. MouseUP("right")
  87. Sleep(300)
  88. Send("{SHIFTUP}")
  89. Sleep(500)
  90. MouseClick("left",Round(579 *$x_ratio),Round(209 * $y_ratio)) ;location of sarkoth after death
  91. Sleep(2500)
  92. MouseClick("left",Round(866 *$x_ratio),Round(324 * $y_ratio)) ;moves to right top corner for gold
  93. Sleep(1500)
  94. MouseClick("left",Round(902 *$x_ratio),Round(954 * $y_ratio)) ;moves to bottom middle for gold
  95.  
  96.  
  97. Sleep(1500)
  98. MouseClick("left",Round(687 *$x_ratio),Round(413 * $y_ratio)) ;moves to left top corner for gold
  99. Sleep(1500)
  100. Send("t")
  101. Sleep(8200)
  102. Send("{Escape}") ;menu
  103. MouseClick("left",Round(956 *$x_ratio),Round(579 * $y_ratio)) ;button to leave game
  104. Sleep(13000)
  105. MouseClick("left",Round(230 *$x_ratio),Round(416 * $y_ratio)) ;button to resume game from main menu
  106. Sleep(5000)
  107. Else
  108. MouseClick("left",Round(900 *$x_ratio),Round(900 * $y_ratio)) ;moves down screen away from cellar in
  109.  
  110. attempt for safety before teleporting back to town
  111. Sleep(1200)
  112. Send("t")
  113. Sleep(8200)
  114. Send("{ESCAPE}") ;menu
  115. MouseClick("left",Round(956 *$x_ratio),Round(579 * $y_ratio)) ;button to leave game
  116. Sleep(13000)
  117. MouseClick("left",Round(230 *$x_ratio),Round(416 * $y_ratio)) ;button to resume game from main menu
  118. Sleep(8000)
  119. EndIf
  120. EndIf
  121. EndIf
  122. WEnd
  123.  
  124. Func Pause()
  125. $Leave = False
  126. EndFunc
  127.  
  128. Func Stop() ;to allow the script to stop
  129. Exit
  130. EndFunc
  131.  
  132. Func Leave()
  133. $Leave = True
  134. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement