Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. if (plugin.isRunXarpus())
  2. {
  3. NPC boss = plugin.getXarpus_NPC();
  4.  
  5. if (boss.getId() == NpcID.XARPUS_8340 /*&& !plugin.isXarpus_Stare()*/ && config.XarpusTick())
  6. {
  7. //int xarpusHp = boss.getHealthRatio();
  8.  
  9. int tick = plugin.getXarpus_TicksUntilShoot();
  10. if (tick < 1)
  11. {
  12. if(boss.getOverheadText() != null)
  13. System.out.println(boss.getOverheadText());
  14.  
  15. if(plugin.isXarpus_Stare()){
  16. tick = tick % 8 + 8;
  17. // xarpusStared = true;
  18. }else tick = tick % 4+ 4;
  19. }
  20. final String ticksLeftStr = String.valueOf(tick);
  21. Point canvasPoint = boss.getCanvasTextLocation(graphics, ticksLeftStr, 130);
  22. if (tick == 2)
  23. color = Color.red;
  24. else color = Color.white;
  25. renderTextLocation(graphics, ticksLeftStr, 14, Font.BOLD, color, canvasPoint);
  26.  
  27. }
  28. if (boss.getId() == NpcID.XARPUS_8339 && config.XarpusExhumed())
  29. {
  30.  
  31. for (GroundObject o : plugin.getXarpus_Exhumeds().keySet())
  32. {
  33. Polygon poly = o.getCanvasTilePoly();
  34. if (poly != null)
  35. {
  36. graphics.setColor(safeColor);
  37. graphics.setStroke(new BasicStroke(2));
  38. graphics.draw(poly);
  39. }
  40. Point textLocation = o.getCanvasTextLocation(graphics, String.valueOf(TheatrePlugin.exhumedCounter), 0);
  41. if (textLocation != null)
  42. {
  43. OverlayUtil.renderTextLocation(graphics, textLocation, String.valueOf(TheatrePlugin.exhumedCounter), Color.YELLOW);
  44. }
  45.  
  46. }
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement