Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: trunk/dist/game/data/scripts/handlers/EffectMasterHandler.java
- ===================================================================
- --- trunk/dist/game/data/scripts/handlers/EffectMasterHandler.java (revision 1246)
- +++ trunk/dist/game/data/scripts/handlers/EffectMasterHandler.java (working copy)
- @@ -79,6 +79,7 @@
- DetectHiddenObjects.class,
- Detection.class,
- Disarm.class,
- + Disbody.class,
- DispelAll.class,
- DispelByCategory.class,
- DispelBySlot.class,
- Index: trunk/dist/game/data/scripts/handlers/effecthandlers/Disbody.java
- ===================================================================
- --- trunk/dist/game/data/scripts/handlers/effecthandlers/Disbody.java (revision 0)
- +++ trunk/dist/game/data/scripts/handlers/effecthandlers/Disbody.java (revision 0)
- @@ -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 nBd
- + */
- +public final class Disbody extends AbstractEffect
- +{
- + public Disbody(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().disarmBody();
- + }
- +}
- Index: trunk/dist/game/data/stats/skills/10500-10599.xml
- ===================================================================
- --- trunk/dist/game/data/stats/skills/10500-10599.xml (revision 1246)
- +++ trunk/dist/game/data/stats/skills/10500-10599.xml (working copy)
- @@ -933,7 +933,7 @@
- <set name="reuseDelay" val="60000" />
- <set name="magicLvl" val="#magicLvl" />
- <set name="targetType" val="SELF" />
- - <set name="operateType" val="ACTIVE_INSTANT" />
- + <set name="operateType" val="ACTIVE_CONTINUOUS" />
- <enchant1 name="mpConsume" val="#ench1MpConsume" />
- <enchant2 name="abnormalTime" val="#ench2abnormalTime" />
- <enchant9 name="reuseDelay" val="#ench9Reuse" />
- @@ -1877,9 +1877,15 @@
- <using kind="DAGGER, DUALDAGGER" />
- </cond>
- <for>
- - <effect name="Bluff" />
- - <effect name="Stun" />
- - <effect name="TargetCancel" />
- + <effect name="Bluff">
- + <param chance="80" />
- + </effect>
- + <effect name="TargetCancel">
- + <param chance="80" />
- + </effect>
- + <effect name="DeleteHateOfMe">
- + <param chance="80" />
- + </effect>
- <effect name="TriggerSkillByAttack">
- <param attackerType="L2Character" minAttackerLevel="1" maxAttackerLevel="100" />
- <param minDamage="1" chance="70" />
- Index: trunk/dist/game/data/stats/skills/10700-10799.xml
- ===================================================================
- --- trunk/dist/game/data/stats/skills/10700-10799.xml (revision 1246)
- +++ trunk/dist/game/data/stats/skills/10700-10799.xml (working copy)
- @@ -50,10 +50,35 @@
- </skill>
- <!-- Cancels target's armor for $s1. Requires dagger/dual dagger. Consumes $s2 Soulstones. -->
- <skill id="10703" levels="3" name="Armor Breaker">
- - <!-- AUTO GENERATED INFINITE ODYSSEY SKILL TODO: FIX IT -->
- - <set name="icon" val="icon.skill0000" />
- - <set name="operateType" val="ACTIVE_INSTANT" />
- - <set name="targetType" val="SELF" />
- + <!-- FIX CHANCE -->
- + <set name="icon" val="icon.skill10703" />
- + <set name="abnormalLvl" val="1" />
- + <set name="abnormalTime" val="5" />
- + <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="Disbody">
- + <param chance="80" />
- + </effect>
- + </for>
- </skill>
- <!-- 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">
- Index: trunk/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java
- ===================================================================
- --- trunk/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java (revision 1246)
- +++ trunk/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java (working copy)
- @@ -6614,6 +6614,47 @@
- return true;
- }
- + /**
- + * Disarm the player's Body.
- + * @return {@code true}.
- + */
- + public boolean disarmBody()
- + {
- + final L2ItemInstance sld = getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST);
- + if (sld != null)
- + {
- + final L2ItemInstance[] unequiped = getInventory().unEquipItemInBodySlotAndRecord(sld.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)
- {
- if (!Config.ALLOW_MOUNTS_DURING_SIEGE && isInsideZone(ZoneId.SIEGE))
- Index: trunk/java/com/l2jmobius/gameserver/model/skills/AbnormalType.java
- ===================================================================
- --- trunk/java/com/l2jmobius/gameserver/model/skills/AbnormalType.java (revision 1246)
- +++ trunk/java/com/l2jmobius/gameserver/model/skills/AbnormalType.java (working copy)
- @@ -117,6 +117,7 @@
- DERANGEMENT,
- DETECT_WEAKNESS,
- DISARM,
- + DISBODY,
- DITTY_BUFF,
- DMG_SHIELD,
- DOT_ATTR,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement