Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Graphics2D;
- import org.osbot.rs07.api.model.NPC;
- import org.osbot.rs07.script.Script;
- import org.osbot.rs07.script.ScriptManifest;
- @ScriptManifest(name = "Gearz Flesh Crawler Killer", author = "Gearfighter", version = 1.0, info = "", logo = "")
- public class GearzFleshCrawlerKiller extends Script {
- @Override
- public void onStart() {
- log("Time to kill some Flesh Crawlers");
- }
- @Override
- public void onExit() {
- }
- @Override
- public int onLoop() throws InterruptedException {
- NPC FleshCrawler = npcs.closest("Flesh Crawler");
- if (FleshCrawler != null) {
- if (FleshCrawler.isVisible()) {
- if(((!myPlayer().isUnderAttack()&&!myPlayer().isAnimating())&&!getCombat().isFighting())&&!myPlayer().isMoving()){
- if (!FleshCrawler.isUnderAttack())
- FleshCrawler.interact("Attack");
- }
- }
- sleep(random(300, 600));
- }
- return (random(600, 900)); }
- // The amount of time in milliseconds before the loop starts over
- @Override
- public void onPaint(Graphics2D g) {
- // This is where you will put your code for paint(s)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment