Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. if (runXarpus)
  2. {
  3.  
  4. for (GroundObject thing : Xarpus_Exhumeds.keySet()){
  5. greenThings.add(thing);
  6. exhumedCounter = greenThings.size();
  7. }
  8. for (Iterator<GroundObject> it = Xarpus_Exhumeds.keySet().iterator(); it.hasNext();)
  9. {
  10. GroundObject key = it.next();
  11. LocalPoint holder = LocalPoint.fromScene(key.getX(),key.getY());
  12. exhumeds.add(holder);
  13.  
  14. Xarpus_Exhumeds.replace(key, Xarpus_Exhumeds.get(key) - 1);
  15. if (Xarpus_Exhumeds.get(key) < 0)
  16. {
  17. it.remove();
  18. }
  19. }
  20. if (Xarpus_NPC.getOverheadText() != null && Xarpus_Stare == false)
  21. {
  22. Xarpus_TicksUntilShoot = 9;
  23. Xarpus_Stare = true;
  24. }
  25. if (Xarpus_Stare)
  26. {
  27. Xarpus_TicksUntilShoot--;
  28. }
  29. else if (Xarpus_NPC.getId() == NpcID.XARPUS_8340)
  30. {
  31. Xarpus_TicksUntilShoot--;
  32. if (Xarpus_NPC.getAnimation() == ANIMATION_ID_XARPUS && Xarpus_previousAnimation != ANIMATION_ID_XARPUS)
  33. {
  34. Xarpus_TicksUntilShoot = 3;
  35. }
  36. Xarpus_previousAnimation = Xarpus_NPC.getAnimation();
  37. }
  38.  
  39.  
  40.  
  41. }
  42.  
  43. if(exhumedCounter % 25 == 1){
  44.  
  45. List<Player> players = client.getPlayers();
  46.  
  47. int timer = 156;
  48.  
  49. if(Xarpus_Started == false){
  50.  
  51. if(players.size() == 5 )
  52. timer = 98;
  53. if(players.size() == 4 )
  54. timer = 98;
  55. if(players.size() == 3)
  56. timer = 156;
  57. if(players.size() == 2)
  58. timer = 156;
  59. if(players.size() == 1)
  60. timer = 215;
  61.  
  62. infoBoxManager.removeIf(t -> t.getImage() == itemManager.getImage(ItemID.CABBAGE_22519));
  63. Timer xarpusTimer = new Timer(timer, ChronoUnit.SECONDS, itemManager.getImage(ItemID.CABBAGE_22519),this);
  64. Xarpus_Started = true;
  65. infoBoxManager.addInfoBox(xarpusTimer);
  66. xarpusTimer.setTooltip("Estimated time until Xarpus is attackable");
  67. System.out.println((players.size()));
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement