Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.osbot.rs07.api.model.Entity;
- import org.osbot.rs07.api.model.Player;
- import org.osbot.rs07.script.Script;
- import org.osbot.rs07.script.ScriptManifest;
- import java.awt.*;
- @ScriptManifest(author = "Flewis", info = "Collects feathers", name = "Feather Collector", version = 0.1, logo = "")
- public class main extends Script {
- @Override
- public void onStart() {
- log("Feather Collector By Flewis");
- }
- @Override
- public int onLoop() throws InterruptedException {
- Entity feather = getGroundItems().closest("Feather");
- Player player = myPlayer();
- if (!player.isAnimating()) {
- if (feather != null) {
- feather.interact("Take");
- sleep(random(600, 1000));
- } else {
- log("There are no feathers to be collected in this area at this time!");
- }
- }
- return random(400, 1000);
- }
- @Override
- public void onExit() {
- log("Thank you for running Feather Collector <3");
- }
- @Override
- public void onPaint(Graphics2D g) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment