Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.rsbot.script.Script;
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.wrappers.RSObject;
- @ScriptManifest(authors = "Bl1zz4rD", description = "My first script!", keywords = "Test", name = "My First Script!", version = 1.00)
- public class Test extends Script {
- private int Schwarm = 2759;
- public boolean onStart() {
- log("Welcome");
- return true;
- }
- public void onFinish() {
- log("Thanks for using my script");
- }
- public int loop() {
- if(inventory.isFull()) {
- } else {
- chop();
- }
- return 100;
- }
- private void chop() {
- RSObject pool = objects.getNearest(Schwarm);
- if(pool != null) {
- if(getMyPlayer().getAnimation() == -1) {
- if(pool.isOnScreen()) {
- pool.interact("Fishing Spot");
- sleep(2000);
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment