Guest User

Untitled

a guest
Jul 29th, 2016
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 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 (!FleshCrawler.isUnderAttack()&&!getCombat().isFighting())
  27. if(((!myPlayer().isUnderAttack()&&!myPlayer().isAnimating())&&!getCombat().isFighting())&&!myPlayer().isMoving()){
  28. FleshCrawler.interact("Attack"); }
  29.  
  30. }else{
  31. camera.toEntity(FleshCrawler);
  32. }
  33. }
  34. }
  35. public boolean hover() {
  36.  
  37.  
  38.  
  39. }
  40.  
  41.  
  42. return
  43. (random(600,900));
  44. // The amount of time in milliseconds before the loop starts over
  45.  
  46. @Override
  47. public void onPaint(Graphics2D g) {
  48. // This is where you will put your code for paint(s)
  49.  
  50. }
  51.  
  52. }
Advertisement
Add Comment
Please, Sign In to add comment