Proper syntax for several methods and values.
This commit is contained in:
@@ -117,7 +117,7 @@ public class DenOfEvil extends AbstractNpcAI
|
||||
public String onSpawn(Npc npc)
|
||||
{
|
||||
npc.disableCoreAI(true);
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
final EffectZone zone = ZoneManager.getInstance().getZone(npc, EffectZone.class);
|
||||
if (zone == null)
|
||||
{
|
||||
|
||||
@@ -232,8 +232,8 @@ public class TarBeetleSpawn implements IXmlReader
|
||||
final Npc npc = spawn.doSpawn();
|
||||
spawn.stopRespawn();
|
||||
npc.setRandomWalking(false);
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setIsInvul(true);
|
||||
npc.setImmobilized(true);
|
||||
npc.setInvul(true);
|
||||
npc.disableCoreAI(true);
|
||||
npc.setScriptValue(5);
|
||||
npc.getVariables().set("zoneIndex", _index);
|
||||
|
||||
@@ -93,7 +93,7 @@ public class ZealotOfShilen extends AbstractNpcAI
|
||||
}
|
||||
else
|
||||
{
|
||||
npc.setIsInvul(true);
|
||||
npc.setInvul(true);
|
||||
((Attackable) npc).setCanReturnToSpawnPoint(false);
|
||||
cancelQuestTimer("WATCHING", npc, null);
|
||||
startQuestTimer("WATCHING", 10000, npc, null, true);
|
||||
|
||||
@@ -503,7 +503,7 @@ public class HallOfErosionAttack extends AbstractNpcAI
|
||||
if (CommonUtil.contains(NOTMOVE, npc.getId()))
|
||||
{
|
||||
npc.setRandomWalking(false);
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
}
|
||||
|
||||
final InstanceWorld tmpworld = InstanceManager.getInstance().getWorld(npc);
|
||||
|
||||
@@ -495,7 +495,7 @@ public class HallOfErosionDefence extends AbstractNpcAI
|
||||
if (CommonUtil.contains(NOTMOVE, npc.getId()))
|
||||
{
|
||||
npc.setRandomWalking(false);
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
}
|
||||
|
||||
if (npc.getId() == SEED)
|
||||
|
||||
@@ -296,7 +296,7 @@ public class HallOfSufferingAttack extends AbstractNpcAI
|
||||
}
|
||||
final Npc mob = addSpawn(TUMOR_ALIVE, TUMOR_SPAWNS[world.getStatus()][0], TUMOR_SPAWNS[world.getStatus()][1], TUMOR_SPAWNS[world.getStatus()][2], 0, false, 0, false, world.getInstanceId());
|
||||
mob.disableCoreAI(true);
|
||||
mob.setIsImmobilized(true);
|
||||
mob.setImmobilized(true);
|
||||
mob.setCurrentHp(mob.getMaxHp() * 0.5);
|
||||
world.npcList.put(mob, false);
|
||||
world.incStatus();
|
||||
@@ -307,8 +307,8 @@ public class HallOfSufferingAttack extends AbstractNpcAI
|
||||
world.incStatus();
|
||||
world.klodekus = addSpawn(TWIN_SPAWNS[0][0], TWIN_SPAWNS[0][1], TWIN_SPAWNS[0][2], TWIN_SPAWNS[0][3], 0, false, 0, false, world.getInstanceId());
|
||||
world.klanikus = addSpawn(TWIN_SPAWNS[1][0], TWIN_SPAWNS[1][1], TWIN_SPAWNS[1][2], TWIN_SPAWNS[1][3], 0, false, 0, false, world.getInstanceId());
|
||||
world.klanikus.setIsMortal(false);
|
||||
world.klodekus.setIsMortal(false);
|
||||
world.klanikus.setMortal(false);
|
||||
world.klodekus.setMortal(false);
|
||||
}
|
||||
|
||||
protected void bossSimpleDie(Npc boss)
|
||||
@@ -322,7 +322,7 @@ public class HallOfSufferingAttack extends AbstractNpcAI
|
||||
}
|
||||
// now reset currentHp to zero
|
||||
boss.setCurrentHp(0);
|
||||
boss.setIsDead(true);
|
||||
boss.setDead(true);
|
||||
}
|
||||
|
||||
// Set target to null and cancel Attack or Cast
|
||||
@@ -390,13 +390,13 @@ public class HallOfSufferingAttack extends AbstractNpcAI
|
||||
{
|
||||
if (Util.checkIfInRange(500, world.klanikus, world.klodekus, false))
|
||||
{
|
||||
world.klanikus.setIsInvul(false);
|
||||
world.klodekus.setIsInvul(false);
|
||||
world.klanikus.setInvul(false);
|
||||
world.klodekus.setInvul(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
world.klanikus.setIsInvul(true);
|
||||
world.klodekus.setIsInvul(true);
|
||||
world.klanikus.setInvul(true);
|
||||
world.klodekus.setInvul(true);
|
||||
}
|
||||
startQuestTimer("isTwinSeparated", 10000, npc, null);
|
||||
}
|
||||
@@ -415,12 +415,12 @@ public class HallOfSufferingAttack extends AbstractNpcAI
|
||||
npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, hated, 1000);
|
||||
}
|
||||
|
||||
aliveTwin.setIsInvul(true); // make other boss invul
|
||||
aliveTwin.setInvul(true); // make other boss invul
|
||||
startQuestTimer("uninvul", BOSS_INVUL_TIME, aliveTwin, null);
|
||||
}
|
||||
else if (event.equals("uninvul"))
|
||||
{
|
||||
npc.setIsInvul(false);
|
||||
npc.setInvul(false);
|
||||
}
|
||||
}
|
||||
return "";
|
||||
@@ -461,13 +461,13 @@ public class HallOfSufferingAttack extends AbstractNpcAI
|
||||
{
|
||||
if (world.klanikus.isDead())
|
||||
{
|
||||
world.klanikus.setIsDead(false);
|
||||
world.klanikus.setDead(false);
|
||||
world.klanikus.doDie(attacker);
|
||||
world.klodekus.doDie(attacker);
|
||||
}
|
||||
else if (((HSAWorld) tmpworld).klodekus.isDead())
|
||||
{
|
||||
world.klodekus.setIsDead(false);
|
||||
world.klodekus.setDead(false);
|
||||
world.klodekus.doDie(attacker);
|
||||
world.klanikus.doDie(attacker);
|
||||
}
|
||||
|
||||
@@ -296,7 +296,7 @@ public class HallOfSufferingDefence extends AbstractNpcAI
|
||||
}
|
||||
final Npc mob = addSpawn(TUMOR_ALIVE, TUMOR_SPAWNS[world.getStatus()][0], TUMOR_SPAWNS[world.getStatus()][1], TUMOR_SPAWNS[world.getStatus()][2], 0, false, 0, false, world.getInstanceId());
|
||||
mob.disableCoreAI(true);
|
||||
mob.setIsImmobilized(true);
|
||||
mob.setImmobilized(true);
|
||||
mob.setCurrentHp(mob.getMaxHp() * 0.5);
|
||||
world.npcList.put(mob, false);
|
||||
world.incStatus();
|
||||
@@ -307,8 +307,8 @@ public class HallOfSufferingDefence extends AbstractNpcAI
|
||||
world.incStatus();
|
||||
world.klodekus = addSpawn(TWIN_SPAWNS[0][0], TWIN_SPAWNS[0][1], TWIN_SPAWNS[0][2], TWIN_SPAWNS[0][3], 0, false, 0, false, world.getInstanceId());
|
||||
world.klanikus = addSpawn(TWIN_SPAWNS[1][0], TWIN_SPAWNS[1][1], TWIN_SPAWNS[1][2], TWIN_SPAWNS[1][3], 0, false, 0, false, world.getInstanceId());
|
||||
world.klanikus.setIsMortal(false);
|
||||
world.klodekus.setIsMortal(false);
|
||||
world.klanikus.setMortal(false);
|
||||
world.klodekus.setMortal(false);
|
||||
}
|
||||
|
||||
protected void bossSimpleDie(Npc boss)
|
||||
@@ -322,7 +322,7 @@ public class HallOfSufferingDefence extends AbstractNpcAI
|
||||
}
|
||||
// now reset currentHp to zero
|
||||
boss.setCurrentHp(0);
|
||||
boss.setIsDead(true);
|
||||
boss.setDead(true);
|
||||
}
|
||||
|
||||
// Set target to null and cancel Attack or Cast
|
||||
@@ -390,13 +390,13 @@ public class HallOfSufferingDefence extends AbstractNpcAI
|
||||
{
|
||||
if (Util.checkIfInRange(500, world.klanikus, world.klodekus, false))
|
||||
{
|
||||
world.klanikus.setIsInvul(false);
|
||||
world.klodekus.setIsInvul(false);
|
||||
world.klanikus.setInvul(false);
|
||||
world.klodekus.setInvul(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
world.klanikus.setIsInvul(true);
|
||||
world.klodekus.setIsInvul(true);
|
||||
world.klanikus.setInvul(true);
|
||||
world.klodekus.setInvul(true);
|
||||
}
|
||||
startQuestTimer("isTwinSeparated", 10000, npc, null);
|
||||
}
|
||||
@@ -415,12 +415,12 @@ public class HallOfSufferingDefence extends AbstractNpcAI
|
||||
npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, hated, 1000);
|
||||
}
|
||||
|
||||
aliveTwin.setIsInvul(true); // make other boss invul
|
||||
aliveTwin.setInvul(true); // make other boss invul
|
||||
startQuestTimer("uninvul", BOSS_INVUL_TIME, aliveTwin, null);
|
||||
}
|
||||
else if (event.equals("uninvul"))
|
||||
{
|
||||
npc.setIsInvul(false);
|
||||
npc.setInvul(false);
|
||||
}
|
||||
}
|
||||
return "";
|
||||
@@ -461,13 +461,13 @@ public class HallOfSufferingDefence extends AbstractNpcAI
|
||||
{
|
||||
if (world.klanikus.isDead())
|
||||
{
|
||||
world.klanikus.setIsDead(false);
|
||||
world.klanikus.setDead(false);
|
||||
world.klanikus.doDie(attacker);
|
||||
world.klodekus.doDie(attacker);
|
||||
}
|
||||
else if (((HSDWorld) tmpworld).klodekus.isDead())
|
||||
{
|
||||
world.klodekus.setIsDead(false);
|
||||
world.klodekus.setDead(false);
|
||||
world.klodekus.doDie(attacker);
|
||||
world.klanikus.doDie(attacker);
|
||||
}
|
||||
|
||||
@@ -550,13 +550,13 @@ public class HeartInfinityAttack extends AbstractNpcAI
|
||||
if (CommonUtil.contains(NOTMOVE, npc.getId()))
|
||||
{
|
||||
npc.setRandomWalking(false);
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
}
|
||||
|
||||
if (npc.getId() == HOUND)
|
||||
{
|
||||
npc.setRandomWalking(false);
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
}
|
||||
|
||||
final InstanceWorld tmpworld = InstanceManager.getInstance().getWorld(npc);
|
||||
@@ -600,7 +600,7 @@ public class HeartInfinityAttack extends AbstractNpcAI
|
||||
houndBlocked = true;
|
||||
for (Npc hound : world.hounds)
|
||||
{
|
||||
hound.setIsInvul(true);
|
||||
hound.setInvul(true);
|
||||
}
|
||||
broadCastPacket(world, new ExShowScreenMessage(NpcStringId.WITH_ALL_CONNECTIONS_TO_THE_TUMOR_SEVERED_EKIMUS_HAS_LOST_ITS_POWER_TO_CONTROL_THE_FERAL_HOUND, 2, 8000));
|
||||
}
|
||||
@@ -708,7 +708,7 @@ public class HeartInfinityAttack extends AbstractNpcAI
|
||||
houndBlocked = false;
|
||||
for (Npc hound : world.hounds)
|
||||
{
|
||||
hound.setIsInvul(false);
|
||||
hound.setInvul(false);
|
||||
}
|
||||
broadCastPacket(world, new ExShowScreenMessage(NpcStringId.WITH_THE_CONNECTION_TO_THE_TUMOR_RESTORED_EKIMUS_HAS_REGAINED_CONTROL_OVER_THE_FERAL_HOUND, 2, 8000));
|
||||
}
|
||||
|
||||
@@ -552,7 +552,7 @@ public class HeartInfinityDefence extends AbstractNpcAI
|
||||
if (CommonUtil.contains(NOTMOVE, npc.getId()))
|
||||
{
|
||||
npc.setRandomWalking(false);
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
}
|
||||
|
||||
final InstanceWorld tmpworld = InstanceManager.getInstance().getWorld(npc);
|
||||
|
||||
@@ -1093,7 +1093,7 @@ public class SeedOfDestruction extends AbstractNpcAI
|
||||
{
|
||||
world.npcList.put(npc, false);
|
||||
}
|
||||
npc.setIsImmobilized(TIAT == mob[0] ? true : isImmobilized);
|
||||
npc.setImmobilized(TIAT == mob[0] ? true : isImmobilized);
|
||||
npc.setRandomWalking(false);
|
||||
if (npc.isAttackable())
|
||||
{
|
||||
|
||||
@@ -78,7 +78,7 @@ public class Amaskari extends AbstractNpcAI
|
||||
npc.broadcastSay(ChatType.NPC_GENERAL, AMASKARI_NPCSTRING_ID[2]);
|
||||
((MonsterInstance) npc).clearAggroList();
|
||||
((MonsterInstance) npc).getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
npc.setIsInvul(false);
|
||||
npc.setInvul(false);
|
||||
// npc.doCast(INVINCIBILITY.getSkill())
|
||||
}
|
||||
else if (event.equalsIgnoreCase("onspawn_msg") && (npc != null) && !npc.isDead())
|
||||
@@ -144,7 +144,7 @@ public class Amaskari extends AbstractNpcAI
|
||||
{
|
||||
master.broadcastSay(ChatType.NPC_GENERAL, AMASKARI_NPCSTRING_ID[3]);
|
||||
// master.doCast(INVINCIBILITY.getSkill())
|
||||
master.setIsInvul(true);
|
||||
master.setInvul(true);
|
||||
startQuestTimer("stop_toggle", 10000, master, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class Chimeras extends AbstractNpcAI
|
||||
HellboundEngine.getInstance().updateTrust(3, true);
|
||||
}
|
||||
|
||||
npc.setIsDead(true);
|
||||
npc.setDead(true);
|
||||
if (npc.getId() == CELTUS)
|
||||
{
|
||||
npc.dropItem(caster, CONTAINED_LIFE_FORCE, CONTAINED_LIFE_FORCE_AMOUNT);
|
||||
|
||||
@@ -1374,7 +1374,7 @@ public class TullyWorkshop extends AbstractNpcAI
|
||||
{
|
||||
if (pillarSpawn != null)
|
||||
{
|
||||
pillarSpawn.getLastSpawn().setIsInvul(false);
|
||||
pillarSpawn.getLastSpawn().setInvul(false);
|
||||
}
|
||||
|
||||
handleDoorsOnDeath();
|
||||
@@ -1404,13 +1404,13 @@ public class TullyWorkshop extends AbstractNpcAI
|
||||
{
|
||||
if (pillarSpawn != null)
|
||||
{
|
||||
pillarSpawn.getLastSpawn().setIsInvul(true);
|
||||
pillarSpawn.getLastSpawn().setInvul(true);
|
||||
}
|
||||
handleDoorsOnRespawn();
|
||||
}
|
||||
else if (npc.getId() == PILLAR)
|
||||
{
|
||||
npc.setIsInvul(RaidBossSpawnManager.getInstance().getRaidBossStatusId(DARION) == RaidBossStatus.ALIVE);
|
||||
npc.setInvul(RaidBossSpawnManager.getInstance().getRaidBossStatusId(DARION) == RaidBossStatus.ALIVE);
|
||||
}
|
||||
return super.onSpawn(npc);
|
||||
}
|
||||
|
||||
@@ -279,7 +279,7 @@ public class MonasteryOfSilence extends AbstractNpcAI
|
||||
@Override
|
||||
public String onSpawn(Npc npc)
|
||||
{
|
||||
npc.setIsInvul(true);
|
||||
npc.setInvul(true);
|
||||
npc.disableCoreAI(true);
|
||||
cancelQuestTimer("TRAINING", npc, null);
|
||||
startQuestTimer("TRAINING", 30000, npc, null, true);
|
||||
|
||||
@@ -147,7 +147,7 @@ public class PlainsOfLizardman extends AbstractNpcAI
|
||||
if (npc.isScriptValue(0))
|
||||
{
|
||||
npc.setScriptValue(1);
|
||||
npc.setIsInvul(true);
|
||||
npc.setInvul(true);
|
||||
World.getInstance().forEachVisibleObjectInRange(npc, Attackable.class, 1000, monster ->
|
||||
{
|
||||
if ((monster.getId() == TANTA_MAGICIAN) || (monster.getId() == TANTA_SCOUT))
|
||||
|
||||
@@ -101,7 +101,7 @@ public class SelMahumSquad extends AbstractNpcAI
|
||||
{
|
||||
if (npc.isMonster())
|
||||
{
|
||||
npc.setIsInvul(false);
|
||||
npc.setInvul(false);
|
||||
npc.getVariables().remove("INVUL_REMOVE_TIMER_STARTED");
|
||||
if ((player != null) && !player.isDead() && npc.isInSurroundingRegion(player))
|
||||
{
|
||||
@@ -114,7 +114,7 @@ public class SelMahumSquad extends AbstractNpcAI
|
||||
{
|
||||
if (!npc.isDead())
|
||||
{
|
||||
npc.setIsInvul(true);
|
||||
npc.setInvul(true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -341,7 +341,7 @@ public class SelMahumSquad extends AbstractNpcAI
|
||||
{
|
||||
if (npc.getId() == CHEF)
|
||||
{
|
||||
npc.setIsInvul(false);
|
||||
npc.setInvul(false);
|
||||
}
|
||||
else if (npc.getId() == FIRE)
|
||||
{
|
||||
|
||||
@@ -178,7 +178,7 @@ public class SilentValley extends AbstractNpcAI
|
||||
{
|
||||
if (npc.getId() == CHEST)
|
||||
{
|
||||
npc.setIsInvul(true);
|
||||
npc.setInvul(true);
|
||||
startQuestTimer("CLEAR_EVENT", 300000, npc, null);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -151,8 +151,8 @@ public class Beleth extends AbstractNpcAI
|
||||
ZONE.getCharactersInside().forEach(c ->
|
||||
{
|
||||
c.disableAllSkills();
|
||||
c.setIsInvul(true);
|
||||
c.setIsImmobilized(true);
|
||||
c.setInvul(true);
|
||||
c.setImmobilized(true);
|
||||
});
|
||||
|
||||
_camera1 = addSpawn(29120, new Location(16323, 213142, -9357));
|
||||
@@ -234,8 +234,8 @@ public class Beleth extends AbstractNpcAI
|
||||
{
|
||||
_beleth = addSpawn(REAL_BELETH, new Location(16321, 214211, -9352, 49369));
|
||||
_beleth.disableAllSkills();
|
||||
_beleth.setIsInvul(true);
|
||||
_beleth.setIsImmobilized(true);
|
||||
_beleth.setInvul(true);
|
||||
_beleth.setImmobilized(true);
|
||||
|
||||
startQuestTimer("SPAWN11", 200, null, null);
|
||||
break;
|
||||
@@ -316,8 +316,8 @@ public class Beleth extends AbstractNpcAI
|
||||
{
|
||||
fakeBeleth.spawnMe();
|
||||
fakeBeleth.disableAllSkills();
|
||||
fakeBeleth.setIsInvul(true);
|
||||
fakeBeleth.setIsImmobilized(true);
|
||||
fakeBeleth.setInvul(true);
|
||||
fakeBeleth.setImmobilized(true);
|
||||
}
|
||||
|
||||
startQuestTimer("SPAWN20", 3000, null, null);
|
||||
@@ -370,8 +370,8 @@ public class Beleth extends AbstractNpcAI
|
||||
for (Creature c : ZONE.getCharactersInside())
|
||||
{
|
||||
c.enableAllSkills();
|
||||
c.setIsInvul(false);
|
||||
c.setIsImmobilized(false);
|
||||
c.setInvul(false);
|
||||
c.setImmobilized(false);
|
||||
}
|
||||
|
||||
_lastAttack = System.currentTimeMillis();
|
||||
@@ -398,7 +398,7 @@ public class Beleth extends AbstractNpcAI
|
||||
|
||||
if (a >= 2)
|
||||
{
|
||||
npc.setIsOverloaded(true);
|
||||
npc.setOverloaded(true);
|
||||
a = 0;
|
||||
}
|
||||
}
|
||||
@@ -411,7 +411,7 @@ public class Beleth extends AbstractNpcAI
|
||||
ym[i] = (int) ((1700 * Math.sin((i * 1.57) + 0.78)) + 213170);
|
||||
|
||||
npc = addSpawn(FAKE_BELETH, new Location(xm[i], ym[i], -9357, 49152));
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
|
||||
_minions.add(npc);
|
||||
}
|
||||
@@ -419,22 +419,22 @@ public class Beleth extends AbstractNpcAI
|
||||
xm[4] = (xm[0] + xm[1]) / 2;
|
||||
ym[4] = (ym[0] + ym[1]) / 2;
|
||||
npc = addSpawn(FAKE_BELETH, new Location(xm[4], ym[4], -9357, 49152));
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
_minions.add(npc);
|
||||
xm[5] = (xm[1] + xm[2]) / 2;
|
||||
ym[5] = (ym[1] + ym[2]) / 2;
|
||||
npc = addSpawn(FAKE_BELETH, new Location(xm[5], ym[5], -9357, 49152));
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
_minions.add(npc);
|
||||
xm[6] = (xm[2] + xm[3]) / 2;
|
||||
ym[6] = (ym[2] + ym[3]) / 2;
|
||||
npc = addSpawn(FAKE_BELETH, new Location(xm[6], ym[6], -9357, 49152));
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
_minions.add(npc);
|
||||
xm[7] = (xm[3] + xm[0]) / 2;
|
||||
ym[7] = (ym[3] + ym[0]) / 2;
|
||||
npc = addSpawn(FAKE_BELETH, new Location(xm[7], ym[7], -9357, 49152));
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
_minions.add(npc);
|
||||
|
||||
xm[8] = (xm[0] + xm[4]) / 2;
|
||||
@@ -538,8 +538,8 @@ public class Beleth extends AbstractNpcAI
|
||||
for (Creature c : ZONE.getCharactersInside())
|
||||
{
|
||||
c.enableAllSkills();
|
||||
c.setIsInvul(false);
|
||||
c.setIsImmobilized(false);
|
||||
c.setInvul(false);
|
||||
c.setImmobilized(false);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -762,14 +762,14 @@ public class Beleth extends AbstractNpcAI
|
||||
for (Creature c : ZONE.getCharactersInside())
|
||||
{
|
||||
c.disableAllSkills();
|
||||
c.setIsInvul(true);
|
||||
c.setIsImmobilized(true);
|
||||
c.setInvul(true);
|
||||
c.setImmobilized(true);
|
||||
}
|
||||
|
||||
_beleth = addSpawn(REAL_BELETH, new Location(16323, 213170, -9357, 49152));
|
||||
_beleth.disableAllSkills();
|
||||
_beleth.setIsInvul(true);
|
||||
_beleth.setIsImmobilized(true);
|
||||
_beleth.setInvul(true);
|
||||
_beleth.setImmobilized(true);
|
||||
|
||||
_priest = addSpawn(ELF, new Location(_beleth));
|
||||
_priest.setShowSummonAnimation(true);
|
||||
|
||||
@@ -226,7 +226,7 @@ public class Core extends AbstractNpcAI
|
||||
{
|
||||
if (npc.getId() == CORE)
|
||||
{
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
}
|
||||
return super.onSpawn(npc);
|
||||
}
|
||||
|
||||
@@ -241,8 +241,8 @@ public class QueenAnt extends AbstractNpcAI
|
||||
{
|
||||
case LARVA:
|
||||
{
|
||||
mob.setIsImmobilized(true);
|
||||
mob.setIsMortal(false);
|
||||
mob.setImmobilized(true);
|
||||
mob.setMortal(false);
|
||||
mob.setIsRaidMinion(true);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -149,8 +149,8 @@ public class Sailren extends AbstractNpcAI
|
||||
{
|
||||
final RaidBossInstance sailren = (RaidBossInstance) addSpawn(SAILREN, 27549, -6638, -2008, 0, false, 0);
|
||||
final Npc movieNpc = addSpawn(MOVIE_NPC, sailren.getX(), sailren.getY(), sailren.getZ() + 30, 0, false, 26000);
|
||||
sailren.setIsInvul(true);
|
||||
sailren.setIsImmobilized(true);
|
||||
sailren.setInvul(true);
|
||||
sailren.setImmobilized(true);
|
||||
zone.broadcastPacket(new SpecialCamera(movieNpc, 60, 110, 30, 4000, 1500, 20000, 0, 65, 1, 0, 0));
|
||||
|
||||
startQuestTimer("ATTACK", 24600, sailren, null);
|
||||
@@ -205,8 +205,8 @@ public class Sailren extends AbstractNpcAI
|
||||
}
|
||||
case "ATTACK":
|
||||
{
|
||||
npc.setIsInvul(false);
|
||||
npc.setIsImmobilized(false);
|
||||
npc.setInvul(false);
|
||||
npc.setImmobilized(false);
|
||||
break;
|
||||
}
|
||||
case "CLEAR_STATUS":
|
||||
|
||||
@@ -142,7 +142,7 @@ public class Valakas extends AbstractNpcAI
|
||||
GrandBossManager.getInstance().setBossStatus(VALAKAS, DORMANT);
|
||||
GrandBossManager.getInstance().addBoss((GrandBossInstance) valakas);
|
||||
|
||||
valakas.setIsInvul(true);
|
||||
valakas.setInvul(true);
|
||||
valakas.setRunning();
|
||||
|
||||
valakas.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||
@@ -175,7 +175,7 @@ public class Valakas extends AbstractNpcAI
|
||||
else
|
||||
{
|
||||
valakas.teleToLocation(VALAKAS_HIDDEN_LOC);
|
||||
valakas.setIsInvul(true);
|
||||
valakas.setInvul(true);
|
||||
valakas.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||
|
||||
// Start timer to lock entry after 30 minutes
|
||||
@@ -313,7 +313,7 @@ public class Valakas extends AbstractNpcAI
|
||||
else if (event.equalsIgnoreCase("spawn_10"))
|
||||
{
|
||||
GrandBossManager.getInstance().setBossStatus(VALAKAS, FIGHTING);
|
||||
npc.setIsInvul(false);
|
||||
npc.setInvul(false);
|
||||
|
||||
startQuestTimer("regen_task", 60000, npc, null, true);
|
||||
startQuestTimer("skill_task", 2000, npc, null, true);
|
||||
@@ -367,7 +367,7 @@ public class Valakas extends AbstractNpcAI
|
||||
{
|
||||
final Npc valakas = addSpawn(VALAKAS, VALAKAS_REGENERATION_LOC, false, 0);
|
||||
valakas.teleToLocation(VALAKAS_HIDDEN_LOC);
|
||||
valakas.setIsInvul(true);
|
||||
valakas.setInvul(true);
|
||||
valakas.setRunning();
|
||||
valakas.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||
GrandBossManager.getInstance().addBoss((GrandBossInstance) valakas);
|
||||
@@ -497,14 +497,14 @@ public class Valakas extends AbstractNpcAI
|
||||
if (Util.checkIfInRange((skill.getCastRange() < 600) ? 600 : skill.getCastRange(), npc, _actualVictim, true))
|
||||
{
|
||||
npc.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||
npc.setIsCastingNow(true);
|
||||
npc.setCastingNow(true);
|
||||
npc.setTarget(_actualVictim);
|
||||
npc.doCast(skill);
|
||||
}
|
||||
else
|
||||
{
|
||||
npc.getAI().setIntention(CtrlIntention.AI_INTENTION_FOLLOW, _actualVictim, null);
|
||||
npc.setIsCastingNow(false);
|
||||
npc.setCastingNow(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ public class Ballista extends AbstractNpcAI
|
||||
public String onSpawn(Npc npc)
|
||||
{
|
||||
npc.disableCoreAI(true);
|
||||
npc.setIsMortal(false);
|
||||
npc.setMortal(false);
|
||||
return super.onSpawn(npc);
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ public class FairyTrees extends AbstractNpcAI
|
||||
public String onSpawn(Npc npc)
|
||||
{
|
||||
npc.setRandomWalking(false);
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
return super.onSpawn(npc);
|
||||
}
|
||||
|
||||
|
||||
@@ -163,7 +163,7 @@ public class OracleTeleport extends AbstractNpcAI
|
||||
if (CommonUtil.contains(TEMPLE_PRIEST, npcId) && (qs.getState() == State.STARTED))
|
||||
{
|
||||
player.teleToLocation(RETURN_LOCS[qs.getInt("id")]);
|
||||
player.setIsIn7sDungeon(false);
|
||||
player.setIn7sDungeon(false);
|
||||
qs.exitQuest(true);
|
||||
}
|
||||
else if (CommonUtil.contains(RIFT_POSTERS, npcId) && (qs.getState() == State.STARTED))
|
||||
@@ -176,7 +176,7 @@ public class OracleTeleport extends AbstractNpcAI
|
||||
{
|
||||
player.teleToLocation(getRandomEntry(RETURN_LOCS));
|
||||
htmltext = "rift_back_unknown.htm";
|
||||
player.setIsIn7sDungeon(false);
|
||||
player.setIn7sDungeon(false);
|
||||
qs.exitQuest(true);
|
||||
}
|
||||
}
|
||||
@@ -186,12 +186,12 @@ public class OracleTeleport extends AbstractNpcAI
|
||||
if (CommonUtil.contains(TOWN_DAWN, id))
|
||||
{
|
||||
player.teleToLocation(new Location(-80157, 111344, -4901));
|
||||
player.setIsIn7sDungeon(true);
|
||||
player.setIn7sDungeon(true);
|
||||
}
|
||||
else if (CommonUtil.contains(TOWN_DUSK, id))
|
||||
{
|
||||
player.teleToLocation(new Location(-81261, 86531, -5157));
|
||||
player.setIsIn7sDungeon(true);
|
||||
player.setIn7sDungeon(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -295,7 +295,7 @@ public class OracleTeleport extends AbstractNpcAI
|
||||
qs.set("id", Integer.toString(i));
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ACCEPT);
|
||||
player.teleToLocation(new Location(-80157, 111344, -4901));
|
||||
player.setIsIn7sDungeon(true);
|
||||
player.setIn7sDungeon(true);
|
||||
}
|
||||
if (CommonUtil.contains(TOWN_DUSK, npcId))
|
||||
{
|
||||
@@ -312,7 +312,7 @@ public class OracleTeleport extends AbstractNpcAI
|
||||
qs.set("id", Integer.toString(i));
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ACCEPT);
|
||||
player.teleToLocation(new Location(-81261, 86531, -5157));
|
||||
player.setIsIn7sDungeon(true);
|
||||
player.setIn7sDungeon(true);
|
||||
}
|
||||
else if ((npcId >= 31494) && (npcId <= 31507))
|
||||
{
|
||||
|
||||
@@ -136,8 +136,8 @@ public class PrisonGuards extends AbstractNpcAI
|
||||
{
|
||||
if (npc.getId() == GUARD_HEAD)
|
||||
{
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setIsInvul(true);
|
||||
npc.setImmobilized(true);
|
||||
npc.setInvul(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@ public class Remnants extends AbstractNpcAI
|
||||
@Override
|
||||
public String onSpawn(Npc npc)
|
||||
{
|
||||
npc.setIsMortal(false);
|
||||
npc.setMortal(false);
|
||||
return super.onSpawn(npc);
|
||||
}
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ public class SiegeGuards extends AbstractNpcAI
|
||||
// npc.setRandomWalking(false);
|
||||
if ((npc.getTemplate().getBaseAttackType() != WeaponType.SWORD) && (npc.getTemplate().getBaseAttackType() != WeaponType.POLE))
|
||||
{
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
}
|
||||
final Castle castle = npc.getCastle();
|
||||
final Fort fortress = npc.getFort();
|
||||
|
||||
@@ -391,7 +391,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
|
||||
{
|
||||
cancelSiegeTask(); // No time limit now
|
||||
_firstPhase = false;
|
||||
_hall.getSiegeZone().setIsActive(false);
|
||||
_hall.getSiegeZone().setActive(false);
|
||||
for (int doorId : INNER_DOORS_TO_OPEN)
|
||||
{
|
||||
_hall.openCloseDoor(doorId, true);
|
||||
@@ -414,7 +414,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
|
||||
doSpawns(e.getKey(), e.getValue());
|
||||
}
|
||||
|
||||
_hall.getSiegeZone().setIsActive(true);
|
||||
_hall.getSiegeZone().setActive(true);
|
||||
}, 300000);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -250,7 +250,7 @@ public class Rabbits extends Event
|
||||
final Npc npc = addSpawn(npcId, x, y, z, heading, randomOffSet, despawnDelay);
|
||||
if (npc.getId() == CHEST)
|
||||
{
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setImmobilized(true);
|
||||
npc.disableCoreAI(true);
|
||||
npc.setInvisible(true);
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@ public class AdminEffects implements IAdminCommandHandler
|
||||
if (!player.isGM())
|
||||
{
|
||||
player.startAbnormalVisualEffect(true, AbnormalVisualEffect.PARALYZE);
|
||||
player.setIsParalyzed(true);
|
||||
player.setParalyzed(true);
|
||||
player.startParalyze();
|
||||
}
|
||||
});
|
||||
@@ -245,7 +245,7 @@ public class AdminEffects implements IAdminCommandHandler
|
||||
World.getInstance().forEachVisibleObject(activeChar, PlayerInstance.class, player ->
|
||||
{
|
||||
player.stopAbnormalVisualEffect(true, AbnormalVisualEffect.PARALYZE);
|
||||
player.setIsParalyzed(false);
|
||||
player.setParalyzed(false);
|
||||
|
||||
});
|
||||
}
|
||||
@@ -275,7 +275,7 @@ public class AdminEffects implements IAdminCommandHandler
|
||||
{
|
||||
creature.startAbnormalVisualEffect(true, AbnormalVisualEffect.FLESH_STONE);
|
||||
}
|
||||
creature.setIsParalyzed(true);
|
||||
creature.setParalyzed(true);
|
||||
creature.startParalyze();
|
||||
}
|
||||
}
|
||||
@@ -310,7 +310,7 @@ public class AdminEffects implements IAdminCommandHandler
|
||||
{
|
||||
creature.stopAbnormalVisualEffect(true, AbnormalVisualEffect.FLESH_STONE);
|
||||
}
|
||||
creature.setIsParalyzed(false);
|
||||
creature.setParalyzed(false);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
@@ -112,7 +112,7 @@ public class AdminGamePoints implements IAdminCommandHandler
|
||||
activeChar.sendPacket(html);
|
||||
}
|
||||
|
||||
private boolean addGamePoints(PlayerInstance admin, String val)
|
||||
private boolean addGamePoints(PlayerInstance admin, String value)
|
||||
{
|
||||
final WorldObject target = admin.getTarget();
|
||||
PlayerInstance player = null;
|
||||
@@ -126,7 +126,7 @@ public class AdminGamePoints implements IAdminCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
final Long points = Long.parseLong(val);
|
||||
final Long points = Long.parseLong(value);
|
||||
if (points < 1)
|
||||
{
|
||||
admin.sendMessage("Invalid game point count.");
|
||||
@@ -148,7 +148,7 @@ public class AdminGamePoints implements IAdminCommandHandler
|
||||
return true;
|
||||
}
|
||||
|
||||
private boolean setGamePoints(PlayerInstance admin, String val)
|
||||
private boolean setGamePoints(PlayerInstance admin, String value)
|
||||
{
|
||||
final WorldObject target = admin.getTarget();
|
||||
PlayerInstance player = null;
|
||||
@@ -162,7 +162,7 @@ public class AdminGamePoints implements IAdminCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
final Long points = Long.parseLong(val);
|
||||
final Long points = Long.parseLong(value);
|
||||
if (points < 0)
|
||||
{
|
||||
admin.sendMessage("Invalid game point count.");
|
||||
@@ -174,7 +174,7 @@ public class AdminGamePoints implements IAdminCommandHandler
|
||||
return true;
|
||||
}
|
||||
|
||||
private boolean subtractGamePoints(PlayerInstance admin, String val)
|
||||
private boolean subtractGamePoints(PlayerInstance admin, String value)
|
||||
{
|
||||
final WorldObject target = admin.getTarget();
|
||||
PlayerInstance player = null;
|
||||
@@ -188,7 +188,7 @@ public class AdminGamePoints implements IAdminCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
final Long points = Long.parseLong(val);
|
||||
final Long points = Long.parseLong(value);
|
||||
if (points < 1)
|
||||
{
|
||||
admin.sendMessage("Invalid game point count.");
|
||||
|
||||
@@ -64,12 +64,12 @@ public class AdminInvul implements IAdminCommandHandler
|
||||
String text;
|
||||
if (activeChar.isInvul())
|
||||
{
|
||||
activeChar.setIsInvul(false);
|
||||
activeChar.setInvul(false);
|
||||
text = activeChar.getName() + " is now mortal.";
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.setIsInvul(true);
|
||||
activeChar.setInvul(true);
|
||||
text = activeChar.getName() + " is now invulnerable.";
|
||||
}
|
||||
BuilderUtil.sendSysMessage(activeChar, text);
|
||||
|
||||
@@ -142,14 +142,14 @@ public class AdminKill implements IAdminCommandHandler
|
||||
if (target.isInvul())
|
||||
{
|
||||
targetIsInvul = true;
|
||||
target.setIsInvul(false);
|
||||
target.setInvul(false);
|
||||
}
|
||||
|
||||
target.reduceCurrentHp(target.getMaxHp() + 1, activeChar, null);
|
||||
|
||||
if (targetIsInvul)
|
||||
{
|
||||
target.setIsInvul(true);
|
||||
target.setInvul(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ public class AdminQuest implements IAdminCommandHandler
|
||||
{
|
||||
for (QuestTimer timer : list)
|
||||
{
|
||||
timers += "<tr><td colspan=\"4\"><table width=270 border=0 bgcolor=131210><tr><td width=270><font color=\"LEVEL\">" + timer.getName() + ":</font> <font color=00FF00>Active: " + timer.getIsActive() + " Repeatable: " + timer.getIsRepeating() + " Player: " + timer.getPlayer() + " Npc: " + timer.getNpc() + "</font></td></tr></table></td></tr>";
|
||||
timers += "<tr><td colspan=\"4\"><table width=270 border=0 bgcolor=131210><tr><td width=270><font color=\"LEVEL\">" + timer.getName() + ":</font> <font color=00FF00>Active: " + timer.isActive() + " Repeatable: " + timer.isRepeating() + " Player: " + timer.getPlayer() + " Npc: " + timer.getNpc() + "</font></td></tr></table></td></tr>";
|
||||
counter++;
|
||||
if (counter > 10)
|
||||
{
|
||||
|
||||
@@ -433,9 +433,9 @@ public class AdminSkill implements IAdminCommandHandler
|
||||
|
||||
/**
|
||||
* @param activeChar the active Game Master.
|
||||
* @param val
|
||||
* @param value
|
||||
*/
|
||||
private void adminAddSkill(PlayerInstance activeChar, String val)
|
||||
private void adminAddSkill(PlayerInstance activeChar, String value)
|
||||
{
|
||||
final WorldObject target = activeChar.getTarget();
|
||||
if ((target == null) || !target.isPlayer())
|
||||
@@ -445,7 +445,7 @@ public class AdminSkill implements IAdminCommandHandler
|
||||
return;
|
||||
}
|
||||
final PlayerInstance player = target.getActingPlayer();
|
||||
final StringTokenizer st = new StringTokenizer(val);
|
||||
final StringTokenizer st = new StringTokenizer(value);
|
||||
if (st.countTokens() != 2)
|
||||
{
|
||||
showMainPage(activeChar);
|
||||
|
||||
@@ -339,7 +339,7 @@ public class AdminTeleport implements IAdminCommandHandler
|
||||
|
||||
player.teleToLocation(MapRegionManager.getInstance().getMapRegionByName(regionName).getSpawnLoc(), true);
|
||||
player.setInstanceId(0);
|
||||
player.setIsIn7sDungeon(false);
|
||||
player.setIn7sDungeon(false);
|
||||
}
|
||||
|
||||
private void teleportTo(PlayerInstance activeChar, String coords)
|
||||
|
||||
@@ -80,7 +80,7 @@ public class Loto implements IBypassHandler
|
||||
* <li>Send a Server->Client ActionFailed to the PlayerInstance in order to avoid that the client wait another packet</li><BR>
|
||||
* @param player The PlayerInstance that talk with the NpcInstance
|
||||
* @param npc Npc loto instance
|
||||
* @param val The number of the page of the NpcInstance to display
|
||||
* @param value The number of the page of the NpcInstance to display
|
||||
*/
|
||||
// 0 - first buy lottery ticket window
|
||||
// 1-20 - buttons
|
||||
@@ -89,19 +89,19 @@ public class Loto implements IBypassHandler
|
||||
// 23 - current lottery jackpot
|
||||
// 24 - Previous winning numbers/Prize claim
|
||||
// >24 - check lottery ticket by item object id
|
||||
public static void showLotoWindow(PlayerInstance player, Npc npc, int val)
|
||||
public static void showLotoWindow(PlayerInstance player, Npc npc, int value)
|
||||
{
|
||||
final int npcId = npc.getTemplate().getId();
|
||||
String filename;
|
||||
SystemMessage sm;
|
||||
final NpcHtmlMessage html = new NpcHtmlMessage(npc.getObjectId());
|
||||
|
||||
if (val == 0) // 0 - first buy lottery ticket window
|
||||
if (value == 0) // 0 - first buy lottery ticket window
|
||||
{
|
||||
filename = (npc.getHtmlPath(npcId, 1));
|
||||
html.setFile(player, filename);
|
||||
}
|
||||
else if ((val >= 1) && (val <= 21)) // 1-20 - buttons, 21 - second buy lottery ticket window
|
||||
else if ((value >= 1) && (value <= 21)) // 1-20 - buttons, 21 - second buy lottery ticket window
|
||||
{
|
||||
if (!Lottery.getInstance().isStarted())
|
||||
{
|
||||
@@ -124,7 +124,7 @@ public class Loto implements IBypassHandler
|
||||
// counting buttons and unsetting button if found
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
if (player.getLoto(i) == val)
|
||||
if (player.getLoto(i) == value)
|
||||
{
|
||||
// unsetting button
|
||||
player.setLoto(i, 0);
|
||||
@@ -137,13 +137,13 @@ public class Loto implements IBypassHandler
|
||||
}
|
||||
|
||||
// if not rearched limit 5 and not unseted value
|
||||
if ((count < 5) && (found == 0) && (val <= 20))
|
||||
if ((count < 5) && (found == 0) && (value <= 20))
|
||||
{
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
if (player.getLoto(i) == 0)
|
||||
{
|
||||
player.setLoto(i, val);
|
||||
player.setLoto(i, value);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -174,7 +174,7 @@ public class Loto implements IBypassHandler
|
||||
html.replace(search, replace);
|
||||
}
|
||||
}
|
||||
else if (val == 22) // 22 - selected ticket with 5 numbers
|
||||
else if (value == 22) // 22 - selected ticket with 5 numbers
|
||||
{
|
||||
if (!Lottery.getInstance().isStarted())
|
||||
{
|
||||
@@ -242,12 +242,12 @@ public class Loto implements IBypassHandler
|
||||
filename = (npc.getHtmlPath(npcId, 6));
|
||||
html.setFile(player, filename);
|
||||
}
|
||||
else if (val == 23) // 23 - current lottery jackpot
|
||||
else if (value == 23) // 23 - current lottery jackpot
|
||||
{
|
||||
filename = (npc.getHtmlPath(npcId, 3));
|
||||
html.setFile(player, filename);
|
||||
}
|
||||
else if (val == 24) // 24 - Previous winning numbers/Prize claim
|
||||
else if (value == 24) // 24 - Previous winning numbers/Prize claim
|
||||
{
|
||||
filename = (npc.getHtmlPath(npcId, 4));
|
||||
html.setFile(player, filename);
|
||||
@@ -305,15 +305,15 @@ public class Loto implements IBypassHandler
|
||||
}
|
||||
html.replace("%result%", message);
|
||||
}
|
||||
else if (val == 25) // 25 - lottery instructions
|
||||
else if (value == 25) // 25 - lottery instructions
|
||||
{
|
||||
filename = (npc.getHtmlPath(npcId, 2));
|
||||
html.setFile(player, filename);
|
||||
}
|
||||
else if (val > 25) // >25 - check lottery ticket by item object id
|
||||
else if (value > 25) // >25 - check lottery ticket by item object id
|
||||
{
|
||||
final int lotonumber = Lottery.getInstance().getId();
|
||||
final ItemInstance item = player.getInventory().getItemByObjectId(val);
|
||||
final ItemInstance item = player.getInventory().getItemByObjectId(value);
|
||||
if ((item == null) || (item.getId() != 4442) || (item.getCustomType1() >= lotonumber))
|
||||
{
|
||||
return;
|
||||
|
||||
@@ -78,7 +78,7 @@ public class RentPet implements IBypassHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void tryRentPet(PlayerInstance player, int val)
|
||||
public static void tryRentPet(PlayerInstance player, int value)
|
||||
{
|
||||
if ((player == null) || player.hasSummon() || player.isMounted() || player.isRentedPet() || player.isTransformed() || player.isCursedWeaponEquipped())
|
||||
{
|
||||
@@ -106,10 +106,10 @@ public class RentPet implements IBypassHandler
|
||||
1800
|
||||
};
|
||||
|
||||
if (val > 10)
|
||||
if (value > 10)
|
||||
{
|
||||
petId = 12526;
|
||||
val -= 10;
|
||||
value -= 10;
|
||||
price /= 2;
|
||||
}
|
||||
else
|
||||
@@ -117,13 +117,13 @@ public class RentPet implements IBypassHandler
|
||||
petId = 12621;
|
||||
}
|
||||
|
||||
if ((val < 1) || (val > 4))
|
||||
if ((value < 1) || (value > 4))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
price *= cost[val - 1];
|
||||
final int time = ridetime[val - 1];
|
||||
price *= cost[value - 1];
|
||||
final int time = ridetime[value - 1];
|
||||
|
||||
if (!player.reduceAdena("Rent", (long) price, player.getLastFolkNPC(), true))
|
||||
{
|
||||
|
||||
@@ -68,12 +68,12 @@ public class Wear implements IBypassHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
private void showWearWindow(PlayerInstance player, int val)
|
||||
private void showWearWindow(PlayerInstance player, int value)
|
||||
{
|
||||
final BuyListHolder buyList = BuyListData.getInstance().getBuyList(val);
|
||||
final BuyListHolder buyList = BuyListData.getInstance().getBuyList(value);
|
||||
if (buyList == null)
|
||||
{
|
||||
LOGGER.warning("BuyList not found! BuyListId:" + val);
|
||||
LOGGER.warning("BuyList not found! BuyListId:" + value);
|
||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ public class HomeBoard implements IParseBoardHandler
|
||||
player.disableAllSkills();
|
||||
player.sendPacket(new ShowBoard());
|
||||
player.destroyItemByItemId("CB_Teleport", Config.COMMUNITYBOARD_CURRENCY, Config.COMMUNITYBOARD_TELEPORT_PRICE, player, true);
|
||||
player.setIsIn7sDungeon(false);
|
||||
player.setIn7sDungeon(false);
|
||||
player.setInstanceId(0);
|
||||
player.teleToLocation(Config.COMMUNITY_AVAILABLE_TELEPORTS.get(teleBuypass), 0);
|
||||
ThreadPool.schedule(player::enableAllSkills, 3000);
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectType;
|
||||
import org.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.stats.Formulas;
|
||||
import org.l2jmobius.gameserver.model.stats.Stats;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* Death Link effect implementation.
|
||||
@@ -84,7 +84,7 @@ public class DeathLink extends AbstractEffect
|
||||
}
|
||||
|
||||
// Shield Deflect Magic: Reflect all damage on caster.
|
||||
if (target.getStat().calcStat(Stats.VENGEANCE_SKILL_MAGIC_DAMAGE, 0, target, info.getSkill()) > Rnd.get(100))
|
||||
if (target.getStat().calcStat(Stat.VENGEANCE_SKILL_MAGIC_DAMAGE, 0, target, info.getSkill()) > Rnd.get(100))
|
||||
{
|
||||
creature.reduceCurrentHp(damage, target, info.getSkill());
|
||||
creature.notifyDamageReceived(damage, target, info.getSkill(), mcrit, false);
|
||||
|
||||
@@ -28,9 +28,9 @@ import org.l2jmobius.gameserver.model.items.Weapon;
|
||||
import org.l2jmobius.gameserver.model.items.type.WeaponType;
|
||||
import org.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.BaseStats;
|
||||
import org.l2jmobius.gameserver.model.stats.BaseStat;
|
||||
import org.l2jmobius.gameserver.model.stats.Formulas;
|
||||
import org.l2jmobius.gameserver.model.stats.Stats;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* Energy Attack effect implementation.
|
||||
@@ -139,18 +139,18 @@ public class EnergyAttack extends AbstractEffect
|
||||
|
||||
if (target.isPlayer())
|
||||
{
|
||||
defence *= target.getStat().calcStat(Stats.PVP_PHYS_SKILL_DEF, 1.0);
|
||||
defence *= target.getStat().calcStat(Stat.PVP_PHYS_SKILL_DEF, 1.0);
|
||||
}
|
||||
|
||||
damage = attack / defence;
|
||||
damage *= damageMultiplier;
|
||||
if (target.isPlayer())
|
||||
{
|
||||
damage *= attacker.getStat().calcStat(Stats.PVP_PHYS_SKILL_DMG, 1.0);
|
||||
damage = attacker.getStat().calcStat(Stats.PHYSICAL_SKILL_POWER, damage);
|
||||
damage *= attacker.getStat().calcStat(Stat.PVP_PHYS_SKILL_DMG, 1.0);
|
||||
damage = attacker.getStat().calcStat(Stat.PHYSICAL_SKILL_POWER, damage);
|
||||
}
|
||||
|
||||
critical = (BaseStats.STR.calcBonus(attacker) * _criticalChance) > (Rnd.nextDouble() * 100);
|
||||
critical = (BaseStat.STR.calcBonus(attacker) * _criticalChance) > (Rnd.nextDouble() * 100);
|
||||
if (critical)
|
||||
{
|
||||
damage *= 2;
|
||||
|
||||
@@ -69,7 +69,7 @@ public class Escape extends AbstractEffect
|
||||
else
|
||||
{
|
||||
info.getEffected().teleToLocation(MapRegionManager.getInstance().getTeleToLocation(info.getEffected(), _escapeType), true);
|
||||
info.getEffected().getActingPlayer().setIsIn7sDungeon(false);
|
||||
info.getEffected().getActingPlayer().setIn7sDungeon(false);
|
||||
info.getEffected().setInstanceId(0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ public class FakeDeath extends AbstractEffect
|
||||
{
|
||||
if (info.getEffected().isPlayer())
|
||||
{
|
||||
info.getEffected().getActingPlayer().setIsFakeDeath(false);
|
||||
info.getEffected().getActingPlayer().setFakeDeath(false);
|
||||
info.getEffected().getActingPlayer().setRecentFakeDeath(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.stats.Stats;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
||||
/**
|
||||
@@ -54,7 +54,7 @@ public class FocusSouls extends AbstractEffect
|
||||
}
|
||||
|
||||
final PlayerInstance target = info.getEffected().getActingPlayer();
|
||||
final int maxSouls = (int) target.calcStat(Stats.MAX_SOULS, 0, null, null);
|
||||
final int maxSouls = (int) target.calcStat(Stat.MAX_SOULS, 0, null, null);
|
||||
if (maxSouls > 0)
|
||||
{
|
||||
final int amount = _charge;
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.items.type.CrystalType;
|
||||
import org.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.stats.Formulas;
|
||||
import org.l2jmobius.gameserver.model.stats.Stats;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
|
||||
@@ -100,7 +100,7 @@ public class Heal extends AbstractEffect
|
||||
if (!info.getSkill().isStatic())
|
||||
{
|
||||
amount += staticShotBonus + Math.sqrt(mAtkMul * creature.getMAtk(creature, null));
|
||||
amount = target.calcStat(Stats.HEAL_EFFECT, amount, null, null);
|
||||
amount = target.calcStat(Stat.HEAL_EFFECT, amount, null, null);
|
||||
// Heal critic, since CT2.3 Gracia Final
|
||||
if (info.getSkill().isMagic() && Formulas.calcMCrit(creature.getMCriticalHit(target, info.getSkill())))
|
||||
{
|
||||
|
||||
@@ -41,12 +41,12 @@ public class ImmobileBuff extends Buff
|
||||
@Override
|
||||
public void onExit(BuffInfo info)
|
||||
{
|
||||
info.getEffected().setIsImmobilized(false);
|
||||
info.getEffected().setImmobilized(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(BuffInfo info)
|
||||
{
|
||||
info.getEffected().setIsImmobilized(true);
|
||||
info.getEffected().setImmobilized(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ public class ImmobilePetBuff extends AbstractEffect
|
||||
@Override
|
||||
public void onExit(BuffInfo info)
|
||||
{
|
||||
info.getEffected().setIsImmobilized(false);
|
||||
info.getEffected().setImmobilized(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -51,7 +51,7 @@ public class ImmobilePetBuff extends AbstractEffect
|
||||
{
|
||||
if (info.getEffected().isSummon() && info.getEffector().isPlayer() && (((Summon) info.getEffected()).getOwner() == info.getEffector()))
|
||||
{
|
||||
info.getEffected().setIsImmobilized(true);
|
||||
info.getEffected().setImmobilized(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,7 +26,7 @@ import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectType;
|
||||
import org.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.stats.Formulas;
|
||||
import org.l2jmobius.gameserver.model.stats.Stats;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* Magical Attack effect implementation.
|
||||
@@ -84,7 +84,7 @@ public class MagicalAttack extends AbstractEffect
|
||||
}
|
||||
|
||||
// Shield Deflect Magic: Reflect all damage on caster.
|
||||
if (target.getStat().calcStat(Stats.VENGEANCE_SKILL_MAGIC_DAMAGE, 0, target, info.getSkill()) > Rnd.get(100))
|
||||
if (target.getStat().calcStat(Stat.VENGEANCE_SKILL_MAGIC_DAMAGE, 0, target, info.getSkill()) > Rnd.get(100))
|
||||
{
|
||||
creature.reduceCurrentHp(damage, target, info.getSkill());
|
||||
creature.notifyDamageReceived(damage, target, info.getSkill(), mcrit, false);
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectType;
|
||||
import org.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.stats.Formulas;
|
||||
import org.l2jmobius.gameserver.model.stats.Stats;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* Magical Attack By Abnormal effect implementation.
|
||||
@@ -86,7 +86,7 @@ public class MagicalAttackByAbnormal extends AbstractEffect
|
||||
}
|
||||
|
||||
// Shield Deflect Magic: Reflect all damage on caster.
|
||||
if (target.getStat().calcStat(Stats.VENGEANCE_SKILL_MAGIC_DAMAGE, 0, target, info.getSkill()) > Rnd.get(100))
|
||||
if (target.getStat().calcStat(Stat.VENGEANCE_SKILL_MAGIC_DAMAGE, 0, target, info.getSkill()) > Rnd.get(100))
|
||||
{
|
||||
creature.reduceCurrentHp(damage, target, info.getSkill());
|
||||
creature.notifyDamageReceived(damage, target, info.getSkill(), mcrit, false);
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectType;
|
||||
import org.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.stats.Formulas;
|
||||
import org.l2jmobius.gameserver.model.stats.Stats;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* Magical Soul Attack effect implementation.
|
||||
@@ -90,7 +90,7 @@ public class MagicalSoulAttack extends AbstractEffect
|
||||
}
|
||||
|
||||
// Shield Deflect Magic: Reflect all damage on caster.
|
||||
if (target.getStat().calcStat(Stats.VENGEANCE_SKILL_MAGIC_DAMAGE, 0, target, info.getSkill()) > Rnd.get(100))
|
||||
if (target.getStat().calcStat(Stat.VENGEANCE_SKILL_MAGIC_DAMAGE, 0, target, info.getSkill()) > Rnd.get(100))
|
||||
{
|
||||
creature.reduceCurrentHp(damage, target, info.getSkill());
|
||||
creature.notifyDamageReceived(damage, target, info.getSkill(), mcrit, false);
|
||||
|
||||
@@ -21,7 +21,7 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.stats.Stats;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
|
||||
@@ -59,7 +59,7 @@ public class ManaHeal extends AbstractEffect
|
||||
|
||||
if (!info.getSkill().isStatic())
|
||||
{
|
||||
amount = target.calcStat(Stats.MANA_CHARGE, amount, null, null);
|
||||
amount = target.calcStat(Stat.MANA_CHARGE, amount, null, null);
|
||||
}
|
||||
|
||||
// Prevents overheal and negative amount
|
||||
|
||||
@@ -22,7 +22,7 @@ import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectType;
|
||||
import org.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.stats.Stats;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
|
||||
@@ -66,7 +66,7 @@ public class ManaHealByLevel extends AbstractEffect
|
||||
|
||||
// recharged mp influenced by difference between target level and skill level
|
||||
// if target is within 5 levels or lower then skill level there's no penalty.
|
||||
amount = target.calcStat(Stats.MANA_CHARGE, amount, null, null);
|
||||
amount = target.calcStat(Stat.MANA_CHARGE, amount, null, null);
|
||||
if (target.getLevel() > info.getSkill().getMagicLevel())
|
||||
{
|
||||
final int lvlDiff = target.getLevel() - info.getSkill().getMagicLevel();
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.l2jmobius.gameserver.model.actor.stat.CreatureStat;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.stats.Stats;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
import org.l2jmobius.gameserver.model.stats.functions.FuncAdd;
|
||||
import org.l2jmobius.gameserver.model.stats.functions.FuncMul;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
@@ -77,7 +77,7 @@ public class MaxCp extends AbstractEffect
|
||||
{
|
||||
case DIFF:
|
||||
{
|
||||
charStat.getActiveChar().addStatFunc(new FuncAdd(Stats.MAX_CP, 1, this, _power, null));
|
||||
charStat.getActiveChar().addStatFunc(new FuncAdd(Stat.MAX_CP, 1, this, _power, null));
|
||||
if (_heal)
|
||||
{
|
||||
effected.setCurrentCp((currentCp + _power));
|
||||
@@ -87,7 +87,7 @@ public class MaxCp extends AbstractEffect
|
||||
case PER:
|
||||
{
|
||||
final double maxCp = effected.getMaxCp();
|
||||
charStat.getActiveChar().addStatFunc(new FuncMul(Stats.MAX_CP, 1, this, _power, null));
|
||||
charStat.getActiveChar().addStatFunc(new FuncMul(Stat.MAX_CP, 1, this, _power, null));
|
||||
if (_heal)
|
||||
{
|
||||
amount = (_power - 1) * maxCp;
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.l2jmobius.gameserver.model.actor.stat.CreatureStat;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.stats.Stats;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
import org.l2jmobius.gameserver.model.stats.functions.FuncAdd;
|
||||
import org.l2jmobius.gameserver.model.stats.functions.FuncMul;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
@@ -78,7 +78,7 @@ public class MaxHp extends AbstractEffect
|
||||
case DIFF:
|
||||
{
|
||||
|
||||
charStat.getActiveChar().addStatFunc(new FuncAdd(Stats.MAX_HP, 1, this, _power, null));
|
||||
charStat.getActiveChar().addStatFunc(new FuncAdd(Stat.MAX_HP, 1, this, _power, null));
|
||||
if (_heal)
|
||||
{
|
||||
effected.setCurrentHp((currentHp + _power));
|
||||
@@ -88,7 +88,7 @@ public class MaxHp extends AbstractEffect
|
||||
case PER:
|
||||
{
|
||||
final double maxHp = effected.getMaxHp();
|
||||
charStat.getActiveChar().addStatFunc(new FuncMul(Stats.MAX_HP, 1, this, _power, null));
|
||||
charStat.getActiveChar().addStatFunc(new FuncMul(Stat.MAX_HP, 1, this, _power, null));
|
||||
if (_heal)
|
||||
{
|
||||
amount = (_power - 1) * maxHp;
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.l2jmobius.gameserver.model.fishing.FishingRod;
|
||||
import org.l2jmobius.gameserver.model.items.Weapon;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.stats.Stats;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
|
||||
@@ -96,7 +96,7 @@ public class Pumping extends AbstractEffect
|
||||
}
|
||||
final FishingRod fishingRod = FishingRodsData.getInstance().getFishingRod(weaponItem.getId());
|
||||
final double gradeBonus = fishingRod.getFishingRodLevel() * 0.1; // TODO: Check this formula (is guessed)
|
||||
int dmg = (int) ((fishingRod.getFishingRodDamage() + player.calcStat(Stats.FISHING_EXPERTISE, 1, null, null) + _power) * gradeBonus * ss);
|
||||
int dmg = (int) ((fishingRod.getFishingRodDamage() + player.calcStat(Stat.FISHING_EXPERTISE, 1, null, null) + _power) * gradeBonus * ss);
|
||||
// Penalty 5% less damage dealt
|
||||
if (player.getSkillLevel(1315) <= (info.getSkill().getLevel() - 2)) // 1315 - Fish Expertise
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.l2jmobius.gameserver.model.fishing.FishingRod;
|
||||
import org.l2jmobius.gameserver.model.items.Weapon;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.stats.Stats;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
|
||||
@@ -96,7 +96,7 @@ public class Reeling extends AbstractEffect
|
||||
}
|
||||
final FishingRod fishingRod = FishingRodsData.getInstance().getFishingRod(weaponItem.getId());
|
||||
final double gradeBonus = fishingRod.getFishingRodLevel() * 0.1; // TODO: Check this formula (is guessed)
|
||||
int dmg = (int) ((fishingRod.getFishingRodDamage() + player.calcStat(Stats.FISHING_EXPERTISE, 1, null, null) + _power) * gradeBonus * ss);
|
||||
int dmg = (int) ((fishingRod.getFishingRodDamage() + player.calcStat(Stat.FISHING_EXPERTISE, 1, null, null) + _power) * gradeBonus * ss);
|
||||
// Penalty 5% less damage dealt
|
||||
if (player.getSkillLevel(1315) <= (info.getSkill().getLevel() - 2)) // 1315 - Fish Expertise
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.playable.OnPlayableExpChanged;
|
||||
import org.l2jmobius.gameserver.model.events.listeners.ConsumerEventListener;
|
||||
import org.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import org.l2jmobius.gameserver.model.stats.Stats;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ExSpawnEmitter;
|
||||
|
||||
@@ -59,7 +59,7 @@ public class SoulEating extends AbstractEffect
|
||||
if (playable.isPlayer() && (exp >= _expNeeded))
|
||||
{
|
||||
final PlayerInstance player = playable.getActingPlayer();
|
||||
final int maxSouls = (int) player.calcStat(Stats.MAX_SOULS, 0, null, null);
|
||||
final int maxSouls = (int) player.calcStat(Stat.MAX_SOULS, 0, null, null);
|
||||
if (player.getChargedSouls() >= maxSouls)
|
||||
{
|
||||
playable.sendPacket(SystemMessageId.SOUL_CANNOT_BE_ABSORBED_ANYMORE);
|
||||
|
||||
@@ -128,7 +128,7 @@ public class SummonNpc extends AbstractEffect
|
||||
}
|
||||
}
|
||||
|
||||
effectPoint.setIsInvul(true);
|
||||
effectPoint.setInvul(true);
|
||||
effectPoint.setSummoner(player);
|
||||
effectPoint.spawnMe(x, y, z);
|
||||
_despawnDelay = NpcData.getInstance().getTemplate(_npcId).getParameters().getInt("despawn_time") * 1000;
|
||||
|
||||
@@ -84,7 +84,7 @@ public class SummonTrap extends AbstractEffect
|
||||
final TrapInstance trap = new TrapInstance(npcTemplate, player, _despawnTime);
|
||||
trap.setCurrentHp(trap.getMaxHp());
|
||||
trap.setCurrentMp(trap.getMaxMp());
|
||||
trap.setIsInvul(true);
|
||||
trap.setInvul(true);
|
||||
trap.setHeading(player.getHeading());
|
||||
trap.spawnMe(player.getX(), player.getY(), player.getZ());
|
||||
player.setTrap(trap);
|
||||
|
||||
@@ -139,9 +139,9 @@ public class Unstuck implements IUserCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
_player.setIsIn7sDungeon(false);
|
||||
_player.setIn7sDungeon(false);
|
||||
_player.enableAllSkills();
|
||||
_player.setIsCastingNow(false);
|
||||
_player.setCastingNow(false);
|
||||
_player.setInstanceId(0);
|
||||
_player.teleToLocation(TeleportWhereType.TOWN);
|
||||
}
|
||||
|
||||
@@ -504,9 +504,9 @@ public class Wedding implements IVoicedCommandHandler
|
||||
return;
|
||||
}
|
||||
|
||||
_player.setIsIn7sDungeon(_to7sDungeon);
|
||||
_player.setIn7sDungeon(_to7sDungeon);
|
||||
_player.enableAllSkills();
|
||||
_player.setIsCastingNow(false);
|
||||
_player.setCastingNow(false);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
@@ -359,7 +359,7 @@ public class CavernOfThePirateCaptain extends AbstractInstance
|
||||
manageScreenMsg(world, NpcStringId.WHO_DARES_AWAKEN_THE_MIGHTY_ZAKEN);
|
||||
}
|
||||
world.getParameters().getObject("zaken", Npc.class).setInvisible(false);
|
||||
world.getParameters().getObject("zaken", Npc.class).setIsParalyzed(false);
|
||||
world.getParameters().getObject("zaken", Npc.class).setParalyzed(false);
|
||||
spawnNpc(world.getParameters().getBoolean("is83", false) ? DOLL_BLADER_83 : DOLL_BLADER_60, world.getParameters().getInt("zakenRoom", 0), player, world);
|
||||
spawnNpc(world.getParameters().getBoolean("is83", false) ? PIRATES_ZOMBIE_83 : PIRATES_ZOMBIE_60, world.getParameters().getInt("zakenRoom", 0), player, world);
|
||||
spawnNpc(world.getParameters().getBoolean("is83", false) ? PIRATES_ZOMBIE_CAPTAIN_83 : PIRATES_ZOMBIE_CAPTAIN_60, world.getParameters().getInt("zakenRoom", 0), player, world);
|
||||
@@ -507,7 +507,7 @@ public class CavernOfThePirateCaptain extends AbstractInstance
|
||||
}
|
||||
final Npc zaken = spawnNpc(world.getParameters().getBoolean("is83", false) ? ZAKEN_83 : world.getParameters().getBoolean("isNight", false) ? ZAKEN_60_NIGHT : ZAKEN_60, world.getParameters().getInt("zakenRoom", 0), null, world);
|
||||
zaken.setInvisible(true);
|
||||
zaken.setIsParalyzed(true);
|
||||
zaken.setParalyzed(true);
|
||||
world.setParameter("zaken", zaken);
|
||||
}
|
||||
|
||||
|
||||
@@ -1019,7 +1019,7 @@ public class CrystalCaverns extends AbstractInstance
|
||||
}
|
||||
if ((world.dragonScaleNeed == 0) && (getRandom(100) < 80))
|
||||
{
|
||||
npc.setIsInvul(false);
|
||||
npc.setInvul(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1093,7 +1093,7 @@ public class CrystalCaverns extends AbstractInstance
|
||||
else if ((nowHp < (maxHp * 0.15)) && !world.isUsedInvulSkill && ((rand > 994) || (nowHp < (maxHp * 0.1))))
|
||||
{
|
||||
world.isUsedInvulSkill = true;
|
||||
npc.setIsInvul(true);
|
||||
npc.setInvul(true);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
@@ -1245,10 +1245,10 @@ public class CrystalCaverns extends AbstractInstance
|
||||
{
|
||||
world._camera.decayMe();
|
||||
world._camera = null;
|
||||
npc.setIsParalyzed(false);
|
||||
npc.setParalyzed(false);
|
||||
for (PlayerInstance p : world._raiders)
|
||||
{
|
||||
p.setIsParalyzed(false);
|
||||
p.setParalyzed(false);
|
||||
Throw(npc, p);
|
||||
if (p.getSummon() != null)
|
||||
{
|
||||
@@ -1287,7 +1287,7 @@ public class CrystalCaverns extends AbstractInstance
|
||||
npc.addSkill(SkillData.getInstance().getSkill(5245, 1));
|
||||
world._alarm = addSpawn(ALARM, spawnLoc[0], spawnLoc[1], spawnLoc[2], 10800, false, 0, false, world.getInstanceId());
|
||||
world._alarm.disableCoreAI(true);
|
||||
world._alarm.setIsImmobilized(true);
|
||||
world._alarm.setImmobilized(true);
|
||||
world._alarm.broadcastPacket(new CreatureSay(world._alarm, ChatType.SHOUT, NpcStringId.AN_ALARM_HAS_BEEN_SET_OFF_EVERYBODY_WILL_BE_IN_DANGER_IF_THEY_ARE_NOT_TAKEN_CARE_OF_IMMEDIATELY));
|
||||
}
|
||||
}
|
||||
@@ -1335,7 +1335,7 @@ public class CrystalCaverns extends AbstractInstance
|
||||
else if (event.equalsIgnoreCase("Baylor"))
|
||||
{
|
||||
world._baylor = addSpawn(29099, 153572, 142075, -12738, 10800, false, 0, false, world.getInstanceId());
|
||||
world._baylor.setIsParalyzed(true);
|
||||
world._baylor.setParalyzed(true);
|
||||
world._camera = addSpawn(29120, 153273, 141400, -12738, 10800, false, 0, false, world.getInstanceId());
|
||||
world._camera.broadcastPacket(new SpecialCamera(world._camera, 700, -45, 160, 500, 15200, 0, 0, 1, 0, 0));
|
||||
startQuestTimer("baylorMinions", 2000, world._baylor, null);
|
||||
@@ -1972,7 +1972,7 @@ public class CrystalCaverns extends AbstractInstance
|
||||
pet.setInstanceId(world.getInstanceId());
|
||||
pet.broadcastPacket(new ValidateLocation(pet));
|
||||
}
|
||||
p.setIsParalyzed(true);
|
||||
p.setParalyzed(true);
|
||||
p.broadcastPacket(new ValidateLocation(p));
|
||||
}
|
||||
startQuestTimer("Baylor", 30000, npc, null);
|
||||
|
||||
@@ -633,7 +633,7 @@ public class DarkCloudMansion extends AbstractInstance
|
||||
{
|
||||
if (npc.status == 0)
|
||||
{
|
||||
npc.npc.setIsInvul(true);
|
||||
npc.npc.setInvul(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -604,7 +604,7 @@ public class FinalEmperialTomb extends AbstractInstance implements IXmlReader
|
||||
}
|
||||
songEffectTask = null;
|
||||
final Npc activeScarlet = world.getParameters().getObject("activeScarlet", Npc.class);
|
||||
activeScarlet.setIsInvul(true);
|
||||
activeScarlet.setInvul(true);
|
||||
if (activeScarlet.isCastingNow())
|
||||
{
|
||||
activeScarlet.abortCast();
|
||||
@@ -850,7 +850,7 @@ public class FinalEmperialTomb extends AbstractInstance implements IXmlReader
|
||||
{
|
||||
final Npc activeScarlet = _world.getParameters().getObject("activeScarlet", Npc.class);
|
||||
activeScarlet.setRHandId(SECOND_SCARLET_WEAPON);
|
||||
activeScarlet.setIsInvul(false);
|
||||
activeScarlet.setInvul(false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -911,25 +911,25 @@ public class FinalEmperialTomb extends AbstractInstance implements IXmlReader
|
||||
case 2:
|
||||
{
|
||||
final Npc frintezzaDummy = addSpawn(29052, -87784, -155083, -9087, 16048, false, 0, false, _world.getInstanceId());
|
||||
frintezzaDummy.setIsInvul(true);
|
||||
frintezzaDummy.setIsImmobilized(true);
|
||||
frintezzaDummy.setInvul(true);
|
||||
frintezzaDummy.setImmobilized(true);
|
||||
_world.setParameter("frintezzaDummy", frintezzaDummy);
|
||||
final Npc overheadDummy = addSpawn(29052, -87784, -153298, -9175, 16384, false, 0, false, _world.getInstanceId());
|
||||
overheadDummy.setIsInvul(true);
|
||||
overheadDummy.setIsImmobilized(true);
|
||||
overheadDummy.setInvul(true);
|
||||
overheadDummy.setImmobilized(true);
|
||||
overheadDummy.setCollisionHeight(600);
|
||||
_world.setParameter("overheadDummy", overheadDummy);
|
||||
final Npc portraitDummy1 = addSpawn(29052, -89566, -153168, -9165, 16048, false, 0, false, _world.getInstanceId());
|
||||
portraitDummy1.setIsImmobilized(true);
|
||||
portraitDummy1.setIsInvul(true);
|
||||
portraitDummy1.setImmobilized(true);
|
||||
portraitDummy1.setInvul(true);
|
||||
_world.setParameter("portraitDummy1", portraitDummy1);
|
||||
final Npc portraitDummy3 = addSpawn(29052, -86004, -153168, -9165, 16048, false, 0, false, _world.getInstanceId());
|
||||
portraitDummy3.setIsImmobilized(true);
|
||||
portraitDummy3.setIsInvul(true);
|
||||
portraitDummy3.setImmobilized(true);
|
||||
portraitDummy3.setInvul(true);
|
||||
_world.setParameter("portraitDummy3", portraitDummy3);
|
||||
final Npc scarletDummy = addSpawn(29053, -87784, -153298, -9175, 16384, false, 0, false, _world.getInstanceId());
|
||||
scarletDummy.setIsInvul(true);
|
||||
scarletDummy.setIsImmobilized(true);
|
||||
scarletDummy.setInvul(true);
|
||||
scarletDummy.setImmobilized(true);
|
||||
_world.setParameter("scarletDummy", scarletDummy);
|
||||
stopPc();
|
||||
ThreadPool.schedule(new IntroTask(_world, 3), 1000);
|
||||
@@ -942,15 +942,15 @@ public class FinalEmperialTomb extends AbstractInstance implements IXmlReader
|
||||
broadCastPacket(_world, new SpecialCamera(overheadDummy, 0, 75, -89, 0, 100, 0, 0, 1, 0, 0));
|
||||
broadCastPacket(_world, new SpecialCamera(overheadDummy, 300, 90, -10, 6500, 7000, 0, 0, 1, 0, 0));
|
||||
final Npc frintezza = addSpawn(FRINTEZZA, -87780, -155086, -9080, 16384, false, 0, false, _world.getInstanceId());
|
||||
frintezza.setIsImmobilized(true);
|
||||
frintezza.setIsInvul(true);
|
||||
frintezza.setImmobilized(true);
|
||||
frintezza.setInvul(true);
|
||||
frintezza.disableAllSkills();
|
||||
_world.setParameter("frintezza", frintezza);
|
||||
final List<Npc> demons = _world.getParameters().getList("demons", Npc.class, new ArrayList<>());
|
||||
for (int[] element : PORTRAIT_SPAWNS)
|
||||
{
|
||||
final Npc demon = addSpawn(element[0] + 2, element[5], element[6], element[7], element[8], false, 0, false, _world.getInstanceId());
|
||||
demon.setIsImmobilized(true);
|
||||
demon.setImmobilized(true);
|
||||
demon.disableAllSkills();
|
||||
demons.add(demon);
|
||||
}
|
||||
@@ -1075,8 +1075,8 @@ public class FinalEmperialTomb extends AbstractInstance implements IXmlReader
|
||||
{
|
||||
final Npc activeScarlet = addSpawn(29046, -87789, -153295, -9176, 16384, false, 0, false, _world.getInstanceId());
|
||||
activeScarlet.setRHandId(FIRST_SCARLET_WEAPON);
|
||||
activeScarlet.setIsInvul(true);
|
||||
activeScarlet.setIsImmobilized(true);
|
||||
activeScarlet.setInvul(true);
|
||||
activeScarlet.setImmobilized(true);
|
||||
activeScarlet.disableAllSkills();
|
||||
broadCastPacket(_world, new SocialAction(activeScarlet.getObjectId(), 3));
|
||||
broadCastPacket(_world, new SpecialCamera(_world.getParameters().getObject("scarletDummy", Npc.class), 800, 180, 10, 1000, 10000, 0, 0, 1, 0, 0));
|
||||
@@ -1119,19 +1119,19 @@ public class FinalEmperialTomb extends AbstractInstance implements IXmlReader
|
||||
{
|
||||
for (Npc demon : _world.getAliveNpcs(DEMONS))
|
||||
{
|
||||
demon.setIsImmobilized(false);
|
||||
demon.setImmobilized(false);
|
||||
demon.enableAllSkills();
|
||||
}
|
||||
final Npc activeScarlet = _world.getParameters().getObject("activeScarlet", Npc.class);
|
||||
activeScarlet.setIsInvul(false);
|
||||
activeScarlet.setIsImmobilized(false);
|
||||
activeScarlet.setInvul(false);
|
||||
activeScarlet.setImmobilized(false);
|
||||
activeScarlet.enableAllSkills();
|
||||
activeScarlet.setRunning();
|
||||
activeScarlet.doCast(INTRO_SKILL.getSkill());
|
||||
final Npc frintezza = _world.getParameters().getObject("frintezza", Npc.class);
|
||||
frintezza.enableAllSkills();
|
||||
frintezza.disableCoreAI(true);
|
||||
frintezza.setIsMortal(false);
|
||||
frintezza.setMortal(false);
|
||||
startPc();
|
||||
ThreadPool.schedule(new DemonSpawnTask(_world), TIME_BETWEEN_DEMON_SPAWNS);
|
||||
break;
|
||||
@@ -1150,8 +1150,8 @@ public class FinalEmperialTomb extends AbstractInstance implements IXmlReader
|
||||
final Npc activeScarlet = _world.getParameters().getObject("activeScarlet", Npc.class);
|
||||
activeScarlet.abortAttack();
|
||||
activeScarlet.abortCast();
|
||||
activeScarlet.setIsInvul(true);
|
||||
activeScarlet.setIsImmobilized(true);
|
||||
activeScarlet.setInvul(true);
|
||||
activeScarlet.setImmobilized(true);
|
||||
activeScarlet.disableAllSkills();
|
||||
ThreadPool.schedule(new IntroTask(_world, 25), 7000);
|
||||
break;
|
||||
@@ -1210,8 +1210,8 @@ public class FinalEmperialTomb extends AbstractInstance implements IXmlReader
|
||||
case 30:
|
||||
{
|
||||
final Npc activeScarlet = addSpawn(SCARLET2, _world.getParameters().getInt("scarlet_x", 0), _world.getParameters().getInt("scarlet_y", 0), _world.getParameters().getInt("scarlet_z", 0), _world.getParameters().getInt("scarlet_h", 0), false, 0, false, _world.getInstanceId());
|
||||
activeScarlet.setIsInvul(true);
|
||||
activeScarlet.setIsImmobilized(true);
|
||||
activeScarlet.setInvul(true);
|
||||
activeScarlet.setImmobilized(true);
|
||||
activeScarlet.disableAllSkills();
|
||||
broadCastPacket(_world, new SpecialCamera(activeScarlet, 450, _world.getParameters().getInt("scarlet_a", 0), 12, 500, 14000, 0, 0, 1, 0, 0));
|
||||
_world.setParameter("activeScarlet", activeScarlet);
|
||||
@@ -1228,8 +1228,8 @@ public class FinalEmperialTomb extends AbstractInstance implements IXmlReader
|
||||
{
|
||||
startPc();
|
||||
final Npc activeScarlet = _world.getParameters().getObject("activeScarlet", Npc.class);
|
||||
activeScarlet.setIsInvul(false);
|
||||
activeScarlet.setIsImmobilized(false);
|
||||
activeScarlet.setInvul(false);
|
||||
activeScarlet.setImmobilized(false);
|
||||
activeScarlet.enableAllSkills();
|
||||
_world.setParameter("isVideo", false);
|
||||
break;
|
||||
@@ -1287,7 +1287,7 @@ public class FinalEmperialTomb extends AbstractInstance implements IXmlReader
|
||||
player.disableAllSkills();
|
||||
player.setTarget(null);
|
||||
player.stopMove(null);
|
||||
player.setIsImmobilized(true);
|
||||
player.setImmobilized(true);
|
||||
player.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||
}
|
||||
}
|
||||
@@ -1300,7 +1300,7 @@ public class FinalEmperialTomb extends AbstractInstance implements IXmlReader
|
||||
if ((player != null) && player.isOnline() && (player.getInstanceId() == _world.getInstanceId()))
|
||||
{
|
||||
player.enableAllSkills();
|
||||
player.setIsImmobilized(false);
|
||||
player.setImmobilized(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ public class ScarletVanHalisha extends AbstractNpcAI
|
||||
|
||||
if ((target == null) || target.isDead())
|
||||
{
|
||||
npc.setIsCastingNow(false);
|
||||
npc.setCastingNow(false);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ public class ScarletVanHalisha extends AbstractNpcAI
|
||||
{
|
||||
npc.getAI().setIntention(AI_INTENTION_IDLE);
|
||||
npc.setTarget(target);
|
||||
npc.setIsCastingNow(true);
|
||||
npc.setCastingNow(true);
|
||||
_target = null;
|
||||
npc.doCast(skill);
|
||||
}
|
||||
@@ -203,7 +203,7 @@ public class ScarletVanHalisha extends AbstractNpcAI
|
||||
{
|
||||
npc.getAI().setIntention(AI_INTENTION_FOLLOW, target, null);
|
||||
npc.getAI().setIntention(AI_INTENTION_ATTACK, target, null);
|
||||
npc.setIsCastingNow(false);
|
||||
npc.setCastingNow(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -266,7 +266,7 @@ public class IceQueensCastleBattle extends AbstractInstance
|
||||
case "STAGE_1_START":
|
||||
{
|
||||
final Npc frey = addSpawn(FREYA_THRONE, FREYA_SPAWN, false, 0, true, world.getInstanceId());
|
||||
frey.setIsMortal(false);
|
||||
frey.setMortal(false);
|
||||
manageScreenMsg(world, NpcStringId.BEGIN_STAGE_1);
|
||||
startQuestTimer("CAST_BLIZZARD", 50000, controller, null);
|
||||
world.setParameter("freya", frey);
|
||||
@@ -293,7 +293,7 @@ public class IceQueensCastleBattle extends AbstractInstance
|
||||
case "STAGE_1_PAUSE":
|
||||
{
|
||||
final GrandBossInstance frey = (GrandBossInstance) addSpawn(FREYA_SPELLING, FREYA_SPELLING_SPAWN, false, 0, true, world.getInstanceId());
|
||||
frey.setIsInvul(true);
|
||||
frey.setInvul(true);
|
||||
frey.setRandomWalking(false);
|
||||
frey.disableCoreAI(true);
|
||||
manageTimer(world, 60, NpcStringId.TIME_REMAINING_UNTIL_NEXT_BATTLE);
|
||||
@@ -449,21 +449,21 @@ public class IceQueensCastleBattle extends AbstractInstance
|
||||
{
|
||||
for (PlayerInstance players : params.getList("playersInside", PlayerInstance.class))
|
||||
{
|
||||
players.setIsInvul(false);
|
||||
players.setInvul(false);
|
||||
}
|
||||
freya.setIsInvul(false);
|
||||
freya.setInvul(false);
|
||||
freya.disableCoreAI(false);
|
||||
manageScreenMsg(world, NpcStringId.BEGIN_STAGE_4);
|
||||
final QuestGuardInstance jinia = (QuestGuardInstance) addSpawn(SUPP_JINIA, SUPP_JINIA_SPAWN, false, 0, true, world.getInstanceId());
|
||||
jinia.setRunning();
|
||||
jinia.setIsInvul(true);
|
||||
jinia.setInvul(true);
|
||||
jinia.setCanReturnToSpawnPoint(false);
|
||||
jinia.reduceCurrentHp(1, freya, null); // TODO: Find better way for attack
|
||||
freya.reduceCurrentHp(1, jinia, null);
|
||||
|
||||
final QuestGuardInstance kegor = (QuestGuardInstance) addSpawn(SUPP_KEGOR, SUPP_KEGOR_SPAWN, false, 0, true, world.getInstanceId());
|
||||
kegor.setRunning();
|
||||
kegor.setIsInvul(true);
|
||||
kegor.setInvul(true);
|
||||
kegor.setCanReturnToSpawnPoint(false);
|
||||
kegor.reduceCurrentHp(1, freya, null); // TODO: Find better way for attack
|
||||
freya.reduceCurrentHp(1, kegor, null);
|
||||
@@ -511,7 +511,7 @@ public class IceQueensCastleBattle extends AbstractInstance
|
||||
final Attackable knight = (Attackable) addSpawn(isHardMode ? KNIGHT_HARD : KNIGHT_EASY, npc.getLocation(), false, 0, false, world.getInstanceId());
|
||||
knight.getVariables().set("SPAWNED_NPC", npc);
|
||||
knight.disableCoreAI(true);
|
||||
knight.setIsImmobilized(true);
|
||||
knight.setImmobilized(true);
|
||||
knight.setDisplayEffect(1);
|
||||
knight.getSpawn().setLocation(loc);
|
||||
|
||||
@@ -528,7 +528,7 @@ public class IceQueensCastleBattle extends AbstractInstance
|
||||
final Attackable glacier = (Attackable) addSpawn(GLACIER, loc, false, 0, false, world.getInstanceId());
|
||||
glacier.setDisplayEffect(1);
|
||||
glacier.disableCoreAI(true);
|
||||
glacier.setIsImmobilized(true);
|
||||
glacier.setImmobilized(true);
|
||||
startQuestTimer("CHANGE_STATE", 1400, glacier, null);
|
||||
}
|
||||
break;
|
||||
@@ -538,7 +538,7 @@ public class IceQueensCastleBattle extends AbstractInstance
|
||||
if (npc.isCoreAIDisabled())
|
||||
{
|
||||
npc.disableCoreAI(false);
|
||||
npc.setIsImmobilized(false);
|
||||
npc.setImmobilized(false);
|
||||
npc.setDisplayEffect(2);
|
||||
manageRandomAttack(world, (Attackable) npc);
|
||||
}
|
||||
@@ -568,7 +568,7 @@ public class IceQueensCastleBattle extends AbstractInstance
|
||||
case "SUICIDE":
|
||||
{
|
||||
npc.setDisplayEffect(3);
|
||||
npc.setIsMortal(true);
|
||||
npc.setMortal(true);
|
||||
npc.doDie(null);
|
||||
break;
|
||||
}
|
||||
@@ -861,11 +861,11 @@ public class IceQueensCastleBattle extends AbstractInstance
|
||||
if ((npc.getCurrentHp() < (npc.getMaxHp() * 0.2)) && !params.getBoolean("isSupportActive", false))
|
||||
{
|
||||
world.setParameter("isSupportActive", true);
|
||||
freya.setIsInvul(true);
|
||||
freya.setInvul(true);
|
||||
freya.disableCoreAI(true);
|
||||
for (PlayerInstance players : params.getList("playersInside", PlayerInstance.class))
|
||||
{
|
||||
players.setIsInvul(true);
|
||||
players.setInvul(true);
|
||||
players.abortAttack();
|
||||
}
|
||||
manageMovie(world, Movie.SC_BOSS_KEGOR_INTRUSION);
|
||||
@@ -963,7 +963,7 @@ public class IceQueensCastleBattle extends AbstractInstance
|
||||
{
|
||||
manageRandomAttack(world, (Attackable) npc);
|
||||
npc.disableCoreAI(false);
|
||||
npc.setIsImmobilized(false);
|
||||
npc.setImmobilized(false);
|
||||
npc.setDisplayEffect(2);
|
||||
cancelQuestTimer("ICE_RUPTURE", npc, null);
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ public class PailakaDevilsLegacy extends AbstractInstance
|
||||
{
|
||||
final Npc follower = addSpawn(FOLLOWERS, loc, false, 0, false, world.getInstanceId());
|
||||
follower.disableCoreAI(true);
|
||||
follower.setIsImmobilized(true);
|
||||
follower.setImmobilized(true);
|
||||
followerslist.add(follower);
|
||||
}
|
||||
world.setParameter("followerslist", followerslist);
|
||||
|
||||
@@ -411,7 +411,7 @@ public class SSQDisciplesNecropolisPast extends AbstractInstance
|
||||
@Override
|
||||
public String onSpawn(Npc npc)
|
||||
{
|
||||
npc.setIsMortal(false);
|
||||
npc.setMortal(false);
|
||||
return super.onSpawn(npc);
|
||||
}
|
||||
|
||||
|
||||
@@ -334,8 +334,8 @@ public class Q00144_PailakaInjuredDragon extends Quest
|
||||
npc.setScriptValue(1);
|
||||
npc.abortAttack();
|
||||
npc.abortCast();
|
||||
npc.setIsInvul(true);
|
||||
npc.setIsImmobilized(true);
|
||||
npc.setInvul(true);
|
||||
npc.setImmobilized(true);
|
||||
npc.disableAllSkills();
|
||||
npc.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
|
||||
player.abortAttack();
|
||||
@@ -398,8 +398,8 @@ public class Q00144_PailakaInjuredDragon extends Quest
|
||||
}
|
||||
else if (event.equals("LATANA_INTRO_CAMERA_9"))
|
||||
{
|
||||
npc.setIsInvul(false);
|
||||
npc.setIsImmobilized(false);
|
||||
npc.setInvul(false);
|
||||
npc.setImmobilized(false);
|
||||
npc.enableAllSkills();
|
||||
npc.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, player);
|
||||
return null;
|
||||
@@ -859,7 +859,7 @@ public class Q00144_PailakaInjuredDragon extends Quest
|
||||
if (mobId == npc.getId())
|
||||
{
|
||||
final MonsterInstance monster = (MonsterInstance) npc;
|
||||
monster.setIsImmobilized(true);
|
||||
monster.setImmobilized(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Q00998_FallenAngelSelect extends Quest
|
||||
public Q00998_FallenAngelSelect()
|
||||
{
|
||||
super(998);
|
||||
setIsCustom(true);
|
||||
setCustom(true);
|
||||
addStartNpc(NATOOLS);
|
||||
addTalkId(NATOOLS);
|
||||
}
|
||||
|
||||
@@ -338,9 +338,9 @@ public class TerritoryWarSuperClass extends Quest
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setOnEnterWorld(boolean val)
|
||||
public void setOnEnterWorld(boolean value)
|
||||
{
|
||||
super.setOnEnterWorld(val);
|
||||
super.setOnEnterWorld(value);
|
||||
|
||||
for (PlayerInstance player : World.getInstance().getPlayers())
|
||||
{
|
||||
@@ -353,7 +353,7 @@ public class TerritoryWarSuperClass extends Quest
|
||||
}
|
||||
|
||||
QuestState qs = player.hasQuestState(territoryQuest.getName()) ? player.getQuestState(territoryQuest.getName()) : territoryQuest.newQuestState(player);
|
||||
if (val)
|
||||
if (value)
|
||||
{
|
||||
qs.setState(State.STARTED, false);
|
||||
qs.setCond(1);
|
||||
|
||||
Reference in New Issue
Block a user