Advertisement
darkjoy

Teleport / Click Cellar / Kill Sar

Jun 9th, 2012
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. While $go
  2. if($Leave) Then
  3.  
  4. MouseClick("left", Round(587 * $x_ratio),Round(333 * $y_ratio)) ;starts the main run
  5. Sleep(1800)
  6. MouseClick("left", Round(96 * $x_ratio),Round(383 * $y_ratio)) ;starts the main run
  7. Send("3")
  8. Sleep(140)
  9. Send("3")
  10. Sleep(140)
  11. Send("3")
  12. Sleep(140)
  13. Send("3")
  14. Sleep(80)
  15. Send("3")
  16. Sleep(80)
  17. Send("3")
  18. Sleep(80)
  19. MouseClick("left", Round(96 * $x_ratio),Round(383 * $y_ratio))
  20. Sleep(800)
  21. ; Send("2")
  22. ; Sleep(1500)
  23. MouseMove(630,279,1) ;moves cursor over to the cellar so the proper blue pixel becomes highlighted
  24. Sleep(1000)
  25. $Pixel2 = PixelSearch(0,0,(619),(313),0x354D91,3) ;searches for the specific blue pixel that only occurs when mouse hovers over open cellar
  26. If Not @error Then
  27. MouseClick("left",630,279) ;Entrance to cellar
  28. Sleep(150)
  29. Send(2)
  30. Sleep(500)
  31. Send(1)
  32. Sleep(2500)
  33. MouseClick("left",Round(531 *$x_ratio),Round(769 * $y_ratio))
  34. Sleep(1400)
  35. MouseClick("left",Round(547 *$x_ratio),Round(490 * $y_ratio)) ;moves to doorway leading to rare inside cellar
  36. Sleep(1500)
  37. MouseMove(Round(579 * $x_ratio),Round(209 * $y_ratio),1) ;hovers over the rare Sarkoth
  38. Send(4)
  39. Sleep(500)
  40. Send("{SHIFTDOWN}")
  41. ; Sleep(500)
  42. ; MouseClick("left",Round(600 * $x_ratio),Round(239 * $y_ratio),1)
  43. ; sleep(500)
  44. MouseDown("right") ;attack middle
  45. Sleep(3800)
  46. MouseMove(Round(467 * $x_ratio),Round(269 * $y_ratio),1) ;attack left, add more sleep time if you can't kill minion on left
  47. Sleep(1000)
  48. MouseMove(Round(682 * $x_ratio),Round(147 * $y_ratio),1) ;attack right
  49. Sleep(2000)
  50. MouseUP("right")
  51. Sleep(300)
  52. Send("{SHIFTUP}")
  53. Sleep(500)
  54. MouseClick("left",Round(579 *$x_ratio),Round(209 * $y_ratio)) ;location of sarkoth after death
  55. Sleep(2000)
  56. call("FindItem")
  57. sleep(100)
  58. call("FindItem")
  59. sleep(100)
  60. call("FindItem")
  61. sleep(100)
  62. call("FindItem")
  63. sleep(100)
  64. call("FindItem")
  65. sleep(100)
  66. call("FindItem")
  67. sleep(100)
  68. MouseClick("left",Round(912*$x_ratio),Round(300 * $y_ratio)) ;moves to right top corner for gold
  69. Sleep(1000)
  70. MouseClick("left", Round(600* $x_ratio), Round(750 * $y_ratio))
  71. Sleep(1300)
  72. MouseClick("right",694,929) ;cancel Archon
  73. Sleep(500)
  74. Send("t")
  75. Sleep(8000)
  76. Call("CheckRepair")
  77.  
  78. Else
  79. ; Send("2")
  80. ; MouseClick("left",Round(900 *$x_ratio),Round(900 * $y_ratio)) ;moves down screen away from cellar in attempt for safety before teleporting back to town
  81. ; Sleep(1100)
  82. ; Send("1")
  83. ; Sleep(100)
  84. Send("t")
  85. Sleep(8000)
  86. Call("CheckRepair")
  87.  
  88. EndIf
  89. EndIf
  90. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement