Added Yin Fragment at Hills of Gold AI.
This commit is contained in:
@@ -36,6 +36,8 @@ public class HillsOfGold extends AbstractNpcAI
|
|||||||
private static final int EXCAVATOR_GOLEM = 19312;
|
private static final int EXCAVATOR_GOLEM = 19312;
|
||||||
private static final int SPICULA_1 = 23246;
|
private static final int SPICULA_1 = 23246;
|
||||||
private static final int SPICULA_2 = 23247;
|
private static final int SPICULA_2 = 23247;
|
||||||
|
private static final int YIN_FRAGMENT = 19308;
|
||||||
|
private static final int SPICULA_ELITE_GUARD = 23303;
|
||||||
private static final int[] GOLEMS =
|
private static final int[] GOLEMS =
|
||||||
{
|
{
|
||||||
23255,
|
23255,
|
||||||
@@ -50,6 +52,7 @@ public class HillsOfGold extends AbstractNpcAI
|
|||||||
public HillsOfGold()
|
public HillsOfGold()
|
||||||
{
|
{
|
||||||
super(HillsOfGold.class.getSimpleName(), "ai/group_template");
|
super(HillsOfGold.class.getSimpleName(), "ai/group_template");
|
||||||
|
addAttackId(YIN_FRAGMENT);
|
||||||
addSpawnId(SPICULA_1, SPICULA_2);
|
addSpawnId(SPICULA_1, SPICULA_2);
|
||||||
addSpawnId(GOLEMS);
|
addSpawnId(GOLEMS);
|
||||||
}
|
}
|
||||||
@@ -76,6 +79,21 @@ public class HillsOfGold extends AbstractNpcAI
|
|||||||
return super.onAdvEvent(event, npc, player);
|
return super.onAdvEvent(event, npc, player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String onAttack(L2Npc npc, L2PcInstance attacker, int damage, boolean isSummon)
|
||||||
|
{
|
||||||
|
L2Npc mob1 = addSpawn(SPICULA_ELITE_GUARD, npc.getX(), npc.getY(), npc.getZ(), attacker.getHeading() + 32500, true, npc.getSpawn().getRespawnDelay());
|
||||||
|
((L2MonsterInstance) mob1).addDamage(attacker, 1, null);
|
||||||
|
L2Npc mob2 = addSpawn(SPICULA_ELITE_GUARD, npc.getX(), npc.getY(), npc.getZ(), attacker.getHeading() + 32500, true, npc.getSpawn().getRespawnDelay());
|
||||||
|
((L2MonsterInstance) mob2).addDamage(attacker, 1, null);
|
||||||
|
L2Npc mob3 = addSpawn(SPICULA_ELITE_GUARD, npc.getX(), npc.getY(), npc.getZ(), attacker.getHeading() + 32500, true, npc.getSpawn().getRespawnDelay());
|
||||||
|
((L2MonsterInstance) mob3).addDamage(attacker, 1, null);
|
||||||
|
L2Npc mob4 = addSpawn(SPICULA_ELITE_GUARD, npc.getX(), npc.getY(), npc.getZ(), attacker.getHeading() + 32500, true, npc.getSpawn().getRespawnDelay());
|
||||||
|
((L2MonsterInstance) mob4).addDamage(attacker, 1, null);
|
||||||
|
npc.deleteMe();
|
||||||
|
return super.onAttack(npc, attacker, damage, isSummon);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String onSpawn(L2Npc npc)
|
public String onSpawn(L2Npc npc)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user