Sync with L2JServer Jan 24th 2015.
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
*/
|
||||
package hellbound.AI.Zones.AnomicFoundry;
|
||||
|
||||
import hellbound.HellboundEngine;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javolution.util.FastMap;
|
||||
@@ -35,8 +37,6 @@ import com.l2jserver.gameserver.model.skills.Skill;
|
||||
import com.l2jserver.gameserver.network.NpcStringId;
|
||||
import com.l2jserver.gameserver.network.clientpackets.Say2;
|
||||
|
||||
import hellbound.HellboundEngine;
|
||||
|
||||
/**
|
||||
* Anomic Foundry.
|
||||
* @author GKR
|
||||
|
@@ -23,7 +23,7 @@ import java.util.Map;
|
||||
import javolution.util.FastMap;
|
||||
import ai.npc.AbstractNpcAI;
|
||||
|
||||
import com.l2jserver.gameserver.datatables.DoorTable;
|
||||
import com.l2jserver.gameserver.data.xml.impl.DoorData;
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.base.ClassId;
|
||||
@@ -69,7 +69,7 @@ public final class BaseTower extends AbstractNpcAI
|
||||
{
|
||||
if (event.equalsIgnoreCase("CLOSE"))
|
||||
{
|
||||
DoorTable.getInstance().getDoor(20260004).closeMe();
|
||||
DoorData.getInstance().getDoor(20260004).closeMe();
|
||||
}
|
||||
return super.onAdvEvent(event, npc, player);
|
||||
}
|
||||
@@ -95,8 +95,8 @@ public final class BaseTower extends AbstractNpcAI
|
||||
{
|
||||
// Should Kendal be despawned before Guzen's spawn? Or it will be crowd of Kendal's
|
||||
addSpawn(KENDAL, npc.getSpawn().getLocation(), false, npc.getSpawn().getRespawnDelay(), false);
|
||||
DoorTable.getInstance().getDoor(20260003).openMe();
|
||||
DoorTable.getInstance().getDoor(20260004).openMe();
|
||||
DoorData.getInstance().getDoor(20260003).openMe();
|
||||
DoorData.getInstance().getDoor(20260004).openMe();
|
||||
startQuestTimer("CLOSE", 60000, npc, null, false);
|
||||
break;
|
||||
}
|
||||
|
@@ -18,6 +18,8 @@
|
||||
*/
|
||||
package hellbound.AI.Zones.TowerOfInfinitum;
|
||||
|
||||
import hellbound.HellboundEngine;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -29,8 +31,6 @@ import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.util.Util;
|
||||
|
||||
import hellbound.HellboundEngine;
|
||||
|
||||
/**
|
||||
* Tower Of Infinitum.
|
||||
* @author GKR
|
||||
|
@@ -30,7 +30,7 @@ import ai.npc.AbstractNpcAI;
|
||||
|
||||
import com.l2jserver.gameserver.ThreadPoolManager;
|
||||
import com.l2jserver.gameserver.ai.CtrlIntention;
|
||||
import com.l2jserver.gameserver.datatables.DoorTable;
|
||||
import com.l2jserver.gameserver.data.xml.impl.DoorData;
|
||||
import com.l2jserver.gameserver.datatables.SkillData;
|
||||
import com.l2jserver.gameserver.instancemanager.GlobalVariablesManager;
|
||||
import com.l2jserver.gameserver.instancemanager.ZoneManager;
|
||||
@@ -657,7 +657,7 @@ public final class TowerOfNaia extends AbstractNpcAI
|
||||
if (spawned.isEmpty() && DOORS.containsKey(managerId))
|
||||
{
|
||||
int[] doorList = DOORS.get(managerId);
|
||||
DoorTable.getInstance().getDoor(doorList[1]).openMe();
|
||||
DoorData.getInstance().getDoor(doorList[1]).openMe();
|
||||
_spawns.remove(managerId);
|
||||
}
|
||||
}
|
||||
@@ -666,7 +666,7 @@ public final class TowerOfNaia extends AbstractNpcAI
|
||||
{
|
||||
_challengeState = STATE_SPORE_CHALLENGE_IN_PROGRESS;
|
||||
markElpyRespawn();
|
||||
DoorTable.getInstance().getDoor(18250025).closeMe();
|
||||
DoorData.getInstance().getDoor(18250025).closeMe();
|
||||
ZoneManager.getInstance().getZoneById(200100).setEnabled(true);
|
||||
|
||||
for (int i = 0; i < 10; i++)
|
||||
@@ -762,7 +762,7 @@ public final class TowerOfNaia extends AbstractNpcAI
|
||||
|
||||
if (npcId == MUTATED_ELPY)
|
||||
{
|
||||
DoorTable.getInstance().getDoor(18250025).openMe();
|
||||
DoorData.getInstance().getDoor(18250025).openMe();
|
||||
ZoneManager.getInstance().getZoneById(200100).setEnabled(false);
|
||||
ZoneManager.getInstance().getZoneById(200101).setEnabled(true);
|
||||
ZoneManager.getInstance().getZoneById(200101).setEnabled(false);
|
||||
@@ -808,8 +808,8 @@ public final class TowerOfNaia extends AbstractNpcAI
|
||||
if (DOORS.containsKey(managerId))
|
||||
{
|
||||
int[] doorList = DOORS.get(managerId);
|
||||
DoorTable.getInstance().getDoor(doorList[0]).openMe();
|
||||
DoorTable.getInstance().getDoor(doorList[1]).closeMe();
|
||||
DoorData.getInstance().getDoor(doorList[0]).openMe();
|
||||
DoorData.getInstance().getDoor(doorList[1]).closeMe();
|
||||
}
|
||||
|
||||
if (_spawns.containsKey(managerId) && (_spawns.get(managerId) != null))
|
||||
@@ -896,7 +896,7 @@ public final class TowerOfNaia extends AbstractNpcAI
|
||||
if (DOORS.containsKey(managerId))
|
||||
{
|
||||
int[] doorList = DOORS.get(managerId);
|
||||
DoorTable.getInstance().getDoor(doorList[0]).closeMe();
|
||||
DoorData.getInstance().getDoor(doorList[0]).closeMe();
|
||||
}
|
||||
|
||||
if (SPAWNS.containsKey(managerId))
|
||||
|
@@ -31,7 +31,7 @@ import ai.npc.AbstractNpcAI;
|
||||
|
||||
import com.l2jserver.gameserver.ThreadPoolManager;
|
||||
import com.l2jserver.gameserver.ai.CtrlIntention;
|
||||
import com.l2jserver.gameserver.datatables.DoorTable;
|
||||
import com.l2jserver.gameserver.data.xml.impl.DoorData;
|
||||
import com.l2jserver.gameserver.datatables.SkillData;
|
||||
import com.l2jserver.gameserver.instancemanager.RaidBossSpawnManager;
|
||||
import com.l2jserver.gameserver.instancemanager.RaidBossSpawnManager.StatusEnum;
|
||||
@@ -740,7 +740,7 @@ public final class TullyWorkshop extends AbstractNpcAI
|
||||
final int[] doors = TULLY_DOORLIST.get(npcId);
|
||||
for (int doorId : doors)
|
||||
{
|
||||
DoorTable.getInstance().getDoor(doorId).closeMe();
|
||||
DoorData.getInstance().getDoor(doorId).closeMe();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -837,7 +837,7 @@ public final class TullyWorkshop extends AbstractNpcAI
|
||||
final int[] doors = TULLY_DOORLIST.get(npcId);
|
||||
for (int doorId : doors)
|
||||
{
|
||||
DoorTable.getInstance().getDoor(doorId).openMe();
|
||||
DoorData.getInstance().getDoor(doorId).openMe();
|
||||
}
|
||||
|
||||
startQuestTimer("close", 120000, npc, null);
|
||||
@@ -1205,8 +1205,8 @@ public final class TullyWorkshop extends AbstractNpcAI
|
||||
postMortemSpawn.add(spawnedNpc);
|
||||
}
|
||||
|
||||
DoorTable.getInstance().getDoor(19260051).openMe();
|
||||
DoorTable.getInstance().getDoor(19260052).openMe();
|
||||
DoorData.getInstance().getDoor(19260051).openMe();
|
||||
DoorData.getInstance().getDoor(19260052).openMe();
|
||||
|
||||
countdownTime = 600000;
|
||||
_countdown = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(() ->
|
||||
@@ -1570,8 +1570,8 @@ public final class TullyWorkshop extends AbstractNpcAI
|
||||
|
||||
private void handleDoorsOnDeath()
|
||||
{
|
||||
DoorTable.getInstance().getDoor(20250005).openMe();
|
||||
DoorTable.getInstance().getDoor(20250004).openMe();
|
||||
DoorData.getInstance().getDoor(20250005).openMe();
|
||||
DoorData.getInstance().getDoor(20250004).openMe();
|
||||
ThreadPoolManager.getInstance().scheduleGeneral(new DoorTask(new int[]
|
||||
{
|
||||
20250006,
|
||||
@@ -1594,8 +1594,8 @@ public final class TullyWorkshop extends AbstractNpcAI
|
||||
|
||||
private void handleDoorsOnRespawn()
|
||||
{
|
||||
DoorTable.getInstance().getDoor(20250009).closeMe();
|
||||
DoorTable.getInstance().getDoor(20250008).closeMe();
|
||||
DoorData.getInstance().getDoor(20250009).closeMe();
|
||||
DoorData.getInstance().getDoor(20250008).closeMe();
|
||||
ThreadPoolManager.getInstance().scheduleGeneral(new DoorTask(new int[]
|
||||
{
|
||||
20250777,
|
||||
@@ -1627,7 +1627,7 @@ public final class TullyWorkshop extends AbstractNpcAI
|
||||
L2DoorInstance door;
|
||||
for (int doorId : _doorIds)
|
||||
{
|
||||
door = DoorTable.getInstance().getDoor(doorId);
|
||||
door = DoorData.getInstance().getDoor(doorId);
|
||||
if (door != null)
|
||||
{
|
||||
switch (_state)
|
||||
|
Reference in New Issue
Block a user