Sync with L2JServer Feb 7th 2015.
This commit is contained in:
@@ -27,6 +27,7 @@ import ai.npc.AbstractNpcAI;
|
||||
|
||||
import com.l2jserver.gameserver.ai.CtrlIntention;
|
||||
import com.l2jserver.gameserver.datatables.SpawnTable;
|
||||
import com.l2jserver.gameserver.enums.ChatType;
|
||||
import com.l2jserver.gameserver.model.L2Spawn;
|
||||
import com.l2jserver.gameserver.model.Location;
|
||||
import com.l2jserver.gameserver.model.actor.L2Attackable;
|
||||
@@ -35,7 +36,6 @@ import com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.skills.Skill;
|
||||
import com.l2jserver.gameserver.network.NpcStringId;
|
||||
import com.l2jserver.gameserver.network.clientpackets.Say2;
|
||||
|
||||
/**
|
||||
* Anomic Foundry.
|
||||
@@ -142,7 +142,7 @@ public final class AnomicFoundry extends AbstractNpcAI
|
||||
int atkIndex = _atkIndex.containsKey(npc.getObjectId()) ? _atkIndex.get(npc.getObjectId()) : 0;
|
||||
if (atkIndex == 0)
|
||||
{
|
||||
broadcastNpcSay(npc, Say2.NPC_ALL, NpcStringId.ENEMY_INVASION_HURRY_UP);
|
||||
broadcastNpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.ENEMY_INVASION_HURRY_UP);
|
||||
cancelQuestTimer("return_laborer", npc, null);
|
||||
startQuestTimer("return_laborer", 60000, npc, null);
|
||||
|
||||
@@ -183,7 +183,7 @@ public final class AnomicFoundry extends AbstractNpcAI
|
||||
{
|
||||
if (getRandom(10000) < 8000)
|
||||
{
|
||||
broadcastNpcSay(npc, Say2.NPC_ALL, NpcStringId.PROCESS_SHOULDN_T_BE_DELAYED_BECAUSE_OF_ME);
|
||||
broadcastNpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.PROCESS_SHOULDN_T_BE_DELAYED_BECAUSE_OF_ME);
|
||||
if (respawnTime < respawnMax)
|
||||
{
|
||||
respawnTime += 10000;
|
||||
|
@@ -32,6 +32,7 @@ import com.l2jserver.gameserver.ThreadPoolManager;
|
||||
import com.l2jserver.gameserver.ai.CtrlIntention;
|
||||
import com.l2jserver.gameserver.data.xml.impl.DoorData;
|
||||
import com.l2jserver.gameserver.datatables.SkillData;
|
||||
import com.l2jserver.gameserver.enums.ChatType;
|
||||
import com.l2jserver.gameserver.instancemanager.GlobalVariablesManager;
|
||||
import com.l2jserver.gameserver.instancemanager.ZoneManager;
|
||||
import com.l2jserver.gameserver.model.L2Party;
|
||||
@@ -43,7 +44,6 @@ import com.l2jserver.gameserver.model.skills.Skill;
|
||||
import com.l2jserver.gameserver.model.zone.L2ZoneType;
|
||||
import com.l2jserver.gameserver.network.NpcStringId;
|
||||
import com.l2jserver.gameserver.network.SystemMessageId;
|
||||
import com.l2jserver.gameserver.network.clientpackets.Say2;
|
||||
import com.l2jserver.gameserver.util.MinionList;
|
||||
import com.l2jserver.gameserver.util.Util;
|
||||
|
||||
@@ -612,7 +612,7 @@ public final class TowerOfNaia extends AbstractNpcAI
|
||||
MinionList.spawnMinion(_lock, 18493);
|
||||
MinionList.spawnMinion(_lock, 18493);
|
||||
}
|
||||
broadcastNpcSay(_controller, Say2.NPC_ALL, NpcStringId.EMERGENCY_EMERGENCY_THE_OUTER_WALL_IS_WEAKENING_RAPIDLY);
|
||||
broadcastNpcSay(_controller, ChatType.NPC_GENERAL, NpcStringId.EMERGENCY_EMERGENCY_THE_OUTER_WALL_IS_WEAKENING_RAPIDLY);
|
||||
_counter -= 10;
|
||||
}
|
||||
}
|
||||
@@ -716,7 +716,7 @@ public final class TowerOfNaia extends AbstractNpcAI
|
||||
{
|
||||
if ((spore != null) && !spore.isDead() && (spore.getId() == npcId))
|
||||
{
|
||||
broadcastNpcSay(spore, Say2.NPC_ALL, SPORES_NPCSTRING_ID[getRandom(4)], el);
|
||||
broadcastNpcSay(spore, ChatType.NPC_GENERAL, SPORES_NPCSTRING_ID[getRandom(4)], el);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -33,6 +33,7 @@ import com.l2jserver.gameserver.ThreadPoolManager;
|
||||
import com.l2jserver.gameserver.ai.CtrlIntention;
|
||||
import com.l2jserver.gameserver.data.xml.impl.DoorData;
|
||||
import com.l2jserver.gameserver.datatables.SkillData;
|
||||
import com.l2jserver.gameserver.enums.ChatType;
|
||||
import com.l2jserver.gameserver.instancemanager.RaidBossSpawnManager;
|
||||
import com.l2jserver.gameserver.instancemanager.RaidBossSpawnManager.StatusEnum;
|
||||
import com.l2jserver.gameserver.instancemanager.ZoneManager;
|
||||
@@ -48,7 +49,6 @@ import com.l2jserver.gameserver.model.skills.Skill;
|
||||
import com.l2jserver.gameserver.model.zone.L2ZoneType;
|
||||
import com.l2jserver.gameserver.network.NpcStringId;
|
||||
import com.l2jserver.gameserver.network.SystemMessageId;
|
||||
import com.l2jserver.gameserver.network.clientpackets.Say2;
|
||||
import com.l2jserver.gameserver.util.MinionList;
|
||||
import com.l2jserver.gameserver.util.Util;
|
||||
|
||||
@@ -572,7 +572,7 @@ public final class TullyWorkshop extends AbstractNpcAI
|
||||
{
|
||||
if (postMortemSpawn.indexOf(npc) == 11)
|
||||
{
|
||||
broadcastNpcSay(npc, Say2.NPC_ALL, NpcStringId.HA_HA_YOU_WERE_SO_AFRAID_OF_DEATH_LET_ME_SEE_IF_YOU_FIND_ME_IN_TIME_MAYBE_YOU_CAN_FIND_A_WAY);
|
||||
broadcastNpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.HA_HA_YOU_WERE_SO_AFRAID_OF_DEATH_LET_ME_SEE_IF_YOU_FIND_ME_IN_TIME_MAYBE_YOU_CAN_FIND_A_WAY);
|
||||
npc.deleteMe();
|
||||
return null;
|
||||
}
|
||||
@@ -746,7 +746,7 @@ public final class TullyWorkshop extends AbstractNpcAI
|
||||
|
||||
if (event.equalsIgnoreCase("repair_device"))
|
||||
{
|
||||
broadcastNpcSay(npc, Say2.NPC_SHOUT, NpcStringId.DE_ACTIVATE_THE_ALARM);
|
||||
broadcastNpcSay(npc, ChatType.NPC_SHOUT, NpcStringId.DE_ACTIVATE_THE_ALARM);
|
||||
brokenContraptions.remove(npc.getObjectId());
|
||||
}
|
||||
else if (event.equalsIgnoreCase("despawn_servant") && !npc.isDead())
|
||||
@@ -1223,7 +1223,7 @@ public final class TullyWorkshop extends AbstractNpcAI
|
||||
{
|
||||
if ((_npc != null) && (_npc.getId() == INGENIOUS_CONTRAPTION))
|
||||
{
|
||||
broadcastNpcSay(_npc, Say2.NPC_SHOUT, NpcStringId.S1_MINUTE_S_ARE_REMAINING, Integer.toString((countdownTime / 60000)));
|
||||
broadcastNpcSay(_npc, ChatType.NPC_SHOUT, NpcStringId.S1_MINUTE_S_ARE_REMAINING, Integer.toString((countdownTime / 60000)));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1257,35 +1257,35 @@ public final class TullyWorkshop extends AbstractNpcAI
|
||||
{
|
||||
if ((_npc != null) && (_npc.getId() == INGENIOUS_CONTRAPTION))
|
||||
{
|
||||
broadcastNpcSay(_npc, Say2.NPC_SHOUT, NpcStringId.S1_SECOND_S_REMAINING, Integer.toString((countdownTime / 1000)));
|
||||
broadcastNpcSay(_npc, ChatType.NPC_SHOUT, NpcStringId.S1_SECOND_S_REMAINING, Integer.toString((countdownTime / 1000)));
|
||||
}
|
||||
}
|
||||
}, 60000, 10000);
|
||||
broadcastNpcSay(postMortemSpawn.get(0), Say2.NPC_SHOUT, NpcStringId.DETONATOR_INITIALIZATION_TIME_SET_FOR_S1_MINUTE_S_FROM_NOW, Integer.toString((countdownTime / 60000)));
|
||||
broadcastNpcSay(postMortemSpawn.get(0), ChatType.NPC_SHOUT, NpcStringId.DETONATOR_INITIALIZATION_TIME_SET_FOR_S1_MINUTE_S_FROM_NOW, Integer.toString((countdownTime / 60000)));
|
||||
}
|
||||
else if ((npcId == TIMETWISTER_GOLEM) && (_countdown != null))
|
||||
{
|
||||
if (getRandom(1000) >= 700)
|
||||
{
|
||||
broadcastNpcSay(npc, Say2.NPC_ALL, NpcStringId.A_FATAL_ERROR_HAS_OCCURRED);
|
||||
broadcastNpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.A_FATAL_ERROR_HAS_OCCURRED);
|
||||
if (countdownTime > 180000)
|
||||
{
|
||||
countdownTime = Math.max(countdownTime - 180000, 60000);
|
||||
if ((postMortemSpawn != null) && (postMortemSpawn.size() > 0) && (postMortemSpawn.get(0) != null) && (postMortemSpawn.get(0).getId() == INGENIOUS_CONTRAPTION))
|
||||
{
|
||||
broadcastNpcSay(postMortemSpawn.get(0), Say2.NPC_SHOUT, NpcStringId.ZZZZ_CITY_INTERFERENCE_ERROR_FORWARD_EFFECT_CREATED);
|
||||
broadcastNpcSay(postMortemSpawn.get(0), ChatType.NPC_SHOUT, NpcStringId.ZZZZ_CITY_INTERFERENCE_ERROR_FORWARD_EFFECT_CREATED);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
broadcastNpcSay(npc, Say2.NPC_ALL, NpcStringId.TIME_RIFT_DEVICE_ACTIVATION_SUCCESSFUL);
|
||||
broadcastNpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.TIME_RIFT_DEVICE_ACTIVATION_SUCCESSFUL);
|
||||
if ((countdownTime > 0) && (countdownTime <= 420000))
|
||||
{
|
||||
countdownTime += 180000;
|
||||
if ((postMortemSpawn != null) && (postMortemSpawn.size() > 0) && (postMortemSpawn.get(0) != null) && (postMortemSpawn.get(0).getId() == INGENIOUS_CONTRAPTION))
|
||||
{
|
||||
broadcastNpcSay(postMortemSpawn.get(0), Say2.NPC_SHOUT, NpcStringId.ZZZZ_CITY_INTERFERENCE_ERROR_RECURRENCE_EFFECT_CREATED);
|
||||
broadcastNpcSay(postMortemSpawn.get(0), ChatType.NPC_SHOUT, NpcStringId.ZZZZ_CITY_INTERFERENCE_ERROR_RECURRENCE_EFFECT_CREATED);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1367,11 +1367,11 @@ public final class TullyWorkshop extends AbstractNpcAI
|
||||
|
||||
if (((npc.getId() - 22404) == 3) || ((npc.getId() - 22404) == 6))
|
||||
{
|
||||
broadcastNpcSay(npc, Say2.NPC_SHOUT, NpcStringId.I_FAILED_PLEASE_FORGIVE_ME_DARION);
|
||||
broadcastNpcSay(npc, ChatType.NPC_SHOUT, NpcStringId.I_FAILED_PLEASE_FORGIVE_ME_DARION);
|
||||
}
|
||||
else
|
||||
{
|
||||
broadcastNpcSay(npc, Say2.NPC_SHOUT, NpcStringId.S1_I_LL_BE_BACK_DON_T_GET_COMFORTABLE, killer.getName());
|
||||
broadcastNpcSay(npc, ChatType.NPC_SHOUT, NpcStringId.S1_I_LL_BE_BACK_DON_T_GET_COMFORTABLE, killer.getName());
|
||||
}
|
||||
}
|
||||
else if (((npcId == TEMENIR) || (npcId == DRAXIUS) || (npcId == KIRETCENAH)) && spawnedFollowers.contains(npc))
|
||||
@@ -1446,7 +1446,7 @@ public final class TullyWorkshop extends AbstractNpcAI
|
||||
}
|
||||
else if ((npcId >= SERVANT_FIRST) && (npcId <= SERVANT_LAST) && (skillId == 5392))
|
||||
{
|
||||
broadcastNpcSay(npc, Say2.NPC_ALL, NpcStringId.S1_THANK_YOU_FOR_GIVING_ME_YOUR_LIFE, player.getName());
|
||||
broadcastNpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.S1_THANK_YOU_FOR_GIVING_ME_YOUR_LIFE, player.getName());
|
||||
final int dmg = (int) (player.getCurrentHp() / (npc.getId() - 22404));
|
||||
player.reduceCurrentHp(dmg, null, null);
|
||||
npc.setCurrentHp((npc.getCurrentHp() + 10) - (npc.getId() - 22404));
|
||||
|
Reference in New Issue
Block a user