diff --git a/dist/game/data/scripts.cfg b/dist/game/data/scripts.cfg index 65fb67298958477b830b2a950316e1b693b8209b..bffb18782cbab255c18b6246b9764a91f503adba 100644 --- a/dist/game/data/scripts.cfg +++ b/dist/game/data/scripts.cfg @@ -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 diff --git a/dist/game/data/scripts/ai/group_template/DragonValley.java b/dist/game/data/scripts/ai/group_template/DragonValley.java index 0445f0475beab48107b4e57a9bf35ab5f0228dcf..c0272c96380c1ebb0bca9536e6ce84c288f46d37 100644 --- a/dist/game/data/scripts/ai/group_template/DragonValley.java +++ b/dist/game/data/scripts/ai/group_template/DragonValley.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 }; diff --git a/dist/game/data/scripts/ai/individual/DrakosWarrior.java b/dist/game/data/scripts/ai/individual/DrakosWarrior.java new file mode 100644 index 0000000000000000000000000000000000000000..f8999f52a3027b4b43019f7551907502ddad140d --- /dev/null +++ b/dist/game/data/scripts/ai/individual/DrakosWarrior.java @@ -0,0 +1,65 @@ +/* + * 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(); + } +} diff --git a/dist/game/data/stats/skills/06800-06899.xml b/dist/game/data/stats/skills/06800-06899.xml index 73af2b31b8aa100ec8e2800f3fcc5adece5d8d02..78029a7e07c3318bc93a3afa6f7479b83765980c 100644 --- a/dist/game/data/stats/skills/06800-06899.xml +++ b/dist/game/data/stats/skills/06800-06899.xml @@ -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 -->