Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Java by Buried Alive ( 16 years ago )
import com.sharpf.scripting.rs.RSScript;
import com.sharpf.scripting.model.Recognizable;
import com.sharpf.model.event.events.RecognizableFound;
import com.sharpf.scripting.rs.reflection.wrapper.ground.object.InteractiveObject;
import java.awt.Rectangle;
/**
* @author Buried Alive
*/
public class BuriedMiner extends RSScript implements RecognizableFound {
private Recognizable coal = new Recognizable("id=32426;32427;32428,radius=9", InteractiveObject.class);
private Recognizable bank = new Recognizable("id=25937,radius=8", InteractiveObject.class);
public enum recs {
MINING,BANK
}
@Override
public void onStart() {
defineRecognizable(recs.MINING);
defineRecognizable(recs.BANK);
}
@Override
public void onRecognition(Recognizable recognizable, Rectangle location) {
if (getReflection().getInventory().getCount() < 28); {
process(recs.MINING);
}else if (getReflection.getInventory().contains(453, 28)){
process(recs.BANK);
}
}
public void process(recs r) {
switch (r) {
case MINING:
if(getReflection().getLocalPlayer().getAnimation() == -1) {
getReflection().getWalker().walkTo(1063,4574);
((InteractiveObject) recognizable.getAttachment()).click("Mine");
}
break;
case BANK:
{getReflection().getWalker().walkTo(1045, 4574);
((InteractiveObject) recognizable.getAttachment()).click("Deposit");
getReflection().getBank().depositAll(453);
break;
}
}
}}
Revise this Paste