Improved Labyrinth of Belis.
This commit is contained in:
parent
c7cc582632
commit
45ddc085b9
@ -143,22 +143,20 @@ public final class LabyrinthOfBelis extends AbstractInstance
|
||||
world.setStatus(6);
|
||||
world.openCloseDoor(DOOR_ID_ROOM_3_2, true);
|
||||
|
||||
final L2Npc generator = addSpawn(ELECTRICITY_GENERATOR, GENERATOR_SPAWN, false, 0, true, world.getId());
|
||||
generator.reduceCurrentHp(1, npc, null);
|
||||
generator.setDisplayEffect(1);
|
||||
final L2Npc generator = addSpawn(ELECTRICITY_GENERATOR, GENERATOR_SPAWN, false, 0, false, world.getId());
|
||||
generator.disableCoreAI(true);
|
||||
|
||||
npc.setScriptValue(1);
|
||||
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.DON_T_COME_BACK_HERE);
|
||||
npc.setTarget(generator);
|
||||
|
||||
npc.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, INFILTRATION_OFFICER_ROOM_3_INSIDE);
|
||||
|
||||
getTimers().addTimer("GENERATOR_EFFECT", 300, generator, null);
|
||||
getTimers().addRepeatingTimer("MESSAGE", 7000, npc, null);
|
||||
getTimers().addRepeatingTimer("ATTACKERS", 12500, npc, player);
|
||||
|
||||
((L2Attackable) npc).addDamageHate(generator, 0, 9999);
|
||||
npc.reduceCurrentHp(1, generator, null); // TODO: Find better way for attack
|
||||
((L2Attackable) npc).addDamageHate(generator, 0, 9999); // TODO: Find better way for attack
|
||||
npc.reduceCurrentHp(1, generator, null);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -564,6 +562,11 @@ public final class LabyrinthOfBelis extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GENERATOR_EFFECT":
|
||||
{
|
||||
npc.setDisplayEffect(1);
|
||||
break;
|
||||
}
|
||||
case "SPAWN_NEMERTESS":
|
||||
{
|
||||
addSpawn(NEMERTESS, NEMERTESS_SPAWN, false, 0, false, world.getId());
|
||||
|
@ -6539,7 +6539,7 @@
|
||||
<walk ground="40" />
|
||||
<run ground="120" />
|
||||
</speed>
|
||||
<attack physical="37.82932" magical="25.83252" critical="8" attackSpeed="253" range="1100" type="BOW" distance="10" width="0" random="5" accuracy="0" />
|
||||
<attack physical="37.82932" magical="25.83252" critical="8" attackSpeed="253" range="550" type="BOW" distance="10" width="0" random="5" accuracy="0" />
|
||||
<defence physical="81.34791" magical="59.52687" />
|
||||
<abnormalResist physical="10" magical="10" />
|
||||
</stats>
|
||||
|
@ -143,22 +143,20 @@ public final class LabyrinthOfBelis extends AbstractInstance
|
||||
world.setStatus(6);
|
||||
world.openCloseDoor(DOOR_ID_ROOM_3_2, true);
|
||||
|
||||
final L2Npc generator = addSpawn(ELECTRICITY_GENERATOR, GENERATOR_SPAWN, false, 0, true, world.getId());
|
||||
generator.reduceCurrentHp(1, npc, null);
|
||||
generator.setDisplayEffect(1);
|
||||
final L2Npc generator = addSpawn(ELECTRICITY_GENERATOR, GENERATOR_SPAWN, false, 0, false, world.getId());
|
||||
generator.disableCoreAI(true);
|
||||
|
||||
npc.setScriptValue(1);
|
||||
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.DON_T_COME_BACK_HERE);
|
||||
npc.setTarget(generator);
|
||||
|
||||
npc.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, INFILTRATION_OFFICER_ROOM_3_INSIDE);
|
||||
|
||||
getTimers().addTimer("GENERATOR_EFFECT", 300, generator, null);
|
||||
getTimers().addRepeatingTimer("MESSAGE", 7000, npc, null);
|
||||
getTimers().addRepeatingTimer("ATTACKERS", 12500, npc, player);
|
||||
|
||||
((L2Attackable) npc).addDamageHate(generator, 0, 9999);
|
||||
npc.reduceCurrentHp(1, generator, null); // TODO: Find better way for attack
|
||||
((L2Attackable) npc).addDamageHate(generator, 0, 9999); // TODO: Find better way for attack
|
||||
npc.reduceCurrentHp(1, generator, null);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -564,6 +562,11 @@ public final class LabyrinthOfBelis extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GENERATOR_EFFECT":
|
||||
{
|
||||
npc.setDisplayEffect(1);
|
||||
break;
|
||||
}
|
||||
case "SPAWN_NEMERTESS":
|
||||
{
|
||||
addSpawn(NEMERTESS, NEMERTESS_SPAWN, false, 0, false, world.getId());
|
||||
|
@ -6539,7 +6539,7 @@
|
||||
<walk ground="40" />
|
||||
<run ground="120" />
|
||||
</speed>
|
||||
<attack physical="37.82932" magical="25.83252" critical="8" attackSpeed="253" range="1100" type="BOW" distance="10" width="0" random="5" accuracy="0" />
|
||||
<attack physical="37.82932" magical="25.83252" critical="8" attackSpeed="253" range="550" type="BOW" distance="10" width="0" random="5" accuracy="0" />
|
||||
<defence physical="81.34791" magical="59.52687" />
|
||||
<abnormalResist physical="10" magical="10" />
|
||||
</stats>
|
||||
|
@ -143,22 +143,20 @@ public final class LabyrinthOfBelis extends AbstractInstance
|
||||
world.setStatus(6);
|
||||
world.openCloseDoor(DOOR_ID_ROOM_3_2, true);
|
||||
|
||||
final L2Npc generator = addSpawn(ELECTRICITY_GENERATOR, GENERATOR_SPAWN, false, 0, true, world.getId());
|
||||
generator.reduceCurrentHp(1, npc, null);
|
||||
generator.setDisplayEffect(1);
|
||||
final L2Npc generator = addSpawn(ELECTRICITY_GENERATOR, GENERATOR_SPAWN, false, 0, false, world.getId());
|
||||
generator.disableCoreAI(true);
|
||||
|
||||
npc.setScriptValue(1);
|
||||
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.DON_T_COME_BACK_HERE);
|
||||
npc.setTarget(generator);
|
||||
|
||||
npc.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, INFILTRATION_OFFICER_ROOM_3_INSIDE);
|
||||
|
||||
getTimers().addTimer("GENERATOR_EFFECT", 300, generator, null);
|
||||
getTimers().addRepeatingTimer("MESSAGE", 7000, npc, null);
|
||||
getTimers().addRepeatingTimer("ATTACKERS", 12500, npc, player);
|
||||
|
||||
((L2Attackable) npc).addDamageHate(generator, 0, 9999);
|
||||
npc.reduceCurrentHp(1, generator, null); // TODO: Find better way for attack
|
||||
((L2Attackable) npc).addDamageHate(generator, 0, 9999); // TODO: Find better way for attack
|
||||
npc.reduceCurrentHp(1, generator, null);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -563,6 +561,11 @@ public final class LabyrinthOfBelis extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GENERATOR_EFFECT":
|
||||
{
|
||||
npc.setDisplayEffect(1);
|
||||
break;
|
||||
}
|
||||
case "SPAWN_NEMERTESS":
|
||||
{
|
||||
addSpawn(NEMERTESS, NEMERTESS_SPAWN, false, 0, false, world.getId());
|
||||
|
@ -131,121 +131,101 @@ public final class Q10331_StartOfFate extends Quest
|
||||
case WARRIOR:
|
||||
{
|
||||
htmltext = "32153-15.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case KNIGHT:
|
||||
{
|
||||
htmltext = "32153-16.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case ROGUE:
|
||||
{
|
||||
htmltext = "32153-17.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case WIZARD:
|
||||
{
|
||||
htmltext = "32153-18.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case CLERIC:
|
||||
{
|
||||
htmltext = "32153-19.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case ELVEN_KNIGHT:
|
||||
{
|
||||
htmltext = "32147-14.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case ELVEN_SCOUT:
|
||||
{
|
||||
htmltext = "32147-15.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case ELVEN_WIZARD:
|
||||
{
|
||||
htmltext = "32147-16.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case ORACLE:
|
||||
{
|
||||
htmltext = "32147-17.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case PALUS_KNIGHT:
|
||||
{
|
||||
htmltext = "32160-14.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case ASSASSIN:
|
||||
{
|
||||
htmltext = "32160-15.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case DARK_WIZARD:
|
||||
{
|
||||
htmltext = "32160-16.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case SHILLIEN_ORACLE:
|
||||
{
|
||||
htmltext = "32160-17.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case ORC_RAIDER:
|
||||
{
|
||||
htmltext = "32150-14.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case ORC_MONK:
|
||||
{
|
||||
htmltext = "32150-15.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case ORC_SHAMAN:
|
||||
{
|
||||
htmltext = "32150-16.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case SCAVENGER:
|
||||
{
|
||||
htmltext = "32157-11.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case ARTISAN:
|
||||
{
|
||||
htmltext = "32157-12.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case TROOPER:
|
||||
{
|
||||
htmltext = "32146-12.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
case WARDER:
|
||||
{
|
||||
htmltext = "32146-13.htm";
|
||||
qs.exitQuest(false, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -261,6 +241,7 @@ public final class Q10331_StartOfFate extends Quest
|
||||
giveItems(player, PAULINAS_SET_D_GRADE, 1);
|
||||
giveItems(player, PROOF_OF_COURAGE, 40);
|
||||
addExpAndSp(player, 296000, 15);
|
||||
qs.exitQuest(false, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -447,6 +428,11 @@ public final class Q10331_StartOfFate extends Quest
|
||||
{
|
||||
switch (qs.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
htmltext = "32978-03.htm";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
giveItems(player, SARIL_NECKLACE, 1);
|
||||
@ -518,7 +504,7 @@ public final class Q10331_StartOfFate extends Quest
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
|
@ -6539,7 +6539,7 @@
|
||||
<walk ground="40" />
|
||||
<run ground="120" />
|
||||
</speed>
|
||||
<attack physical="37.82932" magical="25.83252" critical="8" attackSpeed="253" range="1100" type="BOW" distance="10" width="0" random="5" accuracy="0" />
|
||||
<attack physical="37.82932" magical="25.83252" critical="8" attackSpeed="253" range="550" type="BOW" distance="10" width="0" random="5" accuracy="0" />
|
||||
<defence physical="81.34791" magical="59.52687" />
|
||||
<abnormalResist physical="10" magical="10" />
|
||||
</stats>
|
||||
|
Loading…
Reference in New Issue
Block a user