August 12, 201510 yr Current state of the script can be used at the WWF area to powermine "Pile of Rock" or it can be changed into a regular miner. /** * Created by Sinatra_PC on 8/11/2015. */ import java.awt.Color; import java.awt.Graphics2D; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; @ScriptManifest(author="Sinatra", info="Mines in the WWF area", name="SMiner", version=9000.0, logo="") public class WWFMINER extends Script { String lastLoggedStatus = " "; String Status = " "; private long startTime = System.currentTimeMillis(); private long startExperience; private int experienceHour; private int totalMined; private int minedHour; private long millis; private long hours; private long minutes; private long seconds; private long experienceGained; private int currentLevel; private int beginningLevel; private int levelsGained; private final Area areaMine = new Area( new Position(3484,4959,0), new Position(3492,4954,0)); //area where you mine public void onStart() { log("Welcome To " + getAuthor() + "'s WWF MINER!"); startExperience = skills.getExperience(Skill.MINING); beginningLevel = skills.getStatic(Skill.MINING); } private enum State { DROP, PICK, SLEEP } State getState() { if (areaMine.contains(myPlayer()) && (!inventory.isFull())) return State.PICK; if (inventory.isFull()) { return State.DROP; }else{ return State.SLEEP; } } private void mining() throws InterruptedException { Entity STALL = objects.closest("Pile of Rock"); //either add "rockname" or simply (id) if ((STALL != null) && STALL.isVisible() && (!myPlayer().isAnimating())) { Status = "Interacting: Mining Pile of Rock"; STALL.interact("Mine"); new ConditionalSleep(2000) { //Until condition() is met OR 2000 ms passes @Override public boolean condition() { return myPlayer().isAnimating(); } }.sleep(); sleep(random(2500)); } } private void drop() throws InterruptedException { Status = "Dropping: Rock"; if(getInventory().contains("Stone")) { //picks inventory.dropAllExcept(1265, 1267, 1269, 1271, 1273, 1275, 15259); sleep(random(1000)); } } public int onLoop() throws InterruptedException { printStatus(); switch (getState()) { case PICK: Status = "STATE: PICK"; mining(); break; case DROP: Status = "STATE: DROP"; drop(); break; case SLEEP: Status = "STATE: SLEEPING"; sleep(random(1000)); break; } return random(1000); } private void printStatus() { if (lastLoggedStatus != Status) { log("Current Status: " + Status); lastLoggedStatus = Status; } } public void onExit() { log("Thanks for using " + getAuthor() + "'s WWF Miner!"); } public void onPaint(Graphics2D g2d) { super.onPaint(g2d); millis = (System.currentTimeMillis() - startTime); hours = (millis / 3600000L); millis -= hours * 3600000L; minutes = (millis / 60000L); millis -= minutes * 60000L; seconds = (millis / 1000L); experienceGained = (skills.getExperience(Skill.MINING) - startExperience); experienceHour = ((int)(experienceGained * 3600000.0 / (System.currentTimeMillis() - startTime))); minedHour = ((int)(totalMined * 3600000.0 / (System.currentTimeMillis() - startTime))); currentLevel = skills.getStatic(Skill.MINING); levelsGained = currentLevel - beginningLevel; g2d.setColor(Color.PINK); g2d.drawString("|Sinatra's WWF Miner|", 20,30); g2d.drawString("Status | " + Status, 20,45); g2d.drawString("Time | " + hours + " : " + minutes + " : " + seconds, 20,60); g2d.drawString("Experience Gained & Per Hour | " + experienceGained + " (" + experienceHour + ")", 20,75); g2d.drawString("Level: " + currentLevel + "(" + levelsGained + ")", 20,90); } }
August 12, 201510 yr Author What is the WWF area? http://www.godisageek.com/2015/07/runescape-joins-with-wwf/ You can access the area by going to the ge and talking to the WWF npc Edited August 12, 201510 yr by Sinatra
August 12, 201510 yr hmm okay, and why did you make a mining script for the area? For a chance to unlock one of the cats companions?
August 12, 201510 yr Author hmm okay, and why did you make a mining script for the area? For a chance to unlock one of the cats companions? for the good mining exp ! starting from level 10
August 12, 201510 yr hmm okay, and why did you make a mining script for the area? For a chance to unlock one of the cats companions? Well, since it's a powerminer, I'd assume it doesn't take to the bridge to add the stones. :p OT: Why is the rock variable named STALL? :P Looks nice though!
August 12, 201510 yr Well, since it's a powerminer, I'd assume it doesn't take to the bridge to add the stones. OT: Why is the rock variable named STALL? Looks nice though! Off topic: In my quests everyone is called ROMEO ot: Nice ^_^ this area would be pretty popular now?
August 12, 201510 yr Off topic: In my quests everyone is called ROMEO ot: Nice this area would be pretty popular now? i assume it will be popular now since deceiver put his on sdn
August 12, 201510 yr Well, since it's a powerminer, I'd assume it doesn't take to the bridge to add the stones. OT: Why is the rock variable named STALL? Looks nice though! OT but you have a ton of forum ranks now
August 12, 201510 yr Author Well, since it's a powerminer, I'd assume it doesn't take to the bridge to add the stones. OT: Why is the rock variable named STALL? Looks nice though! i just took the structure from my tea thiever and just changed things Well, since it's a powerminer, I'd assume it doesn't take to the bridge to add the stones. OT: Why is the rock variable named STALL? Looks nice though! What is the purpose of adding the stones?
August 12, 201510 yr Author I am 77 mining. Will it still be good xp /hr im sure with your stats you can get up to 30k exp per hour or more. im only level 31 :p
August 12, 201510 yr i just took the structure from my tea thiever and just changed things What is the purpose of adding the stones? http://2007.runescape.wikia.com/wiki/Humroc There's not much info, but I believe you hand the stones to the lady by the portal (to leave) and you need 75 stones to get the toy cat/horsey.
August 12, 201510 yr Author http://2007.runescape.wikia.com/wiki/Humroc There's not much info, but I believe you hand the stones to the lady by the portal (to leave) and you need 75 stones to get the toy cat/horsey. ahh okay