Addition of Primeval Isle Burning buff.
Contributed by petryxa.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
@@ -326,10 +326,23 @@
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
</skill>
|
||||
<skill id="48054" toLevel="2" name="Burning">
|
||||
<!-- When the character is attacking an unique monster, acquired XP/ SP +$s2 for $s1. -->
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
<skill id="48054" toLevel="1" name="Burning">
|
||||
<icon>icon.skill3238</icon>
|
||||
<operateType>A2</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 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. -->
|
||||
|
55
L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/PrimevalIsle/BurningBuff.java
vendored
Normal file
55
L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/PrimevalIsle/BurningBuff.java
vendored
Normal 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();
|
||||
}
|
||||
}
|
@@ -326,10 +326,23 @@
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
</skill>
|
||||
<skill id="48054" toLevel="2" name="Burning">
|
||||
<!-- When the character is attacking an unique monster, acquired XP/ SP +$s2 for $s1. -->
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
<skill id="48054" toLevel="1" name="Burning">
|
||||
<icon>icon.skill3238</icon>
|
||||
<operateType>A2</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 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. -->
|
||||
|
55
L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/PrimevalIsle/BurningBuff.java
vendored
Normal file
55
L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/ai/areas/PrimevalIsle/BurningBuff.java
vendored
Normal 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();
|
||||
}
|
||||
}
|
@@ -326,10 +326,23 @@
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
</skill>
|
||||
<skill id="48054" toLevel="2" name="Burning">
|
||||
<!-- When the character is attacking an unique monster, acquired XP/ SP +$s2 for $s1. -->
|
||||
<icon>icon.skill0000</icon>
|
||||
<operateType>A1</operateType>
|
||||
<skill id="48054" toLevel="1" name="Burning">
|
||||
<icon>icon.skill3238</icon>
|
||||
<operateType>A2</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 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. -->
|
||||
|
Reference in New Issue
Block a user