Updated Baylor warzone AI.

Contributed by CostyKiller.
This commit is contained in:
MobiusDevelopment
2022-08-01 22:39:50 +00:00
parent 45e32751fb
commit df40a27255
20 changed files with 316 additions and 173 deletions

View File

@@ -64,24 +64,24 @@
<npc id="29213" x="153378" y="141997" z="-12736" heading="36076" /> <!-- Baylor -->
</group>
<group name="PRISON_GUARD_GROUP_1" spawnByDefault="false">
<npc id="29104" x="153360" y="141936" z="-12736" heading="8192" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153312" y="142048" z="-12736" heading="0" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153333" y="142176" z="-12736" heading="61439" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153360" y="141936" z="-12736" heading="8192" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153312" y="142048" z="-12736" heading="0" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153333" y="142176" z="-12736" heading="61439" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_2" spawnByDefault="false">
<npc id="29104" x="153727" y="141875" z="-12736" heading="24500" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153600" y="141824" z="-12736" heading="16384" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153472" y="141840" z="-12736" heading="12288" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153727" y="141875" z="-12736" heading="24500" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153600" y="141824" z="-12736" heading="16384" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153472" y="141840" z="-12736" heading="12288" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_3" spawnByDefault="false">
<npc id="29104" x="153776" y="142224" z="-12736" heading="40960" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153824" y="142112" z="-12736" heading="32768" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153808" y="141984" z="-12736" heading="28672" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153776" y="142224" z="-12736" heading="40960" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153824" y="142112" z="-12736" heading="32768" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153808" y="141984" z="-12736" heading="28672" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_4" spawnByDefault="false">
<npc id="29104" x="153424" y="142288" z="-12736" heading="57344" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153520" y="142336" z="-12736" heading="49152" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153666" y="142312" z="-12736" heading="45055" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153424" y="142288" z="-12736" heading="57344" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153520" y="142336" z="-12736" heading="49152" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153666" y="142312" z="-12736" heading="45055" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
</spawnlist>
</instance>

View File

@@ -28,7 +28,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.actor.instance.Door;
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureDeath;
import org.l2jmobius.gameserver.model.holders.ItemHolder;
import org.l2jmobius.gameserver.model.holders.SkillHolder;
import org.l2jmobius.gameserver.model.instancezone.Instance;
@@ -47,7 +46,7 @@ public class BaylorWarzone extends AbstractInstance
{
// NPCs
private static final int BAYLOR = 29213;
private static final int PRISON_GUARD = 29104;
private static final int PRISON_GUARD = 29217;
private static final int BENUSTA = 34542;
private static final int INVISIBLE_NPC_1 = 29106;
private static final int INVISIBLE_NPC_2 = 29108;
@@ -71,7 +70,7 @@ public class BaylorWarzone extends AbstractInstance
addInstanceCreatedId(TEMPLATE_ID);
addSpellFinishedId(INVISIBLE_NPC_1);
addCreatureSeeId(INVISIBLE_NPC_1);
setCreatureKillId(this::onBossKill, BAYLOR);
addKillId(BAYLOR);
}
@Override
@@ -335,6 +334,7 @@ public class BaylorWarzone extends AbstractInstance
public void onInstanceCreated(Instance instance, Player player)
{
instance.getParameters().set("INITIAL_PARTY_MEMBERS", player.getParty() != null ? player.getParty().getMemberCount() : 1);
instance.getParameters().set("ONE_BAYLOR_KILLED", false);
getTimers().addTimer("BATTLE_PORT", 3000, e ->
{
instance.getPlayers().forEach(p -> p.teleToLocation(BATTLE_PORT));
@@ -342,13 +342,13 @@ public class BaylorWarzone extends AbstractInstance
});
}
public void onBossKill(OnCreatureDeath event)
@Override
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final Npc npc = (Npc) event.getTarget();
final Instance world = npc.getInstanceWorld();
if (isInInstance(world))
{
if (world.getAliveNpcs(BAYLOR).isEmpty())
if (world.getParameters().getBoolean("ONE_BAYLOR_KILLED", false))
{
for (Player member : world.getPlayers())
{
@@ -363,9 +363,11 @@ public class BaylorWarzone extends AbstractInstance
}
else
{
world.getParameters().set("ONE_BAYLOR_KILLED", true);
world.setReenterTime();
}
}
return super.onKill(npc, killer, isSummon);
}
@Override

View File

@@ -244,7 +244,7 @@
<height normal="47" />
</collision>
</npc>
<npc id="29106" level="83" type="Monster">
<npc id="29106" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
@@ -277,7 +277,7 @@
<height normal="0.1" />
</collision>
</npc>
<npc id="29107" level="83" type="Monster">
<npc id="29107" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
@@ -310,7 +310,7 @@
<height normal="0.1" />
</collision>
</npc>
<npc id="29108" level="83" type="Monster">
<npc id="29108" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
@@ -343,7 +343,7 @@
<height normal="0.1" />
</collision>
</npc>
<npc id="29109" level="83" type="Monster">
<npc id="29109" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">

View File

