Advertisement
Guest User

[OSRS] Drop Fishing

a guest
Dec 14th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. topLeftInventoryX := 0
  2. topLeftInventoryY := 0
  3. fourthColumnX := 0
  4.  
  5. RandSleep() {
  6.     Random, rand, 100, 300
  7.     Sleep %rand%
  8. }
  9.  
  10. ColumnOneToThree() {
  11.  
  12.     global topLeftInventoryX
  13.     global topLeftInventoryY
  14.     global fourthColumnX   
  15.     Random, mouseX, topLeftInventoryX - 3, topLeftInventoryX + 3
  16.     Random, mouseY, topLeftInventoryY - 3, topLeftInventoryY + 3
  17.     mousePositionX := mouseX
  18.     mousePositionY := mouseY
  19.  
  20.     Sleep 500
  21.  
  22.     Loop, 3 {
  23.         Loop, 7 {
  24.  
  25.             MouseMove, mousePositionX, mousePositionY
  26.             RandSleep()
  27.             Click
  28.  
  29.             mousePositionY := (mousePositionY + 36)
  30.            
  31.             if GetKeyState("Q")
  32.             Pause
  33.         }
  34.         mousePositionY := mouseY
  35.         mousePositionX := (mousePositionX + 43)
  36.     }
  37.  
  38.     fourthColumnX := mousePositionX
  39. }
  40.  
  41. FourthColumn() {
  42.  
  43.     global topLeftInventoryX
  44.     global topLeftInventoryY
  45.     global fourthColumnX   
  46.     Random, mouseX, fourthColumnX - 3, fourthColumnX + 3
  47.     Random, mouseY, topLeftInventoryY - 3, topLeftInventoryY + 3
  48.     mousePositionX := mouseX
  49.     mousePositionY := mouseY
  50.  
  51.     Loop, 5 {
  52.  
  53.         MouseMove, mousePositionX, mousePositionY
  54.         RandSleep()
  55.         Click
  56.  
  57.         mousePositionY := (mousePositionY + 36)
  58.     }  
  59. }
  60.  
  61. Main() {
  62.  
  63.     SendEvent {LShift Down}
  64.     ColumnOneToThree()
  65.     FourthColumn()
  66.     SendEvent {LShift Up}
  67.  
  68. }
  69.  
  70. GetMouseCoordinates() {
  71.     positionX =
  72.     positionY =
  73.     MouseGetPos, positionX, positionY
  74.     MsgBox "X = " %positionX% ", Y = " %positionY%
  75. }
  76.  
  77. SetTopLeftInventoryLocation() {
  78.     global topLeftInventoryX
  79.     global topLeftInventoryY
  80.     MouseGetPos, topLeftInventoryX, topLeftInventoryY
  81. }
  82.  
  83. 1::Mousemove,0,65,0,R
  84.  
  85. 2::Click
  86.  
  87. 3::Main()
  88.  
  89. 5::SetTopLeftInventoryLocation()
  90.  
  91. 6::GetMouseCoordinates()
  92.  
  93. ESC::suspend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement