Reverted latest Fafurion changes.
This commit is contained in:
@@ -19,50 +19,32 @@ package ai.bosses.Fafurion;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.l2jmobius.Config;
|
import org.l2jmobius.Config;
|
||||||
import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager;
|
|
||||||
import org.l2jmobius.gameserver.instancemanager.GrandBossManager;
|
import org.l2jmobius.gameserver.instancemanager.GrandBossManager;
|
||||||
import org.l2jmobius.gameserver.instancemanager.ZoneManager;
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
import org.l2jmobius.gameserver.model.Location;
|
||||||
import org.l2jmobius.gameserver.model.Party;
|
import org.l2jmobius.gameserver.model.Party;
|
||||||
import org.l2jmobius.gameserver.model.StatsSet;
|
import org.l2jmobius.gameserver.model.StatsSet;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.GrandBossInstance;
|
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.zone.type.NoSummonFriendZone;
|
|
||||||
import org.l2jmobius.gameserver.network.NpcStringId;
|
import org.l2jmobius.gameserver.network.NpcStringId;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
|
import org.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
|
||||||
|
|
||||||
import ai.AbstractNpcAI;
|
import ai.AbstractNpcAI;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Mobius, NviX
|
* @author Mobius
|
||||||
*/
|
*/
|
||||||
public class Fafurion extends AbstractNpcAI
|
public class Fafurion extends AbstractNpcAI
|
||||||
{
|
{
|
||||||
// NPCs
|
// NPCs
|
||||||
private static final int HEART_OF_TSUNAMI = 34488;
|
private static final int HEART_OF_TSUNAMI = 34488;
|
||||||
private static final int FAFURION_GRANDBOSS_ID = 19740;
|
private static final int FAFURION_GRANDBOSS_ID = 19740;
|
||||||
private static final int FAFURION_STAGE_1 = 29361;
|
private static final int FAFURION_FINAL_FORM = 29367;
|
||||||
private static final int FAFURION_STAGE_2 = 29362;
|
|
||||||
private static final int FAFURION_STAGE_3 = 29363;
|
|
||||||
private static final int FAFURION_STAGE_4 = 29364;
|
|
||||||
private static final int FAFURION_STAGE_5 = 29365;
|
|
||||||
private static final int FAFURION_STAGE_6 = 29366;
|
|
||||||
private static final int FAFURION_STAGE_7 = 29367;
|
|
||||||
private static final int EMERALD_DRAGON = 29368;
|
|
||||||
private static final int BLUE_WATER_DRAGON = 29369;
|
|
||||||
private static final int FAFURION_DEFENDER = 29370;
|
|
||||||
private static final int ELITE_LEGIONARY = 29371;
|
|
||||||
private static final int ELITE_GLADIATOR = 29372;
|
|
||||||
private static final int ELITE_WIZARD = 29373;
|
|
||||||
// Item
|
// Item
|
||||||
private static final int FONDUS_STONE = 80322;
|
private static final int FONDUS_STONE = 80322;
|
||||||
// Locations
|
// Locations
|
||||||
private static final Location RAID_ENTER_LOC = new Location(180059, 212896, -14727);
|
private static final Location RAID_ENTER_LOC = new Location(180059, 212896, -14727);
|
||||||
private static final Location FAFURION_SPAWN_LOC = new Location(180712, 210664, -14823, 22146);
|
private static final Location FAFURION_SPAWN_LOC = new Location(180712, 210664, -14823, 22146);
|
||||||
// Zone
|
|
||||||
private static final NoSummonFriendZone FAFURION_ZONE = ZoneManager.getInstance().getZoneById(210110, NoSummonFriendZone.class); // Fafurion Nest zone
|
|
||||||
// Status
|
// Status
|
||||||
private static final int ALIVE = 0;
|
private static final int ALIVE = 0;
|
||||||
private static final int WAITING = 1;
|
private static final int WAITING = 1;
|
||||||
@@ -70,18 +52,14 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
private static final int DEAD = 3;
|
private static final int DEAD = 3;
|
||||||
// Misc
|
// Misc
|
||||||
private static final int RAID_DURATION = 5; // hours
|
private static final int RAID_DURATION = 5; // hours
|
||||||
private static final int MAX_PEOPLE = 200;
|
private static Npc bossInstance;
|
||||||
private static boolean _hp60 = false;
|
|
||||||
private static boolean _hp30 = false;
|
|
||||||
private static int _stage = 0;
|
|
||||||
private static Npc _fafurion;
|
|
||||||
|
|
||||||
private Fafurion()
|
private Fafurion()
|
||||||
{
|
{
|
||||||
addStartNpc(HEART_OF_TSUNAMI);
|
addStartNpc(HEART_OF_TSUNAMI);
|
||||||
addTalkId(HEART_OF_TSUNAMI);
|
addTalkId(HEART_OF_TSUNAMI);
|
||||||
addFirstTalkId(HEART_OF_TSUNAMI);
|
addFirstTalkId(HEART_OF_TSUNAMI);
|
||||||
addKillId(FAFURION_STAGE_1, FAFURION_STAGE_2, FAFURION_STAGE_3, FAFURION_STAGE_4, FAFURION_STAGE_5, FAFURION_STAGE_6, FAFURION_STAGE_7);
|
addKillId(FAFURION_FINAL_FORM);
|
||||||
// Unlock
|
// Unlock
|
||||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(FAFURION_GRANDBOSS_ID);
|
final StatsSet info = GrandBossManager.getInstance().getStatsSet(FAFURION_GRANDBOSS_ID);
|
||||||
final int status = GrandBossManager.getInstance().getBossStatus(FAFURION_GRANDBOSS_ID);
|
final int status = GrandBossManager.getInstance().getBossStatus(FAFURION_GRANDBOSS_ID);
|
||||||
@@ -94,13 +72,11 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GrandBossManager.getInstance().addBoss((GrandBossInstance) addSpawn(FAFURION_GRANDBOSS_ID, -113360, -244676, -15536, 0, false, 0));
|
|
||||||
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (status != ALIVE)
|
||||||
{
|
{
|
||||||
GrandBossManager.getInstance().addBoss((GrandBossInstance) addSpawn(FAFURION_GRANDBOSS_ID, -113360, -244676, -15536, 0, false, 0));
|
|
||||||
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -113,7 +89,6 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
{
|
{
|
||||||
case "unlock_fafurion":
|
case "unlock_fafurion":
|
||||||
{
|
{
|
||||||
GrandBossManager.getInstance().addBoss((GrandBossInstance) addSpawn(FAFURION_GRANDBOSS_ID, -113360, -244676, -15536, 0, false, 0));
|
|
||||||
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -131,53 +106,11 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "beginning":
|
case "beginning":
|
||||||
{
|
{
|
||||||
_hp60 = false;
|
|
||||||
_hp30 = false;
|
|
||||||
if (GrandBossManager.getInstance().getBossStatus(FAFURION_GRANDBOSS_ID) == WAITING)
|
if (GrandBossManager.getInstance().getBossStatus(FAFURION_GRANDBOSS_ID) == WAITING)
|
||||||
{
|
{
|
||||||
// checking fafurion stage.
|
|
||||||
_stage = GlobalVariablesManager.getInstance().getInt("Fafurion_Stage", 1);
|
|
||||||
|
|
||||||
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, FIGHTING);
|
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, FIGHTING);
|
||||||
switch (_stage)
|
bossInstance = addSpawn(FAFURION_FINAL_FORM, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
||||||
{
|
startQuestTimer("resetRaid", RAID_DURATION * 60 * 60 * 1000, bossInstance, null);
|
||||||
case 1:
|
|
||||||
{
|
|
||||||
_fafurion = addSpawn(FAFURION_STAGE_1, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 2:
|
|
||||||
{
|
|
||||||
_fafurion = addSpawn(FAFURION_STAGE_2, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 3:
|
|
||||||
{
|
|
||||||
_fafurion = addSpawn(FAFURION_STAGE_3, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 4:
|
|
||||||
{
|
|
||||||
_fafurion = addSpawn(FAFURION_STAGE_4, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 5:
|
|
||||||
{
|
|
||||||
_fafurion = addSpawn(FAFURION_STAGE_5, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 6:
|
|
||||||
{
|
|
||||||
_fafurion = addSpawn(FAFURION_STAGE_6, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 7:
|
|
||||||
{
|
|
||||||
_fafurion = addSpawn(FAFURION_STAGE_7, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
startQuestTimer("resetRaid", RAID_DURATION * 60 * 60 * 1000, _fafurion, null);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -191,13 +124,7 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
plr.sendPacket(new ExShowScreenMessage(NpcStringId.EXCEEDED_THE_FAFURION_S_NEST_RAID_TIME_LIMIT, ExShowScreenMessage.TOP_CENTER, 10000, true));
|
plr.sendPacket(new ExShowScreenMessage(NpcStringId.EXCEEDED_THE_FAFURION_S_NEST_RAID_TIME_LIMIT, ExShowScreenMessage.TOP_CENTER, 10000, true));
|
||||||
}
|
}
|
||||||
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
||||||
FAFURION_ZONE.oustAllPlayers();
|
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
if (_stage > 1)
|
|
||||||
{
|
|
||||||
_stage--;
|
|
||||||
}
|
|
||||||
GlobalVariablesManager.getInstance().set("Fafurion_Stage", _stage);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -214,30 +141,22 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
{
|
{
|
||||||
return "34488-02.html";
|
return "34488-02.html";
|
||||||
}
|
}
|
||||||
if (FAFURION_ZONE.getPlayersInside().size() >= MAX_PEOPLE)
|
|
||||||
{
|
|
||||||
return "34488-03.html";
|
|
||||||
}
|
|
||||||
if (!player.isInParty())
|
if (!player.isInParty())
|
||||||
{
|
{
|
||||||
return "34488-01.html";
|
return "34488-01.html";
|
||||||
}
|
}
|
||||||
final Party party = player.getParty();
|
final Party party = player.getParty();
|
||||||
final boolean isInCC = party.isInCommandChannel();
|
final boolean isInCC = party.isInCommandChannel();
|
||||||
|
final List<PlayerInstance> members = (isInCC) ? party.getCommandChannel().getMembers() : party.getMembers();
|
||||||
final boolean isPartyLeader = (isInCC) ? party.getCommandChannel().isLeader(player) : party.isLeader(player);
|
final boolean isPartyLeader = (isInCC) ? party.getCommandChannel().isLeader(player) : party.isLeader(player);
|
||||||
if (!isPartyLeader)
|
if (!isPartyLeader)
|
||||||
{
|
{
|
||||||
return "34488-02.html";
|
return "34488-02.html";
|
||||||
}
|
}
|
||||||
final List<PlayerInstance> members = (isInCC) ? party.getCommandChannel().getMembers() : party.getMembers();
|
|
||||||
if ((members.size() < Config.FAFURION_MIN_PLAYERS) || (members.size() > Config.FAFURION_MAX_PLAYERS))
|
if ((members.size() < Config.FAFURION_MIN_PLAYERS) || (members.size() > Config.FAFURION_MAX_PLAYERS))
|
||||||
{
|
{
|
||||||
return "34488-01.html";
|
return "34488-01.html";
|
||||||
}
|
}
|
||||||
if (members.size() > (MAX_PEOPLE - FAFURION_ZONE.getPlayersInside().size()))
|
|
||||||
{
|
|
||||||
return "34488-03.html";
|
|
||||||
}
|
|
||||||
for (PlayerInstance member : members)
|
for (PlayerInstance member : members)
|
||||||
{
|
{
|
||||||
if (member.getLevel() < Config.FAFURION_MIN_PLAYER_LVL)
|
if (member.getLevel() < Config.FAFURION_MIN_PLAYER_LVL)
|
||||||
@@ -248,7 +167,7 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
if (!hasQuestItems(player, FONDUS_STONE))
|
if (!hasQuestItems(player, FONDUS_STONE))
|
||||||
{
|
{
|
||||||
// TODO: Retail message.
|
// TODO: Retail message.
|
||||||
player.sendMessage("You need to obtain a fondus stone.");
|
player.sendMessage("You need to own a fondus stone.");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
takeItems(player, FONDUS_STONE, 1);
|
takeItems(player, FONDUS_STONE, 1);
|
||||||
@@ -272,219 +191,6 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
return htmltext;
|
return htmltext;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon)
|
|
||||||
{
|
|
||||||
switch (npc.getId())
|
|
||||||
{
|
|
||||||
case FAFURION_STAGE_1:
|
|
||||||
{
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.6)) && !_hp60)
|
|
||||||
{
|
|
||||||
_hp60 = true;
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
else if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.3)) && !_hp30)
|
|
||||||
{
|
|
||||||
_hp30 = true;
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case FAFURION_STAGE_2:
|
|
||||||
{
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.6)) && !_hp60)
|
|
||||||
{
|
|
||||||
_hp60 = true;
|
|
||||||
for (int i = 1; i < 3; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.3)) && !_hp30)
|
|
||||||
{
|
|
||||||
_hp30 = true;
|
|
||||||
for (int i = 1; i < 3; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case FAFURION_STAGE_3:
|
|
||||||
{
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.6)) && !_hp60)
|
|
||||||
{
|
|
||||||
_hp60 = true;
|
|
||||||
for (int i = 1; i < 4; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.3)) && !_hp30)
|
|
||||||
{
|
|
||||||
_hp30 = true;
|
|
||||||
for (int i = 1; i < 4; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case FAFURION_STAGE_4:
|
|
||||||
{
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.6)) && !_hp60)
|
|
||||||
{
|
|
||||||
_hp60 = true;
|
|
||||||
for (int i = 1; i < 5; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.3)) && !_hp30)
|
|
||||||
{
|
|
||||||
_hp30 = true;
|
|
||||||
for (int i = 1; i < 5; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case FAFURION_STAGE_5:
|
|
||||||
{
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.6)) && !_hp60)
|
|
||||||
{
|
|
||||||
_hp60 = true;
|
|
||||||
for (int i = 1; i < 6; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.3)) && !_hp30)
|
|
||||||
{
|
|
||||||
_hp30 = true;
|
|
||||||
for (int i = 1; i < 6; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case FAFURION_STAGE_6:
|
|
||||||
{
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.6)) && !_hp60)
|
|
||||||
{
|
|
||||||
_hp60 = true;
|
|
||||||
for (int i = 1; i < 7; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.3)) && !_hp30)
|
|
||||||
{
|
|
||||||
_hp30 = true;
|
|
||||||
for (int i = 1; i < 7; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case FAFURION_STAGE_7:
|
|
||||||
{
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.6)) && !_hp60)
|
|
||||||
{
|
|
||||||
_hp60 = true;
|
|
||||||
for (int i = 1; i < 8; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.3)) && !_hp30)
|
|
||||||
{
|
|
||||||
_hp30 = true;
|
|
||||||
for (int i = 1; i < 8; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return super.onAttack(npc, attacker, damage, isSummon);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
|
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
@@ -499,11 +205,6 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
info.set("respawn_time", System.currentTimeMillis() + respawnTime);
|
info.set("respawn_time", System.currentTimeMillis() + respawnTime);
|
||||||
GrandBossManager.getInstance().setStatsSet(FAFURION_GRANDBOSS_ID, info);
|
GrandBossManager.getInstance().setStatsSet(FAFURION_GRANDBOSS_ID, info);
|
||||||
startQuestTimer("unlock_fafurion", respawnTime, null, null);
|
startQuestTimer("unlock_fafurion", respawnTime, null, null);
|
||||||
if (_stage < 7)
|
|
||||||
{
|
|
||||||
_stage++;
|
|
||||||
}
|
|
||||||
GlobalVariablesManager.getInstance().set("Fafurion_Stage", _stage);
|
|
||||||
|
|
||||||
return super.onKill(npc, killer, isSummon);
|
return super.onKill(npc, killer, isSummon);
|
||||||
}
|
}
|
||||||
|
@@ -19,50 +19,32 @@ package ai.bosses.Fafurion;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.l2jmobius.Config;
|
import org.l2jmobius.Config;
|
||||||
import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager;
|
|
||||||
import org.l2jmobius.gameserver.instancemanager.GrandBossManager;
|
import org.l2jmobius.gameserver.instancemanager.GrandBossManager;
|
||||||
import org.l2jmobius.gameserver.instancemanager.ZoneManager;
|
|
||||||
import org.l2jmobius.gameserver.model.Location;
|
import org.l2jmobius.gameserver.model.Location;
|
||||||
import org.l2jmobius.gameserver.model.Party;
|
import org.l2jmobius.gameserver.model.Party;
|
||||||
import org.l2jmobius.gameserver.model.StatsSet;
|
import org.l2jmobius.gameserver.model.StatsSet;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.GrandBossInstance;
|
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.zone.type.NoSummonFriendZone;
|
|
||||||
import org.l2jmobius.gameserver.network.NpcStringId;
|
import org.l2jmobius.gameserver.network.NpcStringId;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
|
import org.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
|
||||||
|
|
||||||
import ai.AbstractNpcAI;
|
import ai.AbstractNpcAI;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Mobius, NviX
|
* @author Mobius
|
||||||
*/
|
*/
|
||||||
public class Fafurion extends AbstractNpcAI
|
public class Fafurion extends AbstractNpcAI
|
||||||
{
|
{
|
||||||
// NPCs
|
// NPCs
|
||||||
private static final int HEART_OF_TSUNAMI = 34488;
|
private static final int HEART_OF_TSUNAMI = 34488;
|
||||||
private static final int FAFURION_GRANDBOSS_ID = 19740;
|
private static final int FAFURION_GRANDBOSS_ID = 19740;
|
||||||
private static final int FAFURION_STAGE_1 = 29361;
|
private static final int FAFURION_FINAL_FORM = 29367;
|
||||||
private static final int FAFURION_STAGE_2 = 29362;
|
|
||||||
private static final int FAFURION_STAGE_3 = 29363;
|
|
||||||
private static final int FAFURION_STAGE_4 = 29364;
|
|
||||||
private static final int FAFURION_STAGE_5 = 29365;
|
|
||||||
private static final int FAFURION_STAGE_6 = 29366;
|
|
||||||
private static final int FAFURION_STAGE_7 = 29367;
|
|
||||||
private static final int EMERALD_DRAGON = 29368;
|
|
||||||
private static final int BLUE_WATER_DRAGON = 29369;
|
|
||||||
private static final int FAFURION_DEFENDER = 29370;
|
|
||||||
private static final int ELITE_LEGIONARY = 29371;
|
|
||||||
private static final int ELITE_GLADIATOR = 29372;
|
|
||||||
private static final int ELITE_WIZARD = 29373;
|
|
||||||
// Item
|
// Item
|
||||||
private static final int FONDUS_STONE = 80322;
|
private static final int FONDUS_STONE = 80322;
|
||||||
// Locations
|
// Locations
|
||||||
private static final Location RAID_ENTER_LOC = new Location(180059, 212896, -14727);
|
private static final Location RAID_ENTER_LOC = new Location(180059, 212896, -14727);
|
||||||
private static final Location FAFURION_SPAWN_LOC = new Location(180712, 210664, -14823, 22146);
|
private static final Location FAFURION_SPAWN_LOC = new Location(180712, 210664, -14823, 22146);
|
||||||
// Zone
|
|
||||||
private static final NoSummonFriendZone FAFURION_ZONE = ZoneManager.getInstance().getZoneById(210110, NoSummonFriendZone.class); // Fafurion Nest zone
|
|
||||||
// Status
|
// Status
|
||||||
private static final int ALIVE = 0;
|
private static final int ALIVE = 0;
|
||||||
private static final int WAITING = 1;
|
private static final int WAITING = 1;
|
||||||
@@ -70,18 +52,14 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
private static final int DEAD = 3;
|
private static final int DEAD = 3;
|
||||||
// Misc
|
// Misc
|
||||||
private static final int RAID_DURATION = 5; // hours
|
private static final int RAID_DURATION = 5; // hours
|
||||||
private static final int MAX_PEOPLE = 200;
|
private static Npc bossInstance;
|
||||||
private static boolean _hp60 = false;
|
|
||||||
private static boolean _hp30 = false;
|
|
||||||
private static int _stage = 0;
|
|
||||||
private static Npc _fafurion;
|
|
||||||
|
|
||||||
private Fafurion()
|
private Fafurion()
|
||||||
{
|
{
|
||||||
addStartNpc(HEART_OF_TSUNAMI);
|
addStartNpc(HEART_OF_TSUNAMI);
|
||||||
addTalkId(HEART_OF_TSUNAMI);
|
addTalkId(HEART_OF_TSUNAMI);
|
||||||
addFirstTalkId(HEART_OF_TSUNAMI);
|
addFirstTalkId(HEART_OF_TSUNAMI);
|
||||||
addKillId(FAFURION_STAGE_1, FAFURION_STAGE_2, FAFURION_STAGE_3, FAFURION_STAGE_4, FAFURION_STAGE_5, FAFURION_STAGE_6, FAFURION_STAGE_7);
|
addKillId(FAFURION_FINAL_FORM);
|
||||||
// Unlock
|
// Unlock
|
||||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(FAFURION_GRANDBOSS_ID);
|
final StatsSet info = GrandBossManager.getInstance().getStatsSet(FAFURION_GRANDBOSS_ID);
|
||||||
final int status = GrandBossManager.getInstance().getBossStatus(FAFURION_GRANDBOSS_ID);
|
final int status = GrandBossManager.getInstance().getBossStatus(FAFURION_GRANDBOSS_ID);
|
||||||
@@ -94,13 +72,11 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GrandBossManager.getInstance().addBoss((GrandBossInstance) addSpawn(FAFURION_GRANDBOSS_ID, -113360, -244676, -15536, 0, false, 0));
|
|
||||||
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (status != ALIVE)
|
||||||
{
|
{
|
||||||
GrandBossManager.getInstance().addBoss((GrandBossInstance) addSpawn(FAFURION_GRANDBOSS_ID, -113360, -244676, -15536, 0, false, 0));
|
|
||||||
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -113,7 +89,6 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
{
|
{
|
||||||
case "unlock_fafurion":
|
case "unlock_fafurion":
|
||||||
{
|
{
|
||||||
GrandBossManager.getInstance().addBoss((GrandBossInstance) addSpawn(FAFURION_GRANDBOSS_ID, -113360, -244676, -15536, 0, false, 0));
|
|
||||||
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -131,53 +106,11 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "beginning":
|
case "beginning":
|
||||||
{
|
{
|
||||||
_hp60 = false;
|
|
||||||
_hp30 = false;
|
|
||||||
if (GrandBossManager.getInstance().getBossStatus(FAFURION_GRANDBOSS_ID) == WAITING)
|
if (GrandBossManager.getInstance().getBossStatus(FAFURION_GRANDBOSS_ID) == WAITING)
|
||||||
{
|
{
|
||||||
// checking fafurion stage.
|
|
||||||
_stage = GlobalVariablesManager.getInstance().getInt("Fafurion_Stage", 1);
|
|
||||||
|
|
||||||
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, FIGHTING);
|
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, FIGHTING);
|
||||||
switch (_stage)
|
bossInstance = addSpawn(FAFURION_FINAL_FORM, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
||||||
{
|
startQuestTimer("resetRaid", RAID_DURATION * 60 * 60 * 1000, bossInstance, null);
|
||||||
case 1:
|
|
||||||
{
|
|
||||||
_fafurion = addSpawn(FAFURION_STAGE_1, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 2:
|
|
||||||
{
|
|
||||||
_fafurion = addSpawn(FAFURION_STAGE_2, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 3:
|
|
||||||
{
|
|
||||||
_fafurion = addSpawn(FAFURION_STAGE_3, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 4:
|
|
||||||
{
|
|
||||||
_fafurion = addSpawn(FAFURION_STAGE_4, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 5:
|
|
||||||
{
|
|
||||||
_fafurion = addSpawn(FAFURION_STAGE_5, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 6:
|
|
||||||
{
|
|
||||||
_fafurion = addSpawn(FAFURION_STAGE_6, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 7:
|
|
||||||
{
|
|
||||||
_fafurion = addSpawn(FAFURION_STAGE_7, FAFURION_SPAWN_LOC.getX(), FAFURION_SPAWN_LOC.getY(), FAFURION_SPAWN_LOC.getZ(), FAFURION_SPAWN_LOC.getHeading(), false, 0, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
startQuestTimer("resetRaid", RAID_DURATION * 60 * 60 * 1000, _fafurion, null);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -191,13 +124,7 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
plr.sendPacket(new ExShowScreenMessage(NpcStringId.EXCEEDED_THE_FAFURION_S_NEST_RAID_TIME_LIMIT, ExShowScreenMessage.TOP_CENTER, 10000, true));
|
plr.sendPacket(new ExShowScreenMessage(NpcStringId.EXCEEDED_THE_FAFURION_S_NEST_RAID_TIME_LIMIT, ExShowScreenMessage.TOP_CENTER, 10000, true));
|
||||||
}
|
}
|
||||||
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
GrandBossManager.getInstance().setBossStatus(FAFURION_GRANDBOSS_ID, ALIVE);
|
||||||
FAFURION_ZONE.oustAllPlayers();
|
|
||||||
npc.deleteMe();
|
npc.deleteMe();
|
||||||
if (_stage > 1)
|
|
||||||
{
|
|
||||||
_stage--;
|
|
||||||
}
|
|
||||||
GlobalVariablesManager.getInstance().set("Fafurion_Stage", _stage);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -214,30 +141,22 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
{
|
{
|
||||||
return "34488-02.html";
|
return "34488-02.html";
|
||||||
}
|
}
|
||||||
if (FAFURION_ZONE.getPlayersInside().size() >= MAX_PEOPLE)
|
|
||||||
{
|
|
||||||
return "34488-03.html";
|
|
||||||
}
|
|
||||||
if (!player.isInParty())
|
if (!player.isInParty())
|
||||||
{
|
{
|
||||||
return "34488-01.html";
|
return "34488-01.html";
|
||||||
}
|
}
|
||||||
final Party party = player.getParty();
|
final Party party = player.getParty();
|
||||||
final boolean isInCC = party.isInCommandChannel();
|
final boolean isInCC = party.isInCommandChannel();
|
||||||
|
final List<PlayerInstance> members = (isInCC) ? party.getCommandChannel().getMembers() : party.getMembers();
|
||||||
final boolean isPartyLeader = (isInCC) ? party.getCommandChannel().isLeader(player) : party.isLeader(player);
|
final boolean isPartyLeader = (isInCC) ? party.getCommandChannel().isLeader(player) : party.isLeader(player);
|
||||||
if (!isPartyLeader)
|
if (!isPartyLeader)
|
||||||
{
|
{
|
||||||
return "34488-02.html";
|
return "34488-02.html";
|
||||||
}
|
}
|
||||||
final List<PlayerInstance> members = (isInCC) ? party.getCommandChannel().getMembers() : party.getMembers();
|
|
||||||
if ((members.size() < Config.FAFURION_MIN_PLAYERS) || (members.size() > Config.FAFURION_MAX_PLAYERS))
|
if ((members.size() < Config.FAFURION_MIN_PLAYERS) || (members.size() > Config.FAFURION_MAX_PLAYERS))
|
||||||
{
|
{
|
||||||
return "34488-01.html";
|
return "34488-01.html";
|
||||||
}
|
}
|
||||||
if (members.size() > (MAX_PEOPLE - FAFURION_ZONE.getPlayersInside().size()))
|
|
||||||
{
|
|
||||||
return "34488-03.html";
|
|
||||||
}
|
|
||||||
for (PlayerInstance member : members)
|
for (PlayerInstance member : members)
|
||||||
{
|
{
|
||||||
if (member.getLevel() < Config.FAFURION_MIN_PLAYER_LVL)
|
if (member.getLevel() < Config.FAFURION_MIN_PLAYER_LVL)
|
||||||
@@ -248,7 +167,7 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
if (!hasQuestItems(player, FONDUS_STONE))
|
if (!hasQuestItems(player, FONDUS_STONE))
|
||||||
{
|
{
|
||||||
// TODO: Retail message.
|
// TODO: Retail message.
|
||||||
player.sendMessage("You need to obtain a fondus stone.");
|
player.sendMessage("You need to own a fondus stone.");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
takeItems(player, FONDUS_STONE, 1);
|
takeItems(player, FONDUS_STONE, 1);
|
||||||
@@ -272,219 +191,6 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
return htmltext;
|
return htmltext;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String onAttack(Npc npc, PlayerInstance attacker, int damage, boolean isSummon)
|
|
||||||
{
|
|
||||||
switch (npc.getId())
|
|
||||||
{
|
|
||||||
case FAFURION_STAGE_1:
|
|
||||||
{
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.6)) && !_hp60)
|
|
||||||
{
|
|
||||||
_hp60 = true;
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
else if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.3)) && !_hp30)
|
|
||||||
{
|
|
||||||
_hp30 = true;
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case FAFURION_STAGE_2:
|
|
||||||
{
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.6)) && !_hp60)
|
|
||||||
{
|
|
||||||
_hp60 = true;
|
|
||||||
for (int i = 1; i < 3; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.3)) && !_hp30)
|
|
||||||
{
|
|
||||||
_hp30 = true;
|
|
||||||
for (int i = 1; i < 3; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case FAFURION_STAGE_3:
|
|
||||||
{
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.6)) && !_hp60)
|
|
||||||
{
|
|
||||||
_hp60 = true;
|
|
||||||
for (int i = 1; i < 4; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.3)) && !_hp30)
|
|
||||||
{
|
|
||||||
_hp30 = true;
|
|
||||||
for (int i = 1; i < 4; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case FAFURION_STAGE_4:
|
|
||||||
{
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.6)) && !_hp60)
|
|
||||||
{
|
|
||||||
_hp60 = true;
|
|
||||||
for (int i = 1; i < 5; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.3)) && !_hp30)
|
|
||||||
{
|
|
||||||
_hp30 = true;
|
|
||||||
for (int i = 1; i < 5; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case FAFURION_STAGE_5:
|
|
||||||
{
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.6)) && !_hp60)
|
|
||||||
{
|
|
||||||
_hp60 = true;
|
|
||||||
for (int i = 1; i < 6; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.3)) && !_hp30)
|
|
||||||
{
|
|
||||||
_hp30 = true;
|
|
||||||
for (int i = 1; i < 6; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case FAFURION_STAGE_6:
|
|
||||||
{
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.6)) && !_hp60)
|
|
||||||
{
|
|
||||||
_hp60 = true;
|
|
||||||
for (int i = 1; i < 7; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.3)) && !_hp30)
|
|
||||||
{
|
|
||||||
_hp30 = true;
|
|
||||||
for (int i = 1; i < 7; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case FAFURION_STAGE_7:
|
|
||||||
{
|
|
||||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.6)) && !_hp60)
|
|
||||||
{
|
|
||||||
_hp60 = true;
|
|
||||||
for (int i = 1; i < 8; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.3)) && !_hp30)
|
|
||||||
{
|
|
||||||
_hp30 = true;
|
|
||||||
for (int i = 1; i < 8; i++)
|
|
||||||
{
|
|
||||||
addSpawn(EMERALD_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(BLUE_WATER_DRAGON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(FAFURION_DEFENDER, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_LEGIONARY, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_GLADIATOR, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
addSpawn(ELITE_WIZARD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return super.onAttack(npc, attacker, damage, isSummon);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
|
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
@@ -499,11 +205,6 @@ public class Fafurion extends AbstractNpcAI
|
|||||||
info.set("respawn_time", System.currentTimeMillis() + respawnTime);
|
info.set("respawn_time", System.currentTimeMillis() + respawnTime);
|
||||||
GrandBossManager.getInstance().setStatsSet(FAFURION_GRANDBOSS_ID, info);
|
GrandBossManager.getInstance().setStatsSet(FAFURION_GRANDBOSS_ID, info);
|
||||||
startQuestTimer("unlock_fafurion", respawnTime, null, null);
|
startQuestTimer("unlock_fafurion", respawnTime, null, null);
|
||||||
if (_stage < 7)
|
|
||||||
{
|
|
||||||
_stage++;
|
|
||||||
}
|
|
||||||
GlobalVariablesManager.getInstance().set("Fafurion_Stage", _stage);
|
|
||||||
|
|
||||||
return super.onKill(npc, killer, isSummon);
|
return super.onKill(npc, killer, isSummon);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user