@@ -64,24 +64,24 @@
<npc id="29213" x="153378" y="141997" z="-12736" heading="36076" /> <!-- Baylor -->
</group>
<group name="PRISON_GUARD_GROUP_1" spawnByDefault="false">
<npc id="29104" x="153360" y="141936" z="-12736" heading="8192" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153312" y="142048" z="-12736" heading="0" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153333" y="142176" z="-12736" heading="61439" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153360" y="141936" z="-12736" heading="8192" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153312" y="142048" z="-12736" heading="0" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153333" y="142176" z="-12736" heading="61439" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_2" spawnByDefault="false">
<npc id="29104" x="153727" y="141875" z="-12736" heading="24500" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153600" y="141824" z="-12736" heading="16384" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153472" y="141840" z="-12736" heading="12288" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153727" y="141875" z="-12736" heading="24500" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153600" y="141824" z="-12736" heading="16384" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153472" y="141840" z="-12736" heading="12288" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_3" spawnByDefault="false">
<npc id="29104" x="153776" y="142224" z="-12736" heading="40960" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153824" y="142112" z="-12736" heading="32768" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153808" y="141984" z="-12736" heading="28672" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153776" y="142224" z="-12736" heading="40960" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153824" y="142112" z="-12736" heading="32768" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153808" y="141984" z="-12736" heading="28672" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_4" spawnByDefault="false">
<npc id="29104" x="153424" y="142288" z="-12736" heading="57344" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153520" y="142336" z="-12736" heading="49152" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153666" y="142312" z="-12736" heading="45055" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153424" y="142288" z="-12736" heading="57344" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153520" y="142336" z="-12736" heading="49152" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153666" y="142312" z="-12736" heading="45055" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
</spawnlist>
</instance>

View File

@@ -60,28 +60,28 @@
<npc id="29109" x="153155" y="142317" z="-12736" heading="60000" /> <!-- -->
</group>
<group name="BAYLOR" spawnByDefault="false">
<npc id="29186" x="153776" y="141993" z="-12736" heading="60470" /> <!-- Baylor -->
<npc id="29186" x="153378" y="141997" z="-12736" heading="36076" /> <!-- Baylor -->
<npc id="29380" x="153776" y="141993" z="-12736" heading="60470" /> <!-- Baylor -->
<npc id="29380" x="153378" y="141997" z="-12736" heading="36076" /> <!-- Baylor -->
</group>
<group name="PRISON_GUARD_GROUP_1" spawnByDefault="false">
<npc id="29104" x="153360" y="141936" z="-12736" heading="8192" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153312" y="142048" z="-12736" heading="0" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153333" y="142176" z="-12736" heading="61439" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153360" y="141936" z="-12736" heading="8192" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153312" y="142048" z="-12736" heading="0" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153333" y="142176" z="-12736" heading="61439" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_2" spawnByDefault="false">
<npc id="29104" x="153727" y="141875" z="-12736" heading="24500" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153600" y="141824" z="-12736" heading="16384" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153472" y="141840" z="-12736" heading="12288" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153727" y="141875" z="-12736" heading="24500" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153600" y="141824" z="-12736" heading="16384" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153472" y="141840" z="-12736" heading="12288" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_3" spawnByDefault="false">
<npc id="29104" x="153776" y="142224" z="-12736" heading="40960" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153824" y="142112" z="-12736" heading="32768" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153808" y="141984" z="-12736" heading="28672" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153776" y="142224" z="-12736" heading="40960" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153824" y="142112" z="-12736" heading="32768" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153808" y="141984" z="-12736" heading="28672" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_4" spawnByDefault="false">
<npc id="29104" x="153424" y="142288" z="-12736" heading="57344" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153520" y="142336" z="-12736" heading="49152" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153666" y="142312" z="-12736" heading="45055" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153424" y="142288" z="-12736" heading="57344" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153520" y="142336" z="-12736" heading="49152" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153666" y="142312" z="-12736" heading="45055" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
</spawnlist>
</instance>

View File

