Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.avt.color;
- import org.rsbot.script.Script;
- import org.rsbot.script.wrappers.*;
- import org.rsbot.script.wrappers.rsobject;
- @scriptmanifest(authors = {"sante60"}, keywords = {"mining, coal, argounge, 99"}, name = "imine", description = "mines some ores", version = 1.0))
- public class imine extends Script {
- int[] coalrockID = (2096, 2097);
- int[] pickaxeID = (1265, 1267, 1269, 1271, 1273, 1275, 14099, 14107, 15259);
- @override
- public boolean onStart() {
- log(color.GREEN, "welcome to imine.");
- log(color.CYAN, "visit my thread for more updates");
- return true;
- }
- @override
- public int loop() {
- if (!inventory.isfull()) {
- if (players.getmyplayer().getanimation() == -1) }
- RSobject rock = objects.getnearest(coalrockID);
- if (rock != null) {
- rock.doaction("mine");
- }
- return random(500, 1500);
- }
- @override
- public void onfinish() {
- log(color.PINK, "thanks for using me!");
- }
- }
Add Comment
Please, Sign In to add comment