Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- import org.rsbot.script.*;
- import org.rsbot.script.wrappers.*;
- @ScriptManifest(authors = {"Casand"}, keywords = {""}, name = "CasandsSheepShearer", description = "A script to shear sheep and spin/bank wool", version = 1)
- public class CasandsSheepShearer extends Script {
- int[] SheepID = {3310, 3311};
- int[] ChiselID = {1755, 1756};
- @Override
- public boolean onStart() {
- return true;
- }
- public int loop() {
- if (players.getMyPlayer().getAnimation() == -1) {
- RSObject sheep = objects.getNearest(SheepID);
- if (sheep != null) {
- sheep.interact("Shear");
- return random(500, 1500);
- }
- }
- return random(5,150);
- }
- @Override
- public void onFinish() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement