Guest User

Untitled

a guest
Jul 28th, 2016
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. import java.awt.Graphics2D;
  2.  
  3. import org.osbot.rs07.api.model.NPC;
  4. import org.osbot.rs07.script.Script;
  5. import org.osbot.rs07.script.ScriptManifest;
  6.  
  7. @ScriptManifest(name = "Gearz Flesh Crawler Killer", author = "Gearfighter", version = 1.0, info = "", logo = "")
  8. public class GearzFleshCrawlerKiller extends Script {
  9.  
  10. @Override
  11. public void onStart() {
  12. log("Time to kill some Flesh Crawlers");
  13.  
  14. }
  15.  
  16. @Override
  17. public void onExit() {
  18.  
  19. }
  20.  
  21. @Override
  22. public int onLoop() throws InterruptedException {
  23. NPC FleshCrawler = npcs.closest("Flesh Crawler");
  24. if (FleshCrawler != null) {
  25. if (FleshCrawler.isVisible()) {
  26. if(((!myPlayer().isUnderAttack()&&!myPlayer().isAnimating())&&!getCombat().isFighting())&&!myPlayer().isMoving()){
  27. if (!FleshCrawler.isUnderAttack())
  28. FleshCrawler.interact("Attack");
  29.  
  30.  
  31.  
  32. }
  33.  
  34. }
  35.  
  36. sleep(random(300, 600));
  37. }
  38.  
  39. return (random(600, 900)); }
  40. // The amount of time in milliseconds before the loop starts over
  41.  
  42.  
  43. @Override
  44. public void onPaint(Graphics2D g) {
  45. // This is where you will put your code for paint(s)
  46.  
  47. }
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment