Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.rsbot.script.*;
- import org.rsbot.script.wrappers.*;
- @ScriptManifest(authors = {"h4344"}, keywords = {"mining"}, name = "h4copper", description = "Basic copper miner.", version = 1)
- public class h4copper extends Script{
- int [] copperRockID = {11960, 11961, 11962};
- int [] pickaxe = {1265, 1267, 1269, 1271, 1273, 1275, 14099, 14107, 15259};
- @Override
- public boolean onStart() {
- return true;
- }
- public int loop() {
- if (!inventory.isFull()) {
- if (players.getMyPlayer().getAnimation() == -1) {
- RSObject rock = objects.getNearest(copperRockID);
- if (rock != null) {
- rock.doAction("Mine");
- }
- }
- }
- if (inventory.isFull()){
- inventory.dropAllExcept(pickaxe);
- }
- return random(500, 1500);
- }
- @Override
- public void onFinish() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment