Armor Breaker and Power Bluff skills.
Contributed by hitnar.
This commit is contained in:
parent
b0f569aa61
commit
e5420a9aa2
@ -156,6 +156,7 @@ final class EffectMasterHandler
|
|||||||
RefuelAirship.class,
|
RefuelAirship.class,
|
||||||
Relax.class,
|
Relax.class,
|
||||||
RemoteControl.class,
|
RemoteControl.class,
|
||||||
|
RemoveArmor.class,
|
||||||
RemoveTarget.class,
|
RemoveTarget.class,
|
||||||
ResistSkill.class,
|
ResistSkill.class,
|
||||||
Restoration.class,
|
Restoration.class,
|
||||||
|
53
trunk/dist/game/data/scripts/handlers/effecthandlers/RemoveArmor.java
vendored
Normal file
53
trunk/dist/game/data/scripts/handlers/effecthandlers/RemoveArmor.java
vendored
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
/*
|
||||||
|
* 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 com.l2jmobius.gameserver.model.StatsSet;
|
||||||
|
import com.l2jmobius.gameserver.model.conditions.Condition;
|
||||||
|
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||||
|
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||||
|
import com.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disarm effect implementation.
|
||||||
|
* @author hitnar
|
||||||
|
*/
|
||||||
|
public final class RemoveArmor extends AbstractEffect
|
||||||
|
{
|
||||||
|
public RemoveArmor(Condition attachCond, Condition applyCond, StatsSet set, StatsSet params)
|
||||||
|
{
|
||||||
|
super(attachCond, applyCond, set, params);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canStart(BuffInfo info)
|
||||||
|
{
|
||||||
|
return info.getEffected().isPlayer();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getEffectFlags()
|
||||||
|
{
|
||||||
|
return EffectFlag.DISARMED.getMask();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStart(BuffInfo info)
|
||||||
|
{
|
||||||
|
info.getEffected().getActingPlayer().disarmArmor();
|
||||||
|
}
|
||||||
|
}
|
@ -933,7 +933,7 @@
|
|||||||
<set name="reuseDelay" val="60000" />
|
<set name="reuseDelay" val="60000" />
|
||||||
<set name="magicLvl" val="#magicLvl" />
|
<set name="magicLvl" val="#magicLvl" />
|
||||||
<set name="targetType" val="SELF" />
|
<set name="targetType" val="SELF" />
|
||||||
<set name="operateType" val="ACTIVE_INSTANT" />
|
<set name="operateType" val="ACTIVE_CONTINUOUS" />
|
||||||
<enchant1 name="mpConsume" val="#ench1MpConsume" />
|
<enchant1 name="mpConsume" val="#ench1MpConsume" />
|
||||||
<enchant2 name="abnormalTime" val="#ench2abnormalTime" />
|
<enchant2 name="abnormalTime" val="#ench2abnormalTime" />
|
||||||
<enchant9 name="reuseDelay" val="#ench9Reuse" />
|
<enchant9 name="reuseDelay" val="#ench9Reuse" />
|
||||||
@ -1877,9 +1877,15 @@
|
|||||||
<using kind="DAGGER, DUALDAGGER" />
|
<using kind="DAGGER, DUALDAGGER" />
|
||||||
</cond>
|
</cond>
|
||||||
<for>
|
<for>
|
||||||
<effect name="Bluff" />
|
<effect name="Bluff">
|
||||||
<effect name="Stun" />
|
<param chance="80" />
|
||||||
<effect name="TargetCancel" />
|
</effect>
|
||||||
|
<effect name="TargetCancel">
|
||||||
|
<param chance="80" />
|
||||||
|
</effect>
|
||||||
|
<effect name="DeleteHateOfMe">
|
||||||
|
<param chance="80" />
|
||||||
|
</effect>
|
||||||
<effect name="TriggerSkillByAttack">
|
<effect name="TriggerSkillByAttack">
|
||||||
<param attackerType="L2Character" minAttackerLevel="1" maxAttackerLevel="100" />
|
<param attackerType="L2Character" minAttackerLevel="1" maxAttackerLevel="100" />
|
||||||
<param minDamage="1" chance="70" />
|
<param minDamage="1" chance="70" />
|
||||||
|
@ -50,10 +50,34 @@
|
|||||||
</skill>
|
</skill>
|
||||||
<!-- Cancels target's armor for $s1. Requires dagger/dual dagger. Consumes $s2 Soulstones. -->
|
<!-- Cancels target's armor for $s1. Requires dagger/dual dagger. Consumes $s2 Soulstones. -->
|
||||||
<skill id="10703" levels="3" name="Armor Breaker">
|
<skill id="10703" levels="3" name="Armor Breaker">
|
||||||
<!-- AUTO GENERATED INFINITE ODYSSEY SKILL TODO: FIX IT -->
|
<set name="icon" val="icon.skill10703" />
|
||||||
<set name="icon" val="icon.skill0000" />
|
<set name="abnormalLvl" val="1" />
|
||||||
<set name="operateType" val="ACTIVE_INSTANT" />
|
<set name="abnormalTime" val="5" />
|
||||||
<set name="targetType" val="SELF" />
|
<set name="abnormalType" val="DISBODY" />
|
||||||
|
<set name="abnormalVisualEffect" val="DOT_BLEEDING" />
|
||||||
|
<set name="activateRate" val="90" />
|
||||||
|
<set name="power" val="50" />
|
||||||
|
<set name="basicProperty" val="STR" />
|
||||||
|
<set name="castRange" val="40" />
|
||||||
|
<set name="coolTime" val="500" />
|
||||||
|
<set name="effectPoint" val="-100" />
|
||||||
|
<set name="effectRange" val="200" />
|
||||||
|
<set name="hitTime" val="1000" />
|
||||||
|
<set name="isDebuff" val="true" />
|
||||||
|
<set name="lvlBonusRate" val="1" />
|
||||||
|
<set name="magicLvl" val="99" />
|
||||||
|
<set name="mpConsume" val="77" />
|
||||||
|
<set name="operateType" val="ACTIVE_CONTINUOUS" />
|
||||||
|
<set name="reuseDelay" val="90000" />
|
||||||
|
<set name="rideState" val="NONE" />
|
||||||
|
<set name="targetType" val="ONE" />
|
||||||
|
<set name="itemConsumeCount" val="2" />
|
||||||
|
<set name="itemConsumeId" val="3031" /> <!-- Spirit Ore -->
|
||||||
|
<for>
|
||||||
|
<effect name="RemoveArmor">
|
||||||
|
<param chance="80" />
|
||||||
|
</effect>
|
||||||
|
</for>
|
||||||
</skill>
|
</skill>
|
||||||
<!-- Reveals the enemy's back and inflicts Stun for $s1. Requires dagger/dual dagger. Consumes $s2 Soulstones. -->
|
<!-- Reveals the enemy's back and inflicts Stun for $s1. Requires dagger/dual dagger. Consumes $s2 Soulstones. -->
|
||||||
<skill id="10704" levels="3" name="Mass Power Bluff">
|
<skill id="10704" levels="3" name="Mass Power Bluff">
|
||||||
|
BIN
trunk/dist/game/data/stats/skills/TODO.xlsx
vendored
BIN
trunk/dist/game/data/stats/skills/TODO.xlsx
vendored
Binary file not shown.
@ -6607,6 +6607,47 @@ public final class L2PcInstance extends L2Playable
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disarm the player's Armor.
|
||||||
|
* @return {@code true}.
|
||||||
|
*/
|
||||||
|
public boolean disarmArmor()
|
||||||
|
{
|
||||||
|
final L2ItemInstance chest = getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
||||||
|
if (chest != null)
|
||||||
|
{
|
||||||
|
final L2ItemInstance[] unequiped = getInventory().unEquipItemInBodySlotAndRecord(chest.getItem().getBodyPart());
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
|
for (L2ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
|
sendPacket(iu);
|
||||||
|
|
||||||
|
abortAttack();
|
||||||
|
broadcastUserInfo();
|
||||||
|
|
||||||
|
// this can be 0 if the user pressed the right mousebutton twice very fast
|
||||||
|
if (unequiped.length > 0)
|
||||||
|
{
|
||||||
|
SystemMessage sm = null;
|
||||||
|
if (unequiped[0].getEnchantLevel() > 0)
|
||||||
|
{
|
||||||
|
sm = SystemMessage.getSystemMessage(SystemMessageId.THE_EQUIPMENT_S1_S2_HAS_BEEN_REMOVED);
|
||||||
|
sm.addInt(unequiped[0].getEnchantLevel());
|
||||||
|
sm.addItemName(unequiped[0]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sm = SystemMessage.getSystemMessage(SystemMessageId.S1_HAS_BEEN_UNEQUIPPED);
|
||||||
|
sm.addItemName(unequiped[0]);
|
||||||
|
}
|
||||||
|
sendPacket(sm);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean mount(L2Summon pet)
|
public boolean mount(L2Summon pet)
|
||||||
{
|
{
|
||||||
if (!Config.ALLOW_MOUNTS_DURING_SIEGE && isInsideZone(ZoneId.SIEGE))
|
if (!Config.ALLOW_MOUNTS_DURING_SIEGE && isInsideZone(ZoneId.SIEGE))
|
||||||
|
@ -117,6 +117,7 @@ public enum AbnormalType
|
|||||||
DERANGEMENT,
|
DERANGEMENT,
|
||||||
DETECT_WEAKNESS,
|
DETECT_WEAKNESS,
|
||||||
DISARM,
|
DISARM,
|
||||||
|
DISBODY,
|
||||||
DITTY_BUFF,
|
DITTY_BUFF,
|
||||||
DMG_SHIELD,
|
DMG_SHIELD,
|
||||||
DOT_ATTR,
|
DOT_ATTR,
|
||||||
|
Loading…
Reference in New Issue
Block a user