Sync with L2jServer Ertheia Mar 27th 2015.
This commit is contained in:
@@ -194,6 +194,7 @@ public final class Core extends AbstractNpcAI
|
||||
npc.broadcastPacket(new NpcSay(objId, ChatType.NPC_GENERAL, npc.getId(), NpcStringId.SYSTEM_IS_BEING_SHUT_DOWN));
|
||||
npc.broadcastPacket(new NpcSay(objId, ChatType.NPC_GENERAL, npc.getId(), NpcStringId.EMPTY));
|
||||
_firstAttacked = false;
|
||||
|
||||
GrandBossManager.getInstance().setBossStatus(CORE, DEAD);
|
||||
// Calculate Min and Max respawn times randomly.
|
||||
long respawnTime = (Config.CORE_SPAWN_INTERVAL + getRandom(-Config.CORE_SPAWN_RANDOM, Config.CORE_SPAWN_RANDOM)) * 3600000;
|
||||
|
@@ -345,8 +345,8 @@ public class EnergySeeds extends AbstractNpcAI
|
||||
|
||||
private L2MonsterInstance spawnSupriseMob(L2Npc energy, int npcId)
|
||||
{
|
||||
L2NpcTemplate surpriseMobTemplate = NpcData.getInstance().getTemplate(npcId);
|
||||
L2MonsterInstance monster = new L2MonsterInstance(surpriseMobTemplate);
|
||||
L2NpcTemplate surpriseMobTemplate = NpcData.getInstance().getTemplate(npcId);
|
||||
L2MonsterInstance monster = new L2MonsterInstance(surpriseMobTemplate);
|
||||
monster.setCurrentHpMp(monster.getMaxHp(), monster.getMaxMp());
|
||||
monster.setHeading(energy.getHeading());
|
||||
monster.setInstanceId(energy.getInstanceId());
|
||||
|
@@ -86,9 +86,9 @@ public class Lindvior extends AbstractNpcAI
|
||||
}
|
||||
break;
|
||||
case "start":
|
||||
_lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
||||
_tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
||||
_artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
||||
_lindviorCamera = SpawnTable.getInstance().findAny(LINDVIOR_CAMERA).getLastSpawn();
|
||||
_tomaris = SpawnTable.getInstance().findAny(TOMARIS).getLastSpawn();
|
||||
_artius = SpawnTable.getInstance().findAny(ARTIUS).getLastSpawn();
|
||||
|
||||
startQuestTimer("tomaris_shout1", 1000, _tomaris, null);
|
||||
startQuestTimer("artius_shout", 60000, _artius, null);
|
||||
|
@@ -541,7 +541,6 @@ public class AdminTeleport implements IAdminCommandHandler
|
||||
if ((obj instanceof L2Npc) && !((L2Npc) obj).isMinion() && !(obj instanceof L2RaidBossInstance) && !(obj instanceof L2GrandBossInstance))
|
||||
{
|
||||
L2Npc target = (L2Npc) obj;
|
||||
|
||||
L2Spawn spawn = target.getSpawn();
|
||||
if (spawn == null)
|
||||
{
|
||||
|
@@ -282,6 +282,6 @@ public final class Q00625_TheFinestIngredientsPart2 extends Quest
|
||||
|
||||
private static boolean isBumbalumpSpawned()
|
||||
{
|
||||
return SpawnTable.getInstance().getAnySpawn(ICICLE_EMPEROR_BUMBALUMP) != null;
|
||||
return SpawnTable.getInstance().findAny(ICICLE_EMPEROR_BUMBALUMP) != null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user