Source Code Hide Move

Unencrypted Source Code Resource

BAN - L2JDEV

Contributor
contributor
BAN - L2JDEV Rep
1
0
0
Rep
6
BAN - L2JDEV Vouches
0
0
0
Vouches
0
Posts
7
Likes
14
Bits
1 YEAR
1 YEAR OF SERVICE
LEVEL 9 101 XP
Basically, when you have this skill active you gain invisibility and a reduction in your character's speed.
You can easily edit the skill xml and make it a buffer for a specific time.
Code:
===================================================
Index: gameserver/enums/skills/L2EffectType.java
===================================================


public enum L2EffectType
{
    BLOCK_BUFF,
    BLOCK_DEBUFF,
    
    BUFF,
    DEBUFF,
+    HIDE_MOVE,
+
    FAKE_DEATH,
    SILENT_MOVE,
}


===================================================
Index: gameserver/enums/skills/L2EffectFlag.java
===================================================


public enum L2EffectFlag
{
    NONE,
    CHARM_OF_COURAGE,
    CHARM_OF_LUCK,
    PHOENIX_BLESSING,
    NOBLESS_BLESSING,
+    HIDE_MOVE,
+
    SILENT_MOVE,
}


===================================================
info : Crie um novo arquivos os importe nao precisa ser adicionado voce pode puxar eles manualmente de acordo com seu pack
Index: gameserver/skills/effects/EffectHideMove.java
===================================================


+package l2jprojectx.com.gameserver.skills.effects;


+import l2jprojectx.com.gameserver.enums.skills.L2EffectFlag;
+import l2jprojectx.com.gameserver.enums.skills.L2EffectType;
+import l2jprojectx.com.gameserver.enums.skills.L2SkillType;
+import l2jprojectx.com.gameserver.model.L2Effect;
+import l2jprojectx.com.gameserver.model.L2Skill;
+import l2jprojectx.com.gameserver.model.actor.Creature;
+import l2jprojectx.com.gameserver.model.actor.Player;
+import l2jprojectx.com.gameserver.network.SystemMessageId;
+import l2jprojectx.com.gameserver.network.serverpackets.SystemMessage;
+
+public class EffectHideMove extends L2Effect
+{
+    public EffectHideMove(EffectTemplate template, L2Skill skill, Creature effected, Creature effector)
+    {
+        super(template, skill, effected, effector);
+    }
+   
+    @Override
+    public boolean onStart()
+    {
+        super.onStart();
+       
+        ((Player) getEffected()).getAppearance().setVisible(false);
+        ((Player) getEffected()).decayMe();
+        ((Player) getEffected()).broadcastUserInfo();
+        ((Player) getEffected()).spawnMe();
+        return true;
+    }
+   
+    @Override
+    public void onExit()
+    {
+        ((Player) getEffected()).getAppearance().setVisible(true);
+        ((Player) getEffected()).broadcastUserInfo();
+        super.onExit();
+    }
+   
+    @Override
+    public L2EffectType getEffectType()
+    {
+        return L2EffectType.HIDE_MOVE;
+    }
+   
+    @Override
+    public boolean onActionTime()
+    {
+        // Only cont skills shouldn't end
+        if (getSkill().getSkillType() != L2SkillType.CONT)
+            return false;
+       
+        if (getEffected().isDead())
+            return false;
+       
+        if (getValue() > getEffected().getCurrentMp())
+        {
+            getEffected().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_MP));
+            return false;
+        }
+       
+        getEffected().reduceCurrentMp(getValue());
+        return true;
+    }
+   
+    @Override
+    public int getEffectFlags()
+    {
+        return L2EffectFlag.HIDE_MOVE.getMask();
+    }
+}




===================================================
Index: data/xml/skills/HideMove.xml
===================================================
<?xml version="1.0" encoding="UTF-8"?>
<list>
+<skill id="36540" levels="1" name="Hide Move">
+    <set name="mpConsume" val="7"/>
+    <set name="target" val="TARGET_SELF"/>
+    <set name="skillType" val="CONT"/>
+    <set name="operateType" val="OP_TOGGLE"/>
+    <for>
+        <effect count="0x7fffffff" name="HideMove" abnormal="stealth" time="3" val="15">
+        <mul stat="runSpd" val="0.6"/>
+        </effect>
+    </for>
+</skill>
</list>


====================================================
Index: skillname-e.dat
36540    1    Hide Move    Disables preemptive attacks from enemies. Continuously consumes MP.    none    none


Index: skillgrp.dat


36540    1    3    7    -1    0    0.000000    0            icon.skill0221    0    0    0    0    -1    -1
====================================================
====================================================
Index: data/xml/classes/humanFighter.xml
====================================================


<class><!-- Adventurer -->
        <set id="93" baseLvl="76" fists="246"/>
        <set str="40" con="43" dex="30" int="21" wit="11" men="25"/>
        <set pAtk="4" pDef="80" mAtk="6" mDef="41" runSpd="115" walkSpd="80" swimSpd="50"/>
        <set radius="9" radiusFemale="8"/>
        <set height="23" heightFemale="23.5"/>
        <set safeFallHeight="270;250"/>
        <set hpTable="80;91.83;103.79;115.88;128.1;140.45;152.93;165.54;178.28;191.15;204.15;217.28;230.54;243.93;257.45;271.1;284.88;298.79;312.83;327;354.5;382.25;410.25;438.5;467;495.75;524.75;554;583.5;613.25;643.25;673.5;704;734.75;765.75;797;828.5;860.25;892.25;924.5;966.1;1008.02;1050.26;1092.82;1135.7;1178.9;1222.42;1266.26;1310.42;1354.9;1399.7;1444.82;1490.26;1536.02;1582.1;1628.5;1675.22;1722.26;1769.62;1817.3;1865.3;1913.62;1962.26;2011.22;2060.5;2110.1;2160.02;2210.26;2260.82;2311.7;2362.9;2414.42;2466.26;2518.42;2570.9;2623.7;2676.82;2730.26;2784.02;2838.1"/>
        <set mpTable="30;35.46;40.98;46.56;52.2;57.9;63.66;69.48;75.36;81.3;87.3;93.36;99.48;105.66;111.9;118.2;124.56;130.98;137.46;144;153.9;163.89;173.97;184.14;194.4;204.75;215.19;225.72;236.34;247.05;257.85;268.74;279.72;290.79;301.95;313.2;324.54;335.97;347.49;359.1;378.6;398.25;418.05;438;458.1;478.35;498.75;519.3;540;560.85;581.85;603;624.3;645.75;667.35;689.1;711;733.05;755.25;777.6;800.1;822.75;845.55;868.5;891.6;914.85;938.25;961.8;985.5;1009.35;1033.35;1057.5;1081.8;1106.25;1130.85;1155.6;1180.5;1205.55;1230.75;1256.1"/>
        <set cpTable="32;36.732;41.516;46.352;51.24;56.18;61.172;66.216;71.312;76.46;81.66;86.912;92.216;97.572;102.98;108.44;113.952;119.516;125.132;130.8;141.8;152.9;164.1;175.4;186.8;198.3;209.9;221.6;233.4;245.3;257.3;269.4;281.6;293.9;306.3;318.8;331.4;344.1;356.9;369.8;386.44;403.208;420.104;437.128;454.28;471.56;488.968;506.504;524.168;541.96;559.88;577.928;596.104;614.408;632.84;651.4;670.088;688.904;707.848;726.92;746.12;765.448;784.904;804.488;824.2;844.04;864.008;884.104;904.328;924.68;945.16;965.768;986.504;1007.368;1028.36;1049.48;1070.728;1092.104;1113.608;1135.24"/>
        <skills>
            <!-- Wisdom -->
            <skill id="328" lvl="1" cost="12500000" minLvl="76"/>
            <!-- Skill Mastery -->
            <skill id="330" lvl="1" cost="14670000" minLvl="77"/>
            <!-- Focus Skill Mastery -->
            <skill id="334" lvl="1" cost="16000000" minLvl="78"/>
            <!-- Lethal Blow -->
            <skill id="344" lvl="1" cost="12500000" minLvl="76"/>
            <!-- Focus Chance -->
            <skill id="356" lvl="1" cost="16000000" minLvl="78"/>
            <!-- Focus Power -->
            <skill id="357" lvl="1" cost="16000000" minLvl="78"/>
            <!-- Bluff -->
            <skill id="358" lvl="1" cost="14670000" minLvl="77"/>
            <!-- Battle Force -->
            <skill id="426" lvl="1" cost="14670000" minLvl="77"/>
            <!-- Assassination -->
            <skill id="432" lvl="1" cost="16000000" minLvl="78"/>
            <!-- Mirage -->
            <skill id="445" lvl="1" cost="80000000" minLvl="79"/>
            <!-- Symbol of the Assassin -->
            <skill id="460" lvl="1" cost="150000000" minLvl="80"/>
            <!-- Divine Inspiration -->
            <skill id="1405" lvl="3" cost="-1" minLvl="76"/>
            <skill id="1405" lvl="4" cost="-1" minLvl="76"/>
+            <!-- Hide Move -->
+             <skill id="36540" lvl="1" cost="-1" minLvl="76"/>
        </skills>
    </class>


1706947201154.png
 
Liked By 2 members :

splicho

Emudevs Founder
Administrator
splicho Rep
6
0
0
Rep
6
splicho Vouches
3
0
0
Vouches
3
Posts
1,003
Likes
1,435
Bits
2 YEARS
2 YEARS OF SERVICE
LEVEL 250 75 XP
That's some interesting type of skill I have never seen before, lol.
Looking good though! Thank you for the contribution :AYAYA:
 
Liked By 1 member :

3,400

1,272

9,557

428

Top