1package com.osroyale.content.activity.impl;
3import com.osroyale.content.ActivityLog;
4import com.osroyale.content.achievement.AchievementHandler;
5import com.osroyale.content.achievement.AchievementKey;
6import com.osroyale.content.activity.Activity;
7import com.osroyale.content.activity.ActivityDeathType;
8import com.osroyale.content.activity.ActivityType;
9import com.osroyale.content.event.impl.NpcInteractionEvent;
10import com.osroyale.game.world.World;
11import com.osroyale.game.world.entity.mob.Mob;
12import com.osroyale.game.world.entity.mob.npc.Npc;
13import com.osroyale.game.world.entity.mob.npc.NpcDeath;
14import com.osroyale.game.world.entity.mob.player.Player;
15import com.osroyale.game.world.position.Area;
16import com.osroyale.game.world.position.Position;
17import com.osroyale.util.Utility;
63 private final Player player;
69 private boolean summoned;
72 private VorkathActivity(
Player player,
int instance) {
79 VorkathActivity activity =
new VorkathActivity(player, player.playerAssistant.instance());
82 activity.add(activity.vorkath);
83 activity.vorkath.blockInteract =
true;
84 activity.vorkath.blockFace =
true;
85 activity.vorkath.locking.lock();
95 boolean successfull = vorkath.isDead();
103 player.message(
"Congratulations, you have killed the Vorkath. Fight duration: @red@" +
Utility.
getTime(player.gameRecord.end(
ActivityType.VORKATH)) +
"</col>.");
107 if (
Area.inVorkath(player)) {
123 if (event.getOpcode() == 0 && event.getNpc().id == 8059 && !summoned) {
126 vorkath.animate(7950);
129 vorkath.transform(8060,
true);
131 vorkath.
face(player);
132 vorkath.blockInteract =
false;
133 vorkath.blockFace =
false;
135 player.gameRecord.start();
152 if (mob.
isNpc() && mob.getNpc().equals(vorkath)) {
162 if (!
Area.inVorkath(player)) {
static void activate(Player player, AchievementKey achievement)
Activity(int cooldown, int instance)
void onLogout(Player player)
boolean canTeleport(Player player)
void onRegionChange(Player player)
static VorkathActivity create(Player player)
static void schedule(Task task)
void face(GameObject object)