Addition of Primeval Isle Burning buff.

Contributed by petryxa.
This commit is contained in:
MobiusDevelopment
2022-10-17 21:24:51 +00:00
parent d9581b6d35
commit 1191af4d9d
6 changed files with 216 additions and 12 deletions

View File

@@ -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 <http://www.gnu.org/licenses/>.
*/
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();
}
}

View File

@@ -326,10 +326,23 @@
<icon>icon.skill0000</icon> <icon>icon.skill0000</icon>
<operateType>A1</operateType> <operateType>A1</operateType>
</skill> </skill>
<skill id="48054" toLevel="2" name="Burning"> <skill id="48054" toLevel="1" name="Burning">
<!-- When the character is attacking an unique monster, acquired XP/ SP +$s2 for $s1. --> <icon>icon.skill3238</icon>
<icon>icon.skill0000</icon> <operateType>A2</operateType>
<operateType>A1</operateType> <abnormalLevel>1</abnormalLevel>
<abnormalTime>30</abnormalTime>
<isMagic>4</isMagic>
<stayAfterDeath>true</stayAfterDeath>
<targetType>SELF</targetType>
<affectScope>SINGLE</affectScope>
<effects>
<effect name="ExpModify">
<amount>50</amount>
</effect>
<effect name="SpModify">
<amount>50</amount>
</effect>
</effects>
</skill> </skill>
<skill id="48055" toLevel="5" name="Yogi's Energy"> <skill id="48055" toLevel="5" name="Yogi's Energy">
<!-- Even Yogi himself does not understand the nature of this energy. But for sure it is connected to Yogi s Weapon. --> <!-- Even Yogi himself does not understand the nature of this energy. But for sure it is connected to Yogi s Weapon. -->

View File

@@ -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 <http://www.gnu.org/licenses/>.
*/
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();
}
}

View File

@@ -326,10 +326,23 @@
<icon>icon.skill0000</icon> <icon>icon.skill0000</icon>
<operateType>A1</operateType> <operateType>A1</operateType>
</skill> </skill>
<skill id="48054" toLevel="2" name="Burning"> <skill id="48054" toLevel="1" name="Burning">
<!-- When the character is attacking an unique monster, acquired XP/ SP +$s2 for $s1. --> <icon>icon.skill3238</icon>
<icon>icon.skill0000</icon> <operateType>A2</operateType>
<operateType>A1</operateType> <abnormalLevel>1</abnormalLevel>
<abnormalTime>30</abnormalTime>
<isMagic>4</isMagic>
<stayAfterDeath>true</stayAfterDeath>
<targetType>SELF</targetType>
<affectScope>SINGLE</affectScope>
<effects>
<effect name="ExpModify">
<amount>50</amount>
</effect>
<effect name="SpModify">
<amount>50</amount>
</effect>
</effects>
</skill> </skill>
<skill id="48055" toLevel="5" name="Yogi's Energy"> <skill id="48055" toLevel="5" name="Yogi's Energy">
<!-- Even Yogi himself does not understand the nature of this energy. But for sure it is connected to Yogi s Weapon. --> <!-- Even Yogi himself does not understand the nature of this energy. But for sure it is connected to Yogi s Weapon. -->

View File

@@ -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 <http://www.gnu.org/licenses/>.
*/
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();
}
}

View File

@@ -326,10 +326,23 @@
<icon>icon.skill0000</icon> <icon>icon.skill0000</icon>
<operateType>A1</operateType> <operateType>A1</operateType>
</skill> </skill>
<skill id="48054" toLevel="2" name="Burning"> <skill id="48054" toLevel="1" name="Burning">
<!-- When the character is attacking an unique monster, acquired XP/ SP +$s2 for $s1. --> <icon>icon.skill3238</icon>
<icon>icon.skill0000</icon> <operateType>A2</operateType>
<operateType>A1</operateType> <abnormalLevel>1</abnormalLevel>
<abnormalTime>30</abnormalTime>
<isMagic>4</isMagic>
<stayAfterDeath>true</stayAfterDeath>
<targetType>SELF</targetType>
<affectScope>SINGLE</affectScope>
<effects>
<effect name="ExpModify">
<amount>50</amount>
</effect>
<effect name="SpModify">
<amount>50</amount>
</effect>
</effects>
</skill> </skill>
<skill id="48055" toLevel="5" name="Yogi's Energy"> <skill id="48055" toLevel="5" name="Yogi's Energy">
<!-- Even Yogi himself does not understand the nature of this energy. But for sure it is connected to Yogi s Weapon. --> <!-- Even Yogi himself does not understand the nature of this energy. But for sure it is connected to Yogi s Weapon. -->