Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (runXarpus)
- {
- for (GroundObject thing : Xarpus_Exhumeds.keySet()){
- greenThings.add(thing);
- exhumedCounter = greenThings.size();
- }
- for (Iterator<GroundObject> it = Xarpus_Exhumeds.keySet().iterator(); it.hasNext();)
- {
- GroundObject key = it.next();
- LocalPoint holder = LocalPoint.fromScene(key.getX(),key.getY());
- exhumeds.add(holder);
- Xarpus_Exhumeds.replace(key, Xarpus_Exhumeds.get(key) - 1);
- if (Xarpus_Exhumeds.get(key) < 0)
- {
- it.remove();
- }
- }
- if (Xarpus_NPC.getOverheadText() != null && Xarpus_Stare == false)
- {
- Xarpus_TicksUntilShoot = 9;
- Xarpus_Stare = true;
- }
- if (Xarpus_Stare)
- {
- Xarpus_TicksUntilShoot--;
- }
- else if (Xarpus_NPC.getId() == NpcID.XARPUS_8340)
- {
- Xarpus_TicksUntilShoot--;
- if (Xarpus_NPC.getAnimation() == ANIMATION_ID_XARPUS && Xarpus_previousAnimation != ANIMATION_ID_XARPUS)
- {
- Xarpus_TicksUntilShoot = 3;
- }
- Xarpus_previousAnimation = Xarpus_NPC.getAnimation();
- }
- }
- if(exhumedCounter % 25 == 1){
- List<Player> players = client.getPlayers();
- int timer = 156;
- if(Xarpus_Started == false){
- if(players.size() == 5 )
- timer = 98;
- if(players.size() == 4 )
- timer = 98;
- if(players.size() == 3)
- timer = 156;
- if(players.size() == 2)
- timer = 156;
- if(players.size() == 1)
- timer = 215;
- infoBoxManager.removeIf(t -> t.getImage() == itemManager.getImage(ItemID.CABBAGE_22519));
- Timer xarpusTimer = new Timer(timer, ChronoUnit.SECONDS, itemManager.getImage(ItemID.CABBAGE_22519),this);
- Xarpus_Started = true;
- infoBoxManager.addInfoBox(xarpusTimer);
- xarpusTimer.setTooltip("Estimated time until Xarpus is attackable");
- System.out.println((players.size()));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement