diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/PrimevalIsle/BurningBuff.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/PrimevalIsle/BurningBuff.java new file mode 100644 index 0000000000..0b262ae9a2 --- /dev/null +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/PrimevalIsle/BurningBuff.java @@ -0,0 +1,55 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program 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. + * + * This program 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 . + */ +package ai.areas.PrimevalIsle; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.Player; +import org.l2jmobius.gameserver.model.holders.SkillHolder; +import org.l2jmobius.gameserver.model.skill.Skill; + +import ai.AbstractNpcAI; + +/** + * @author petryxa + */ +public class BurningBuff extends AbstractNpcAI +{ + // NPC + private static final int TYRANNOSAURUS = 21978; + // Skill + private static final SkillHolder BURNING = new SkillHolder(48054, 1); + + private BurningBuff() + { + addAttackId(TYRANNOSAURUS); + } + + @Override + public String onAttack(Npc npc, Player attacker, int damage, boolean isSummon, Skill skill) + { + if (!attacker.isAffectedBySkill(BURNING)) + { + BURNING.getSkill().applyEffects(attacker, attacker); + } + return super.onAttack(npc, attacker, damage, isSummon, skill); + } + + public static void main(String[] args) + { + new BurningBuff(); + } +} diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/stats/skills/48000-48099.xml b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/stats/skills/48000-48099.xml index 754c072c4d..e7dfa6d996 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/stats/skills/48000-48099.xml +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/stats/skills/48000-48099.xml @@ -326,10 +326,23 @@ icon.skill0000 A1 - - - icon.skill0000 - A1 + + icon.skill3238 + A2 + 1 + 30 + 4 + true + SELF + SINGLE + + + 50 + + + 50 + + diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/PrimevalIsle/BurningBuff.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/PrimevalIsle/BurningBuff.java new file mode 100644 index 0000000000..0b262ae9a2 --- /dev/null +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/PrimevalIsle/BurningBuff.java @@ -0,0 +1,55 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program 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. + * + * This program 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 . + */ +package ai.areas.PrimevalIsle; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.Player; +import org.l2jmobius.gameserver.model.holders.SkillHolder; +import org.l2jmobius.gameserver.model.skill.Skill; + +import ai.AbstractNpcAI; + +/** + * @author petryxa + */ +public class BurningBuff extends AbstractNpcAI +{ + // NPC + private static final int TYRANNOSAURUS = 21978; + // Skill + private static final SkillHolder BURNING = new SkillHolder(48054, 1); + + private BurningBuff() + { + addAttackId(TYRANNOSAURUS); + } + + @Override + public String onAttack(Npc npc, Player attacker, int damage, boolean isSummon, Skill skill) + { + if (!attacker.isAffectedBySkill(BURNING)) + { + BURNING.getSkill().applyEffects(attacker, attacker); + } + return super.onAttack(npc, attacker, damage, isSummon, skill); + } + + public static void main(String[] args) + { + new BurningBuff(); + } +} diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/stats/skills/48000-48099.xml b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/stats/skills/48000-48099.xml index 05ef9b5ff1..3b4aa60441 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/stats/skills/48000-48099.xml +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/stats/skills/48000-48099.xml @@ -326,10 +326,23 @@ icon.skill0000 A1 - - - icon.skill0000 - A1 + + icon.skill3238 + A2 + 1 + 30 + 4 + true + SELF + SINGLE + + + 50 + + + 50 + + diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/PrimevalIsle/BurningBuff.java b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/PrimevalIsle/BurningBuff.java new file mode 100644 index 0000000000..0b262ae9a2 --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/PrimevalIsle/BurningBuff.java @@ -0,0 +1,55 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program 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. + * + * This program 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 . + */ +package ai.areas.PrimevalIsle; + +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.Player; +import org.l2jmobius.gameserver.model.holders.SkillHolder; +import org.l2jmobius.gameserver.model.skill.Skill; + +import ai.AbstractNpcAI; + +/** + * @author petryxa + */ +public class BurningBuff extends AbstractNpcAI +{ + // NPC + private static final int TYRANNOSAURUS = 21978; + // Skill + private static final SkillHolder BURNING = new SkillHolder(48054, 1); + + private BurningBuff() + { + addAttackId(TYRANNOSAURUS); + } + + @Override + public String onAttack(Npc npc, Player attacker, int damage, boolean isSummon, Skill skill) + { + if (!attacker.isAffectedBySkill(BURNING)) + { + BURNING.getSkill().applyEffects(attacker, attacker); + } + return super.onAttack(npc, attacker, damage, isSummon, skill); + } + + public static void main(String[] args) + { + new BurningBuff(); + } +} diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/skills/48000-48099.xml b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/skills/48000-48099.xml index 410dbaeede..3486acac81 100644 --- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/skills/48000-48099.xml +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/stats/skills/48000-48099.xml @@ -326,10 +326,23 @@ icon.skill0000 A1 - - - icon.skill0000 - A1 + + icon.skill3238 + A2 + 1 + 30 + 4 + true + SELF + SINGLE + + + 50 + + + 50 + +