@@ -28,7 +28,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.actor.instance.Door;
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureDeath;
import org.l2jmobius.gameserver.model.holders.ItemHolder;
import org.l2jmobius.gameserver.model.holders.SkillHolder;
import org.l2jmobius.gameserver.model.instancezone.Instance;
@@ -48,7 +47,8 @@ public class BaylorWarzone extends AbstractInstance
// NPCs
private static final int BAYLOR = 29213;
private static final int BAYLOR_110 = 29380;
private static final int PRISON_GUARD = 29104;
private static final int PRISON_GUARD = 29217;
private static final int PRISON_GUARD_110 = 29214;
private static final int BENUSTA = 34542;
private static final int INVISIBLE_NPC_1 = 29106;
private static final int INVISIBLE_NPC_2 = 29108;
@@ -77,7 +77,7 @@ public class BaylorWarzone extends AbstractInstance
addInstanceCreatedId(TEMPLATE_IDS);
addSpellFinishedId(INVISIBLE_NPC_1);
addCreatureSeeId(INVISIBLE_NPC_1);
setCreatureKillId(this::onBossKill, BAYLOR, BAYLOR_110);
addKillId(BAYLOR, BAYLOR_110);
}
@Override
@@ -253,7 +253,7 @@ public class BaylorWarzone extends AbstractInstance
getTimers().addTimer("START_SCENE_15", 1500, invisNpc, null);
});
world.getAliveNpcs(PRISON_GUARD).forEach(guard ->
world.getAliveNpcs(world.getTemplateId() == TEMPLATE_IDS[0] ? PRISON_GUARD : PRISON_GUARD_110).forEach(guard ->
{
final int random = getRandom(100);
if (random >= 20)
@@ -336,7 +336,7 @@ public class BaylorWarzone extends AbstractInstance
if (isInInstance(world))
{
world.getAliveNpcs(INVISIBLE_NPC_1, INVISIBLE_NPC_2, INVISIBLE_NPC_3).forEach(Npc::deleteMe);
world.getAliveNpcs(PRISON_GUARD).forEach(guard -> guard.doDie(null));
world.getAliveNpcs(world.getTemplateId() == TEMPLATE_IDS[0] ? PRISON_GUARD : PRISON_GUARD_110).forEach(guard -> guard.doDie(null));
npc.deleteMe();
}
return super.onSpellFinished(npc, player, skill);
@@ -346,6 +346,7 @@ public class BaylorWarzone extends AbstractInstance
public void onInstanceCreated(Instance instance, Player player)
{
instance.getParameters().set("INITIAL_PARTY_MEMBERS", player.getParty() != null ? player.getParty().getMemberCount() : 1);
instance.getParameters().set("ONE_BAYLOR_KILLED", false);
getTimers().addTimer("BATTLE_PORT", 3000, e ->
{
instance.getPlayers().forEach(p -> p.teleToLocation(BATTLE_PORT));
@@ -353,14 +354,13 @@ public class BaylorWarzone extends AbstractInstance
});
}
public void onBossKill(OnCreatureDeath event)
@Override
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final Npc npc = (Npc) event.getTarget();
final Instance world = npc.getInstanceWorld();
if (isInInstance(world))
{
final List<Npc> baylors = world.getAliveNpcs(world.getTemplateId() == TEMPLATE_IDS[0] ? BAYLOR : BAYLOR_110);
if (baylors.isEmpty())
if (world.getParameters().getBoolean("ONE_BAYLOR_KILLED", false))
{
for (Player member : world.getPlayers())
{
@@ -375,9 +375,11 @@ public class BaylorWarzone extends AbstractInstance
}
else
{
world.getParameters().set("ONE_BAYLOR_KILLED", true);
world.setReenterTime();
}
}
return super.onKill(npc, killer, isSummon);
}
@Override

View File

@@ -244,7 +244,7 @@
<height normal="47" />
</collision>
</npc>
<npc id="29106" level="83" type="Monster">
<npc id="29106" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
@@ -277,7 +277,7 @@
<height normal="0.1" />
</collision>
</npc>
<npc id="29107" level="83" type="Monster">
<npc id="29107" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
@@ -310,7 +310,7 @@
<height normal="0.1" />
</collision>
</npc>
<npc id="29108" level="83" type="Monster">
<npc id="29108" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
@@ -343,7 +343,7 @@
<height normal="0.1" />
</collision>
</npc>
<npc id="29109" level="83" type="Monster">
<npc id="29109" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">

View File

@@ -5833,35 +5833,80 @@
</dropLists>
</npc>
<npc id="29380" level="116" type="RaidBoss" name="Baylor" title="Warden">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<parameters>
<skill name="selfbuff1" id="5221" level="1" />
<skill name="selfbuff2" id="5222" level="1" />
<skill name="selfbuff3" id="5223" level="1" />
<skill name="selfbuff4" id="5224" level="1" />
<skill name="selfbuff5" id="5225" level="1" />
<skill name="PhysicalSpecial1" id="5227" level="2" />
<skill name="PhysicalSpecial2" id="5228" level="2" />
<skill name="PhysicalSpecial3" id="5229" level="2" />
<skill name="PhysicalSpecial4" id="5226" level="1" />
<skill name="d_skill1" id="5402" level="1" />
<skill name="d_skill2" id="5403" level="1" />
<skill name="d_skill3" id="5404" level="1" />
<param name="Attack_BoostValue" value="151" />
</parameters>
<race>DEMONIC</race>
<sex>MALE</sex>
<acquire exp="3321740194048" sp="2989566078" />
<mpReward value="53" type="DIFF" ticks="10" affects="PARTY" />
<stats str="164" int="188" dex="55" wit="78" con="111" men="149">
<vitals hp="15971399.832" hpRegen="12.9" mp="22800" mpRegen="30" />
<attack physical="492066" magical="448472" random="10" critical="4" accuracy="5" attackSpeed="253" type="SWORD" range="40" distance="80" width="120" />
<defence physical="200864" magical="991184" />
<vitals hp="15971399.83200336" hpRegen="12.4" mp="22800" mpRegen="30" />
<attack physical="2680836" magical="145651" random="10" critical="4" accuracy="5" attackSpeed="253" type="SWORD" range="40" distance="80" width="120" />
<defence physical="168294" magical="63027" />
<speed>
<walk ground="34" />
<run ground="180" />
</speed>
<hitTime>600</hitTime>
<hitTime>470</hitTime>
<attribute>
<defence fire="1300" water="1300" wind="1300" earth="1300" holy="1250" dark="1300" />
<attack type="DARK" value="1200" />
</attribute>
<abnormalResist physical="230" magical="230" />
</stats>
<status attackable="true" />
<collision>
<radius normal="69.12" />
<height normal="93.48" />
</collision>
<status attackable="true" isDeathPenalty="true" />
<skillList>
<skill id="4416" level="9" /> <!-- Demons -->
<skill id="5467" level="1" /> <!-- Dark Attack -->
<skill id="14765" level="4" /> <!-- Vampiric Rage Resistance -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average Damage Dealer -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="2" /> <!-- Standard Type -->
<skill id="4415" level="1" /> <!-- Bare Hands -->
<skill id="4494" level="1" /> <!-- Raid Boss -->
<skill id="33180" level="1" /> <!-- Party's Instance Zone Bonus -->
<skill id="14823" level="1" /> <!-- Instant Kill Attack Resistance -->
<skill id="16547" level="10" /> <!-- Danger Zone Resistance -->
<skill id="14623" level="1" /> <!-- Mutation Resistance -->
<skill id="5221" level="1" /> <!-- Baylor - Physical Close Range Vulnerability -->
<skill id="5222" level="1" /> <!-- Baylor - Physical Long Range Vulnerability -->
<skill id="5223" level="1" /> <!-- Baylor - Magic Vulnerability -->
<skill id="5224" level="1" /> <!-- Berserk -->
<skill id="5225" level="1" /> <!-- Invincibility -->
<skill id="5226" level="1" /> <!-- Imprison -->
<skill id="5227" level="2" /> <!-- Ground Strike -->
<skill id="5228" level="2" /> <!-- Jump Attack -->
<skill id="5229" level="2" /> <!-- Strong Punch -->
<skill id="5230" level="1" /> <!-- Stun -->
<skill id="5231" level="1" /> <!-- Stun -->
<skill id="5232" level="1" /> <!-- Stun -->
</skillList>
<ai aggroRange="700" isAggressive="true" clanHelpRange="2000">
<clanList>
<clan>BARLER_RO</clan>
</clanList>
</ai>
<collision>
<radius normal="69.12" />
<height normal="93.48" />
</collision>
</npc>
<npc id="29381" level="125" type="GrandBoss" name="Queen Ant" title="Wasteland Mistress">
<race>BUG</race>

View File

@@ -64,24 +64,24 @@
<npc id="29213" x="153378" y="141997" z="-12736" heading="36076" /> <!-- Baylor -->
</group>
<group name="PRISON_GUARD_GROUP_1" spawnByDefault="false">
<npc id="29104" x="153360" y="141936" z="-12736" heading="8192" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153312" y="142048" z="-12736" heading="0" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153333" y="142176" z="-12736" heading="61439" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153360" y="141936" z="-12736" heading="8192" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153312" y="142048" z="-12736" heading="0" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153333" y="142176" z="-12736" heading="61439" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_2" spawnByDefault="false">
<npc id="29104" x="153727" y="141875" z="-12736" heading="24500" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153600" y="141824" z="-12736" heading="16384" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153472" y="141840" z="-12736" heading="12288" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153727" y="141875" z="-12736" heading="24500" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153600" y="141824" z="-12736" heading="16384" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153472" y="141840" z="-12736" heading="12288" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_3" spawnByDefault="false">
<npc id="29104" x="153776" y="142224" z="-12736" heading="40960" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153824" y="142112" z="-12736" heading="32768" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153808" y="141984" z="-12736" heading="28672" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153776" y="142224" z="-12736" heading="40960" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153824" y="142112" z="-12736" heading="32768" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153808" y="141984" z="-12736" heading="28672" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_4" spawnByDefault="false">
<npc id="29104" x="153424" y="142288" z="-12736" heading="57344" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153520" y="142336" z="-12736" heading="49152" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153666" y="142312" z="-12736" heading="45055" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153424" y="142288" z="-12736" heading="57344" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153520" y="142336" z="-12736" heading="49152" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153666" y="142312" z="-12736" heading="45055" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
</spawnlist>
</instance>

View File

@@ -60,28 +60,28 @@
<npc id="29109" x="153155" y="142317" z="-12736" heading="60000" /> <!-- -->
</group>
<group name="BAYLOR" spawnByDefault="false">
<npc id="29186" x="153776" y="141993" z="-12736" heading="60470" /> <!-- Baylor -->
<npc id="29186" x="153378" y="141997" z="-12736" heading="36076" /> <!-- Baylor -->
<npc id="29380" x="153776" y="141993" z="-12736" heading="60470" /> <!-- Baylor -->
<npc id="29380" x="153378" y="141997" z="-12736" heading="36076" /> <!-- Baylor -->
</group>
<group name="PRISON_GUARD_GROUP_1" spawnByDefault="false">
<npc id="29104" x="153360" y="141936" z="-12736" heading="8192" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153312" y="142048" z="-12736" heading="0" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153333" y="142176" z="-12736" heading="61439" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153360" y="141936" z="-12736" heading="8192" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153312" y="142048" z="-12736" heading="0" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153333" y="142176" z="-12736" heading="61439" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_2" spawnByDefault="false">
<npc id="29104" x="153727" y="141875" z="-12736" heading="24500" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153600" y="141824" z="-12736" heading="16384" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153472" y="141840" z="-12736" heading="12288" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153727" y="141875" z="-12736" heading="24500" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153600" y="141824" z="-12736" heading="16384" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153472" y="141840" z="-12736" heading="12288" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_3" spawnByDefault="false">
<npc id="29104" x="153776" y="142224" z="-12736" heading="40960" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153824" y="142112" z="-12736" heading="32768" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153808" y="141984" z="-12736" heading="28672" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153776" y="142224" z="-12736" heading="40960" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153824" y="142112" z="-12736" heading="32768" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153808" y="141984" z="-12736" heading="28672" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_4" spawnByDefault="false">
<npc id="29104" x="153424" y="142288" z="-12736" heading="57344" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153520" y="142336" z="-12736" heading="49152" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153666" y="142312" z="-12736" heading="45055" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153424" y="142288" z="-12736" heading="57344" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153520" y="142336" z="-12736" heading="49152" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153666" y="142312" z="-12736" heading="45055" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
</spawnlist>
</instance>

View File

@@ -28,7 +28,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.actor.instance.Door;
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureDeath;
import org.l2jmobius.gameserver.model.holders.ItemHolder;
import org.l2jmobius.gameserver.model.holders.SkillHolder;
import org.l2jmobius.gameserver.model.instancezone.Instance;
@@ -48,7 +47,8 @@ public class BaylorWarzone extends AbstractInstance
// NPCs
private static final int BAYLOR = 29213;
private static final int BAYLOR_110 = 29380;
private static final int PRISON_GUARD = 29104;
private static final int PRISON_GUARD = 29217;
private static final int PRISON_GUARD_110 = 29214;
private static final int BENUSTA = 34542;
private static final int INVISIBLE_NPC_1 = 29106;
private static final int INVISIBLE_NPC_2 = 29108;
@@ -77,7 +77,7 @@ public class BaylorWarzone extends AbstractInstance
addInstanceCreatedId(TEMPLATE_IDS);
addSpellFinishedId(INVISIBLE_NPC_1);
addCreatureSeeId(INVISIBLE_NPC_1);
setCreatureKillId(this::onBossKill, BAYLOR, BAYLOR_110);
addKillId(BAYLOR, BAYLOR_110);
}
@Override
@@ -253,7 +253,7 @@ public class BaylorWarzone extends AbstractInstance
getTimers().addTimer("START_SCENE_15", 1500, invisNpc, null);
});
world.getAliveNpcs(PRISON_GUARD).forEach(guard ->
world.getAliveNpcs(world.getTemplateId() == TEMPLATE_IDS[0] ? PRISON_GUARD : PRISON_GUARD_110).forEach(guard ->
{
final int random = getRandom(100);
if (random >= 20)
@@ -336,7 +336,7 @@ public class BaylorWarzone extends AbstractInstance
if (isInInstance(world))
{
world.getAliveNpcs(INVISIBLE_NPC_1, INVISIBLE_NPC_2, INVISIBLE_NPC_3).forEach(Npc::deleteMe);
world.getAliveNpcs(PRISON_GUARD).forEach(guard -> guard.doDie(null));
world.getAliveNpcs(world.getTemplateId() == TEMPLATE_IDS[0] ? PRISON_GUARD : PRISON_GUARD_110).forEach(guard -> guard.doDie(null));
npc.deleteMe();
}
return super.onSpellFinished(npc, player, skill);
@@ -346,6 +346,7 @@ public class BaylorWarzone extends AbstractInstance
public void onInstanceCreated(Instance instance, Player player)
{
instance.getParameters().set("INITIAL_PARTY_MEMBERS", player.getParty() != null ? player.getParty().getMemberCount() : 1);
instance.getParameters().set("ONE_BAYLOR_KILLED", false);
getTimers().addTimer("BATTLE_PORT", 3000, e ->
{
instance.getPlayers().forEach(p -> p.teleToLocation(BATTLE_PORT));
@@ -353,14 +354,13 @@ public class BaylorWarzone extends AbstractInstance
});
}
public void onBossKill(OnCreatureDeath event)
@Override
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final Npc npc = (Npc) event.getTarget();
final Instance world = npc.getInstanceWorld();
if (isInInstance(world))
{
final List<Npc> baylors = world.getAliveNpcs(world.getTemplateId() == TEMPLATE_IDS[0] ? BAYLOR : BAYLOR_110);
if (baylors.isEmpty())
if (world.getParameters().getBoolean("ONE_BAYLOR_KILLED", false))
{
for (Player member : world.getPlayers())
{
@@ -375,9 +375,11 @@ public class BaylorWarzone extends AbstractInstance
}
else
{
world.getParameters().set("ONE_BAYLOR_KILLED", true);
world.setReenterTime();
}
}
return super.onKill(npc, killer, isSummon);
}
@Override

View File

@@ -244,7 +244,7 @@
<height normal="47" />
</collision>
</npc>
<npc id="29106" level="83" type="Monster">
<npc id="29106" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
@@ -277,7 +277,7 @@
<height normal="0.1" />
</collision>
</npc>
<npc id="29107" level="83" type="Monster">
<npc id="29107" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
@@ -310,7 +310,7 @@
<height normal="0.1" />
</collision>
</npc>
<npc id="29108" level="83" type="Monster">
<npc id="29108" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
@@ -343,7 +343,7 @@
<height normal="0.1" />
</collision>
</npc>
<npc id="29109" level="83" type="Monster">
<npc id="29109" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">

View File

@@ -791,10 +791,10 @@
</parameters>
<race>DEMONIC</race>
<sex>MALE</sex>
<acquire exp="1290079929600" sp="1161071835" />
<acquire exp="1626038244600" sp="1463434379" />
<mpReward value="53" type="DIFF" ticks="10" affects="PARTY" />
<stats str="164" int="188" dex="55" wit="78" con="111" men="149">
<vitals hp="15971366" hpRegen="12.4" mp="22800" mpRegen="30" />
<vitals hp="4791409.911801764" hpRegen="12.4" mp="22800" mpRegen="30" />
<attack physical="1680836" magical="75651" random="10" critical="4" accuracy="5" attackSpeed="253" type="SWORD" range="40" distance="80" width="120" />
<defence physical="88294" magical="33027" />
<speed>

View File

@@ -5833,35 +5833,80 @@
</dropLists>
</npc>
<npc id="29380" level="116" type="RaidBoss" name="Baylor" title="Warden">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<parameters>
<skill name="selfbuff1" id="5221" level="1" />
<skill name="selfbuff2" id="5222" level="1" />
<skill name="selfbuff3" id="5223" level="1" />
<skill name="selfbuff4" id="5224" level="1" />
<skill name="selfbuff5" id="5225" level="1" />
<skill name="PhysicalSpecial1" id="5227" level="2" />
<skill name="PhysicalSpecial2" id="5228" level="2" />
<skill name="PhysicalSpecial3" id="5229" level="2" />
<skill name="PhysicalSpecial4" id="5226" level="1" />
<skill name="d_skill1" id="5402" level="1" />
<skill name="d_skill2" id="5403" level="1" />
<skill name="d_skill3" id="5404" level="1" />
<param name="Attack_BoostValue" value="151" />
</parameters>
<race>DEMONIC</race>
<sex>MALE</sex>
<acquire exp="3321740194048" sp="2989566078" />
<mpReward value="53" type="DIFF" ticks="10" affects="PARTY" />
<stats str="164" int="188" dex="55" wit="78" con="111" men="149">
<vitals hp="15971399.832" hpRegen="12.9" mp="22800" mpRegen="30" />
<attack physical="492066" magical="448472" random="10" critical="4" accuracy="5" attackSpeed="253" type="SWORD" range="40" distance="80" width="120" />
<defence physical="200864" magical="991184" />
<vitals hp="15971399.83200336" hpRegen="12.4" mp="22800" mpRegen="30" />
<attack physical="2680836" magical="145651" random="10" critical="4" accuracy="5" attackSpeed="253" type="SWORD" range="40" distance="80" width="120" />
<defence physical="168294" magical="63027" />
<speed>
<walk ground="34" />
<run ground="180" />
</speed>
<hitTime>600</hitTime>
<hitTime>470</hitTime>
<attribute>
<defence fire="1300" water="1300" wind="1300" earth="1300" holy="1250" dark="1300" />
<attack type="DARK" value="1200" />
</attribute>
<abnormalResist physical="230" magical="230" />
</stats>
<status attackable="true" />
<collision>
<radius normal="69.12" />
<height normal="93.48" />
</collision>
<status attackable="true" isDeathPenalty="true" />
<skillList>
<skill id="4416" level="9" /> <!-- Demons -->
<skill id="5467" level="1" /> <!-- Dark Attribute -->
<skill id="14765" level="4" /> <!-- Vampiric Rage Resistance -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average Damage Dealer -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="2" /> <!-- Standard Type -->
<skill id="4415" level="1" /> <!-- Bare Hands -->
<skill id="4494" level="1" /> <!-- Raid Boss -->
<skill id="33180" level="1" /> <!-- Party's Instance Zone Bonus -->
<skill id="14823" level="1" /> <!-- Instant Kill Attack Resistance -->
<skill id="16547" level="10" /> <!-- Danger Zone Resistance -->
<skill id="14623" level="1" /> <!-- Mutation Resistance -->
<skill id="5221" level="1" /> <!-- Baylor - Physical Close Range Vulnerability -->
<skill id="5222" level="1" /> <!-- Baylor - Physical Long Range Vulnerability -->
<skill id="5223" level="1" /> <!-- Baylor - Magic Vulnerability -->
<skill id="5224" level="1" /> <!-- Berserk -->
<skill id="5225" level="1" /> <!-- Invincibility -->
<skill id="5226" level="1" /> <!-- Imprison -->
<skill id="5227" level="2" /> <!-- Ground Strike -->
<skill id="5228" level="2" /> <!-- Jump Attack -->
<skill id="5229" level="2" /> <!-- Strong Punch -->
<skill id="5230" level="1" /> <!-- Stun -->
<skill id="5231" level="1" /> <!-- Stun -->
<skill id="5232" level="1" /> <!-- Stun -->
</skillList>
<ai aggroRange="700" isAggressive="true" clanHelpRange="2000">
<clanList>
<clan>BARLER_RO</clan>
</clanList>
</ai>
<collision>
<radius normal="69.12" />
<height normal="93.48" />
</collision>
</npc>
<npc id="29381" level="125" type="GrandBoss" name="Queen Ant" title="Wasteland Mistress">
<race>BUG</race>

View File

@@ -64,24 +64,24 @@
<npc id="29213" x="153378" y="141997" z="-12736" heading="36076" /> <!-- Baylor -->
</group>
<group name="PRISON_GUARD_GROUP_1" spawnByDefault="false">
<npc id="29104" x="153360" y="141936" z="-12736" heading="8192" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153312" y="142048" z="-12736" heading="0" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153333" y="142176" z="-12736" heading="61439" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153360" y="141936" z="-12736" heading="8192" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153312" y="142048" z="-12736" heading="0" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153333" y="142176" z="-12736" heading="61439" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_2" spawnByDefault="false">
<npc id="29104" x="153727" y="141875" z="-12736" heading="24500" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153600" y="141824" z="-12736" heading="16384" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153472" y="141840" z="-12736" heading="12288" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153727" y="141875" z="-12736" heading="24500" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153600" y="141824" z="-12736" heading="16384" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153472" y="141840" z="-12736" heading="12288" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_3" spawnByDefault="false">
<npc id="29104" x="153776" y="142224" z="-12736" heading="40960" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153824" y="142112" z="-12736" heading="32768" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153808" y="141984" z="-12736" heading="28672" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153776" y="142224" z="-12736" heading="40960" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153824" y="142112" z="-12736" heading="32768" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153808" y="141984" z="-12736" heading="28672" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_4" spawnByDefault="false">
<npc id="29104" x="153424" y="142288" z="-12736" heading="57344" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153520" y="142336" z="-12736" heading="49152" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153666" y="142312" z="-12736" heading="45055" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153424" y="142288" z="-12736" heading="57344" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153520" y="142336" z="-12736" heading="49152" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29217" x="153666" y="142312" z="-12736" heading="45055" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
</spawnlist>
</instance>

View File

@@ -60,28 +60,28 @@
<npc id="29109" x="153155" y="142317" z="-12736" heading="60000" /> <!-- -->
</group>
<group name="BAYLOR" spawnByDefault="false">
<npc id="29186" x="153776" y="141993" z="-12736" heading="60470" /> <!-- Baylor -->
<npc id="29186" x="153378" y="141997" z="-12736" heading="36076" /> <!-- Baylor -->
<npc id="29380" x="153776" y="141993" z="-12736" heading="60470" /> <!-- Baylor -->
<npc id="29380" x="153378" y="141997" z="-12736" heading="36076" /> <!-- Baylor -->
</group>
<group name="PRISON_GUARD_GROUP_1" spawnByDefault="false">
<npc id="29104" x="153360" y="141936" z="-12736" heading="8192" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153312" y="142048" z="-12736" heading="0" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153333" y="142176" z="-12736" heading="61439" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153360" y="141936" z="-12736" heading="8192" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153312" y="142048" z="-12736" heading="0" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153333" y="142176" z="-12736" heading="61439" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_2" spawnByDefault="false">
<npc id="29104" x="153727" y="141875" z="-12736" heading="24500" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153600" y="141824" z="-12736" heading="16384" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153472" y="141840" z="-12736" heading="12288" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153727" y="141875" z="-12736" heading="24500" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153600" y="141824" z="-12736" heading="16384" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153472" y="141840" z="-12736" heading="12288" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_3" spawnByDefault="false">
<npc id="29104" x="153776" y="142224" z="-12736" heading="40960" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153824" y="142112" z="-12736" heading="32768" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153808" y="141984" z="-12736" heading="28672" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153776" y="142224" z="-12736" heading="40960" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153824" y="142112" z="-12736" heading="32768" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153808" y="141984" z="-12736" heading="28672" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
<group name="PRISON_GUARD_GROUP_4" spawnByDefault="false">
<npc id="29104" x="153424" y="142288" z="-12736" heading="57344" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153520" y="142336" z="-12736" heading="49152" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29104" x="153666" y="142312" z="-12736" heading="45055" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153424" y="142288" z="-12736" heading="57344" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153520" y="142336" z="-12736" heading="49152" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
<npc id="29214" x="153666" y="142312" z="-12736" heading="45055" spawnAnimation="true" /> <!-- Crystal Prison Guard -->
</group>
</spawnlist>
</instance>

View File

@@ -28,7 +28,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.actor.instance.Door;
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureDeath;
import org.l2jmobius.gameserver.model.holders.ItemHolder;
import org.l2jmobius.gameserver.model.holders.SkillHolder;
import org.l2jmobius.gameserver.model.instancezone.Instance;
@@ -48,7 +47,8 @@ public class BaylorWarzone extends AbstractInstance
// NPCs
private static final int BAYLOR = 29213;
private static final int BAYLOR_110 = 29380;
private static final int PRISON_GUARD = 29104;
private static final int PRISON_GUARD = 29217;
private static final int PRISON_GUARD_110 = 29214;
private static final int BENUSTA = 34542;
private static final int INVISIBLE_NPC_1 = 29106;
private static final int INVISIBLE_NPC_2 = 29108;
@@ -77,7 +77,7 @@ public class BaylorWarzone extends AbstractInstance
addInstanceCreatedId(TEMPLATE_IDS);
addSpellFinishedId(INVISIBLE_NPC_1);
addCreatureSeeId(INVISIBLE_NPC_1);
setCreatureKillId(this::onBossKill, BAYLOR, BAYLOR_110);
addKillId(BAYLOR, BAYLOR_110);
}
@Override
@@ -253,7 +253,7 @@ public class BaylorWarzone extends AbstractInstance
getTimers().addTimer("START_SCENE_15", 1500, invisNpc, null);
});
world.getAliveNpcs(PRISON_GUARD).forEach(guard ->
world.getAliveNpcs(world.getTemplateId() == TEMPLATE_IDS[0] ? PRISON_GUARD : PRISON_GUARD_110).forEach(guard ->
{
final int random = getRandom(100);
if (random >= 20)
@@ -336,7 +336,7 @@ public class BaylorWarzone extends AbstractInstance
if (isInInstance(world))
{
world.getAliveNpcs(INVISIBLE_NPC_1, INVISIBLE_NPC_2, INVISIBLE_NPC_3).forEach(Npc::deleteMe);
world.getAliveNpcs(PRISON_GUARD).forEach(guard -> guard.doDie(null));
world.getAliveNpcs(world.getTemplateId() == TEMPLATE_IDS[0] ? PRISON_GUARD : PRISON_GUARD_110).forEach(guard -> guard.doDie(null));
npc.deleteMe();
}
return super.onSpellFinished(npc, player, skill);
@@ -346,6 +346,7 @@ public class BaylorWarzone extends AbstractInstance
public void onInstanceCreated(Instance instance, Player player)
{
instance.getParameters().set("INITIAL_PARTY_MEMBERS", player.getParty() != null ? player.getParty().getMemberCount() : 1);
instance.getParameters().set("ONE_BAYLOR_KILLED", false);
getTimers().addTimer("BATTLE_PORT", 3000, e ->
{
instance.getPlayers().forEach(p -> p.teleToLocation(BATTLE_PORT));
@@ -353,14 +354,13 @@ public class BaylorWarzone extends AbstractInstance
});
}
public void onBossKill(OnCreatureDeath event)
@Override
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final Npc npc = (Npc) event.getTarget();
final Instance world = npc.getInstanceWorld();
if (isInInstance(world))
{
final List<Npc> baylors = world.getAliveNpcs(world.getTemplateId() == TEMPLATE_IDS[0] ? BAYLOR : BAYLOR_110);
if (baylors.isEmpty())
if (world.getParameters().getBoolean("ONE_BAYLOR_KILLED", false))
{
for (Player member : world.getPlayers())
{
@@ -375,9 +375,11 @@ public class BaylorWarzone extends AbstractInstance
}
else
{
world.getParameters().set("ONE_BAYLOR_KILLED", true);
world.setReenterTime();
}
}
return super.onKill(npc, killer, isSummon);
}
@Override

View File

@@ -244,7 +244,7 @@
<height normal="47" />
</collision>
</npc>
<npc id="29106" level="83" type="Monster">
<npc id="29106" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
@@ -277,7 +277,7 @@
<height normal="0.1" />
</collision>
</npc>
<npc id="29107" level="83" type="Monster">
<npc id="29107" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
@@ -310,7 +310,7 @@
<height normal="0.1" />
</collision>
</npc>
<npc id="29108" level="83" type="Monster">
<npc id="29108" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
@@ -343,7 +343,7 @@
<height normal="0.1" />
</collision>
</npc>
<npc id="29109" level="83" type="Monster">
<npc id="29109" level="83" type="Folk">
<race>CONSTRUCT</race>
<sex>MALE</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">

View File

@@ -791,10 +791,10 @@
</parameters>
<race>DEMONIC</race>
<sex>MALE</sex>
<acquire exp="1290079929600" sp="1161071835" />
<acquire exp="1626038244600" sp="1463434379" />
<mpReward value="53" type="DIFF" ticks="10" affects="PARTY" />
<stats str="164" int="188" dex="55" wit="78" con="111" men="149">
<vitals hp="15971366" hpRegen="12.4" mp="22800" mpRegen="30" />
<vitals hp="4791409.911801764" hpRegen="12.4" mp="22800" mpRegen="30" />
<attack physical="1680836" magical="75651" random="10" critical="4" accuracy="5" attackSpeed="253" type="SWORD" range="40" distance="80" width="120" />
<defence physical="88294" magical="33027" />
<speed>

View File

@@ -5877,35 +5877,80 @@
</dropLists>
</npc>
<npc id="29380" level="116" type="RaidBoss" name="Baylor" title="Warden">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<parameters>
<skill name="selfbuff1" id="5221" level="1" />
<skill name="selfbuff2" id="5222" level="1" />
<skill name="selfbuff3" id="5223" level="1" />
<skill name="selfbuff4" id="5224" level="1" />
<skill name="selfbuff5" id="5225" level="1" />
<skill name="PhysicalSpecial1" id="5227" level="2" />
<skill name="PhysicalSpecial2" id="5228" level="2" />
<skill name="PhysicalSpecial3" id="5229" level="2" />
<skill name="PhysicalSpecial4" id="5226" level="1" />
<skill name="d_skill1" id="5402" level="1" />
<skill name="d_skill2" id="5403" level="1" />
<skill name="d_skill3" id="5404" level="1" />
<param name="Attack_BoostValue" value="151" />
</parameters>
<race>DEMONIC</race>
<sex>MALE</sex>
<acquire exp="3321740194048" sp="2989566078" />
<mpReward value="53" type="DIFF" ticks="10" affects="PARTY" />
<stats str="164" int="188" dex="55" wit="78" con="111" men="149">
<vitals hp="15971399.832" hpRegen="12.9" mp="22800" mpRegen="30" />
<attack physical="492066" magical="448472" random="10" critical="4" accuracy="5" attackSpeed="253" type="SWORD" range="40" distance="80" width="120" />
<defence physical="200864" magical="991184" />
<vitals hp="15971399.83200336" hpRegen="12.4" mp="22800" mpRegen="30" />
<attack physical="2680836" magical="145651" random="10" critical="4" accuracy="5" attackSpeed="253" type="SWORD" range="40" distance="80" width="120" />
<defence physical="168294" magical="63027" />
<speed>
<walk ground="34" />
<run ground="180" />
</speed>
<hitTime>600</hitTime>
<hitTime>470</hitTime>
<attribute>
<defence fire="1300" water="1300" wind="1300" earth="1300" holy="1250" dark="1300" />
<attack type="DARK" value="1200" />
</attribute>
<abnormalResist physical="230" magical="230" />
</stats>
<status attackable="true" />
<collision>
<radius normal="69.12" />
<height normal="93.48" />
</collision>
<status attackable="true" isDeathPenalty="true" />
<skillList>
<skill id="4416" level="9" /> <!-- Demons -->
<skill id="5467" level="1" /> <!-- Dark Attribute -->
<skill id="14765" level="4" /> <!-- Vampiric Rage Resistance -->
<skill id="4408" level="1" /> <!-- HP Increase (1x) -->
<skill id="4409" level="1" /> <!-- MP Increase (1x) -->
<skill id="4410" level="11" /> <!-- Average Damage Dealer -->
<skill id="4411" level="11" /> <!-- Average M. Atk. -->
<skill id="4412" level="11" /> <!-- Average P. Def. -->
<skill id="4413" level="11" /> <!-- Average M. Def. -->
<skill id="4414" level="2" /> <!-- Standard Type -->
<skill id="4415" level="1" /> <!-- Bare Hands -->
<skill id="4494" level="1" /> <!-- Raid Boss -->
<skill id="33180" level="1" /> <!-- Party's Instance Zone Bonus -->
<skill id="14823" level="1" /> <!-- Instant Kill Attack Resistance -->
<skill id="16547" level="10" /> <!-- Danger Zone Resistance -->
<skill id="14623" level="1" /> <!-- Mutation Resistance -->
<skill id="5221" level="1" /> <!-- Baylor - Physical Close Range Vulnerability -->
<skill id="5222" level="1" /> <!-- Baylor - Physical Long Range Vulnerability -->
<skill id="5223" level="1" /> <!-- Baylor - Magic Vulnerability -->
<skill id="5224" level="1" /> <!-- Berserk -->
<skill id="5225" level="1" /> <!-- Invincibility -->
<skill id="5226" level="1" /> <!-- Imprison -->
<skill id="5227" level="2" /> <!-- Ground Strike -->
<skill id="5228" level="2" /> <!-- Jump Attack -->
<skill id="5229" level="2" /> <!-- Strong Punch -->
<skill id="5230" level="1" /> <!-- Stun -->
<skill id="5231" level="1" /> <!-- Stun -->
<skill id="5232" level="1" /> <!-- Stun -->
</skillList>
<ai aggroRange="700" isAggressive="true" clanHelpRange="2000">
<clanList>
<clan>BARLER_RO</clan>
</clanList>
</ai>
<collision>
<radius normal="69.12" />
<height normal="93.48" />
</collision>
</npc>
<npc id="29381" level="125" type="GrandBoss" name="Queen Ant" title="Wasteland Mistress">
<race>BUG</race>