Addition of Ignition effect.
This commit is contained in:
parent
8f9c6448ae
commit
6833a38d93
@ -193,6 +193,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("HpDrain", HpDrain::new);
|
EffectHandler.getInstance().registerHandler("HpDrain", HpDrain::new);
|
||||||
EffectHandler.getInstance().registerHandler("HpRegen", HpRegen::new);
|
EffectHandler.getInstance().registerHandler("HpRegen", HpRegen::new);
|
||||||
EffectHandler.getInstance().registerHandler("HpToOwner", HpToOwner::new);
|
EffectHandler.getInstance().registerHandler("HpToOwner", HpToOwner::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("Ignition", Ignition::new);
|
||||||
EffectHandler.getInstance().registerHandler("IgnoreDeath", IgnoreDeath::new);
|
EffectHandler.getInstance().registerHandler("IgnoreDeath", IgnoreDeath::new);
|
||||||
EffectHandler.getInstance().registerHandler("ImmobileDamageBonus", ImmobileDamageBonus::new);
|
EffectHandler.getInstance().registerHandler("ImmobileDamageBonus", ImmobileDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("ImmobileDamageResist", ImmobileDamageResist::new);
|
EffectHandler.getInstance().registerHandler("ImmobileDamageResist", ImmobileDamageResist::new);
|
||||||
|
62
L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/effecthandlers/Ignition.java
vendored
Normal file
62
L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/effecthandlers/Ignition.java
vendored
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
* 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 handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.commons.threads.ThreadPool;
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||||
|
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
|
import org.l2jmobius.gameserver.model.item.instance.Item;
|
||||||
|
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.ExUserInfoEquipSlot;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Mobius
|
||||||
|
*/
|
||||||
|
public class Ignition extends AbstractEffect
|
||||||
|
{
|
||||||
|
public Ignition(StatSet params)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public long getEffectFlags()
|
||||||
|
{
|
||||||
|
return EffectFlag.IGNITION.getMask();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStart(Creature effector, Creature effected, Skill skill, Item item)
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
effector.sendPacket(new ExUserInfoEquipSlot(effector.getActingPlayer()));
|
||||||
|
effector.broadcastInfo();
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onExit(Creature effector, Creature effected, Skill skill)
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
effector.sendPacket(new ExUserInfoEquipSlot(effector.getActingPlayer()));
|
||||||
|
effector.broadcastInfo();
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
|
}
|
@ -929,7 +929,7 @@
|
|||||||
<itemConsumeCount>5</itemConsumeCount>
|
<itemConsumeCount>5</itemConsumeCount>
|
||||||
<itemConsumeId>1785</itemConsumeId>
|
<itemConsumeId>1785</itemConsumeId>
|
||||||
<effects>
|
<effects>
|
||||||
<!-- <effect name="ConvertItem" /> -->
|
<effect name="Ignition" />
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
<amount>
|
<amount>
|
||||||
<value level="1">10</value>
|
<value level="1">10</value>
|
||||||
|
@ -163,6 +163,7 @@ HpDrain: Magical attack that absorbs given percentage of the damage inflicted as
|
|||||||
Hp: Increases current HP by a static value.
|
Hp: Increases current HP by a static value.
|
||||||
HpRegen: HP Regeneration stat.
|
HpRegen: HP Regeneration stat.
|
||||||
HpToOwner: DOT effect that absorbs HP over time.
|
HpToOwner: DOT effect that absorbs HP over time.
|
||||||
|
Ignition: Transforms sword to Death Knight's Flame Sword. (l2jmobius)
|
||||||
IgnoreDeath: Become undying. Hp cannot decrease below 1.
|
IgnoreDeath: Become undying. Hp cannot decrease below 1.
|
||||||
ImmobileDamageBonus: Bonus damage to immobile targets. (l2jmobius)
|
ImmobileDamageBonus: Bonus damage to immobile targets. (l2jmobius)
|
||||||
ImmobileDamageResist: Resist damage while immobile. (l2jmobius)
|
ImmobileDamageResist: Resist damage while immobile. (l2jmobius)
|
||||||
|
@ -58,7 +58,8 @@ public enum EffectFlag
|
|||||||
CHAT_BLOCK,
|
CHAT_BLOCK,
|
||||||
FAKE_DEATH,
|
FAKE_DEATH,
|
||||||
DUELIST_FURY,
|
DUELIST_FURY,
|
||||||
FEAR;
|
FEAR,
|
||||||
|
IGNITION;
|
||||||
|
|
||||||
public long getMask()
|
public long getMask()
|
||||||
{
|
{
|
||||||
|
@ -49,6 +49,7 @@ import org.l2jmobius.gameserver.model.VariationInstance;
|
|||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
|
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerItemUnequip;
|
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerItemUnequip;
|
||||||
import org.l2jmobius.gameserver.model.holders.AgathionSkillHolder;
|
import org.l2jmobius.gameserver.model.holders.AgathionSkillHolder;
|
||||||
@ -1379,7 +1380,17 @@ public abstract class Inventory extends ItemContainer
|
|||||||
public int getPaperdollItemVisualId(int slot)
|
public int getPaperdollItemVisualId(int slot)
|
||||||
{
|
{
|
||||||
final Item item = _paperdoll[slot];
|
final Item item = _paperdoll[slot];
|
||||||
return (item != null) ? item.getVisualId() : 0;
|
if (item == null)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item.isWeapon() && getOwner().isAffected(EffectFlag.IGNITION) && (item.getWeaponItem().getItemType() == WeaponType.SWORD) && (item.getWeaponItem().getBodyPart() != ItemTemplate.SLOT_LR_HAND))
|
||||||
|
{
|
||||||
|
return 82118; // Death Knight's Flame Sword
|
||||||
|
}
|
||||||
|
|
||||||
|
return item.getVisualId();
|
||||||
}
|
}
|
||||||
|
|
||||||
public VariationInstance getPaperdollAugmentation(int slot)
|
public VariationInstance getPaperdollAugmentation(int slot)
|
||||||
|
Loading…
Reference in New Issue
Block a user