Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Map;
- import org.rsbot.script.Script;
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.wrappers.RSObject;
- @ScriptManifest(authors = "Test", name = "test", version = 1.0, description = "Test")
- public class Test extends Script {
- int[] ironRockID = { 11956, 9718 };
- public boolean onStart() {
- log("Welcome to Test.");
- return true;
- }
- private void mineOre() {
- RSObject iron = objects.getNearest(ironRockID);
- iron.doAction("Mine");
- }
- public void onFinish() {
- log("Goodbye.");
- }
- @Override
- public int loop() {
- mineOre();
- return 1000;
- }
- }
Add Comment
Please, Sign In to add comment