Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. if (plugin.isRunBloat() && config.BloatIndicator())
  2. {
  3. NPC bloat = plugin.getBloat_NPC();
  4. int state = plugin.getBloat_State();
  5. List<GraphicsObject> graphicsObjects = client.getGraphicsObjects();
  6.  
  7. for (GraphicsObject graphicsObject : graphicsObjects) {
  8. LocalPoint lp = graphicsObject.getLocation();
  9. Polygon poly = Perspective.getCanvasTilePoly(client, lp);
  10. WorldPoint lp2 = WorldPoint.fromLocal(client, lp);
  11.  
  12. if (poly != null) {
  13. if (graphicsObject.getId() == 1570 || graphicsObject.getId() == 1571
  14. ||graphicsObject.getId() == 1572 || graphicsObject.getId() == 1573)
  15. drawTile(graphics, lp2, Color.YELLOW, 2, 120, 0);
  16. }
  17. }
  18. if (bloat == null)
  19. {
  20. return null;
  21. }
  22. switch (state)
  23. {
  24. case 2:
  25. renderNpcOverlay(graphics, bloat, Color.GREEN, 3, 150, 0);
  26. break;
  27. case 3:
  28. renderNpcOverlay(graphics, bloat, Color.YELLOW, 3, 150, 0);
  29. break;
  30. default:
  31. renderNpcOverlay(graphics, bloat, new Color(223, 109, 255), 3, 150, 0);
  32. break;
  33. }
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement