Skip to content
Snippets Groups Projects
Commit 60be6369 authored by Adry85's avatar Adry85 Committed by Zoey76
Browse files

Retail like Drakos Warrior AI.

parent bd38dbee
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,7 @@ ai/individual/CrimsonHatuOtis.java
ai/individual/Core.java
ai/individual/DarkWaterDragon.java
ai/individual/DivineBeast.java
ai/individual/DrakosWarrior.java
ai/individual/DrChaos.java
ai/individual/DustRider.java
ai/individual/EmeraldHorn.java
......
......@@ -44,7 +44,6 @@ public final class DragonValley extends AbstractNpcAI
private static final int DRAKOS_ASSASSIN = 22823;
private static final int[] SUMMON_NPC =
{
22822, // Drakos Warrior
22824, // Drakos Guardian
22862, // Drakos Hunter
};
......
/*
* Copyright (C) 2004-2017 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* L2J DataPack is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package ai.individual;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.holders.SkillHolder;
import ai.npc.AbstractNpcAI;
/**
* Drakos Warrior AI.
* @author Adry_85
* @since 2.6.0.0
*/
public class DrakosWarrior extends AbstractNpcAI
{
// NPCs
private static final int DRAKOS_WARRIOR = 22822;
private static final int DRAKOS_ASSASSIN = 22823;
// Skill
private static final SkillHolder SUMMON = new SkillHolder(6858);
public DrakosWarrior()
{
super(DrakosWarrior.class.getSimpleName(), "ai/individual");
addAttackId(DRAKOS_WARRIOR);
}
@Override
public String onAttack(L2Npc npc, L2PcInstance attacker, int damage, boolean isSummon)
{
if (getRandom(100) < 1)
{
addSkillCastDesire(npc, npc, SUMMON, 99999999900000000L);
final int count = 2 + getRandom(3);
for (int i = 0; i < count; i++)
{
addSpawn(DRAKOS_ASSASSIN, npc.getX() + getRandom(200), npc.getY() + getRandom(200), npc.getZ(), 0, false, 0, false);
}
}
return super.onAttack(npc, attacker, damage, isSummon);
}
public static void main(String[] args)
{
new DrakosWarrior();
}
}
......@@ -1076,9 +1076,14 @@
</effects>
</skill>
<skill id="6858" levels="1" name="Summon">
<!-- none -->
<set name="operateType" val="P" />
<set name="targetType" val="NONE" />
<!-- High Five Confirmed -->
<set name="affectScope" val="SINGLE" />
<set name="effectPoint" val="546" />
<set name="hitTime" val="1000" />
<set name="magicLvl" val="81" />
<set name="operateType" val="A1" />
<set name="rideState" val="NONE" />
<set name="targetType" val="SELF" />
</skill>
<skill id="6859" levels="1" name="Power Strike">
<!-- High Five Confirmed -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment