Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Map;
- import org.rsbot.accessors.RSObject;
- import org.rsbot.script.Script;
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.wrappers.RSTile;
- @ScriptManifest(authors = "SleepyStoner" , category = "Mining", name = "SleepyMiner", version = 1.0, description ="Mines And Banks")
- public class Miner extends Script {
- public boolean onStart(Map<String, String>args){
- log("This is My First Script Enjoy");
- return true;
- }
- public boolean WalkToMine(){
- RSTile[] Path={new RSTile (3182,3438), new RSTile (3172,3424),new RSTile (3172,3412),new RSTile (3173,3399),new RSTile (3170,3390), new RSTile (3180,3380), new RSTile (33182,3376)};
- if (walkPathMM(Path)) {
- walkToClosestTile(Path);
- }
- return true;
- }
- public boolean WalkToBank(){
- RSTile[] Path={new RSTile (3182,3438), new RSTile (3172,3424),new RSTile (3172,3412),new RSTile (3173,3399),new RSTile (3170,3390), new RSTile (3180,3380), new RSTile (33182,3376)};
- if (!walkPathMM(Path)) {
- walkToClosestTile(Path);
- }
- return true;
- }
- public boolean MineOre(){
- if(!isInventoryFull()){
- int[] rockID={11957, 11959};
- }
- return true;
- }
- public boolean BankOre(){
- if (isInventoryFull());
- return true;
- }
- public boolean InvoFull(){
- return true;
- }
- public boolean AtBank(){
- return true;
- }
- public boolean AtMine(){
- return true;
- }
- public boolean InvoEmpty(){
- return true;
- }
- public void onFinish(){
- log("Thanks For Using");
- }
- @Override
- public int loop(){
- if(InvoFull()){
- if(AtMine()){
- if(WalkToBank());
- else if(AtBank()){
- if(BankOre());
- }
- }
- else if (InvoEmpty()){
- if(AtBank()){
- if(WalkToMine());
- else if(AtMine()){
- if(MineOre()){
- }
- }
- }
- }
- }
- return 0;
- }
- }
Add Comment
Please, Sign In to add comment