Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. // Shear All Sheep v1.1
  2. removetimer 'Scanning Timer'
  3. createtimer 'Scanning Timer'
  4. settimer 'Scanning Timer' 3000
  5. clearignorelist
  6. while diffweight > 10
  7. if @findtype 0xcf 0 [source] [amount] 1
  8. elseif @findtype 0xcf 0 [source] [amount] 2
  9. elseif @findtype 0xcf 0 [source] [amount] 3
  10. elseif @findtype 0xcf 0 [source] [amount] 4
  11. elseif @findtype 0xcf 0 [source] [amount] 6
  12. elseif @findtype 0xcf 0 [source] [amount] 8
  13. elseif @findtype 0xcf 0 [source] [amount] 12
  14. else
  15. if timer 'Scanning Timer' > 5000
  16. headmsg 'Scanning ...' 666
  17. settimer 'Scanning Timer' 0
  18. endif
  19. pause 1000
  20. continue
  21. endif
  22. headmsg 'Found'111
  23. setalias 'ShearingTarget' 'found'
  24. while not @inrange 'ShearingTarget' 1
  25. if @x 'ShearingTarget' > x 'self' and @y 'ShearingTarget' > y 'self'
  26. run 'Southeast'
  27. elseif @x 'ShearingTarget' < x 'self' and @y 'ShearingTarget' > y 'self'
  28. run 'Southwest'
  29. elseif @x 'ShearingTarget' > x 'self' and @y 'ShearingTarget' < y 'self'
  30. run 'Northeast'
  31. elseif @x 'ShearingTarget' < x 'self' and @y 'ShearingTarget' < y 'self'
  32. run 'Northwest'
  33. elseif @x 'ShearingTarget' > x 'self' and @y 'ShearingTarget' == y 'self'
  34. run 'East'
  35. elseif @x 'ShearingTarget' < x 'self' and @y 'ShearingTarget' == y 'self'
  36. run 'West'
  37. elseif @x 'ShearingTarget' == x 'self' and @y 'ShearingTarget' > y 'self'
  38. run 'South'
  39. elseif @x 'ShearingTarget' == x 'self' and @y 'ShearingTarget' < y 'self'
  40. run 'North'
  41. endif
  42. pause 100
  43. endwhile
  44. usetype 0xf52
  45. waitfortarget 15000
  46. target! 'ShearingTarget'
  47. ignoreobject 'ShearingTarget'
  48. settimer 'Scanning Timer' 3000
  49. endwhile
  50. headmsg 'FULL'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement