Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onGameTick(GameTick event)
- {
- if (sotetActive)
- {playerX = client.getLocalPlayer().getLocalLocation().getX();
- playerY = client.getLocalPlayer().getLocalLocation().getY();
- int id = 0;
- for(NPC npc : client.getNpcs()){
- id = npc.getId();
- }
- if(id == TheatreConstant.SOTETSEG_NORMAL && !p1Timer){
- if(!hackyShitFlag){
- this.startTime = System.currentTimeMillis();
- p1Timer = true;
- hackyShitFlag = true;
- }
- } else if (p1Timer && !p2Timer && !p3Timer){
- for(Player p : client.getPlayers()){
- if(p.getAnimation() == 1816){
- animationCheck = true;
- }
- }
- if(animationCheck){
- long elapsedTime = System.currentTimeMillis() - this.startTime;
- long seconds = elapsedTime / 1000L;
- long minutes = seconds / 60L;
- seconds = seconds % 60;
- this.client.addChatMessage(ChatMessageType.GAMEMESSAGE, "", "Wave 'Phase 1' completed! Duration: <col=ff0000>" + minutes + ":" + twoDigitString(seconds), null);
- delay = elapsedTime;
- p2Timer = true;
- }
- } else if(p1Timer && p2Timer && !p3Timer){
- for(Player p : client.getPlayers()){
- if(p.getAnimation() == 1816){
- animationCheck = true;
- }
- }
- if(animationCheck){
- long elapsedTime = System.currentTimeMillis() - this.startTime;
- long seconds = elapsedTime / 1000L;
- long minutes = seconds / 60L;
- seconds = seconds % 60;
- if(elapsedTime - delay > 2500){
- this.client.addChatMessage(ChatMessageType.GAMEMESSAGE, "", "Wave 'Phase 2' completed! Duration: <col=ff0000>" + minutes + ":" + twoDigitString(seconds), null);
- p3Timer = true;
- }
- }
- }
- animationCheck = false;
- if (sotetsegNPC != null && sotetsegNPC.getId() == NpcID.SOTETSEG_8388)
- {
- if (!redTiles.isEmpty())
- {
- redTiles.clear();
- }
- if (isInOverWorld())
- {
- wasInUnderWorld = false;
- overWorldRegionID = client.getLocalPlayer().getWorldLocation().getRegionID();
- mazeTrigger = true;
- }
- }
- if (!redTiles.isEmpty() && wasInUnderWorld && config.sotetsegMazeDiscord())
- {
- for (Point p : redTiles)
- {
- WorldPoint wp = worldPointFromMazePoint(p);
- TilePing tilePing = new TilePing(wp);
- if (party != null && party.getLocalMember() != null)
- {
- tilePing.setMemberId(party.getLocalMember().getMemberId());
- wsClient.send(tilePing);
- }
- }
- }
- }
- //Remove projectiles that are about to die
- if (!soteyProjectiles.isEmpty()) {
- for (Iterator<Projectile> it = soteyProjectiles.keySet().iterator(); it.hasNext(); ) {
- Projectile projectile = it.next();
- if (projectile.getRemainingCycles() < 1) {
- it.remove();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement