Secret Experience

Secret Experience (https://secretexperience.net/index.php)
-   [Lineage] Java Mods (https://secretexperience.net/forumdisplay.php?f=636)
-   -   [L2JServer] Custom Unstuck Animation Skill ID (https://secretexperience.net/showthread.php?t=20625)

Guma 18-04-2010 03:44 AM

Custom Unstuck Animation Skill ID
 
Custom Unstuck Animation
basta trocar a Skill ID

Código:

Index: java/net/sf/l2j/gameserver/handler/usercommandhandlers/Escape.java
===================================================================
--- java/net/sf/l2j/gameserver/handler/usercommandhandlers/Escape.java        (revision 716)
+++ java/net/sf/l2j/gameserver/handler/usercommandhandlers/Escape.java        (working copy)
@@ -114,7 +114,7 @@
                // SoE Animation section
                activeChar.setTarget(activeChar);
                activeChar.disableAllSkills();
-                MagicSkillUser msk = new MagicSkillUser(activeChar, 1050, 1, unstuckTimer, 0);
+                MagicSkillUser msk = new MagicSkillUser(activeChar, Config.UNSTUCK_ANIMATION_ID, 1, unstuckTimer, 0);
                Broadcast.toSelfAndKnownPlayersInRadius(activeChar, msk, 810000/* 900 */);
                SetupGauge sg = new SetupGauge(0, unstuckTimer);
                activeChar.sendPacket(sg);
Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java        (revision 716)
+++ java/net/sf/l2j/Config.java        (working copy)
@@ -1444,6 +1450,13 @@
        public static boolean DATABASE_AUTO_OPTIMIZE;
        public static boolean DATABASE_AUTO_REPAIR;
 
+    //Custom Unstuck Animation Skill ID
+    public static int UNSTUCK_ANIMATION_ID;
        /**
          * This class initializes all global variables for configuration.<br>
          * If key doesn't appear in properties file, a default value is setting on by this class.

@@ -2796,46 +2863,50 @@
                                ALLOW_PVP_REWARD = Boolean.parseBoolean(ByLeki.getProperty("AllowPvpRewardSystem", "False"));
                                PVP_REWARD_ITEM = Integer.parseInt(ByLeki.getProperty("PvpRewardItem", "57"));
                                PVP_REWARD_COUNT = Integer.parseInt(ByLeki.getProperty("PvpRewardAmount", "1"));
                                ALLOW_PK_REWARD = Boolean.parseBoolean(ByLeki.getProperty("AllowPkRewardSystem", "False"));
                                PK_REWARD_ITEM = Integer.parseInt(ByLeki.getProperty("PkRewardItem", "57"));
                                PK_REWARD_COUNT = Integer.parseInt(ByLeki.getProperty("PkRewardAmount", "1"));
+                                UNSTUCK_ANIMATION_ID = Integer.parseInt(ByLeki.getProperty("UnstuckAnimationSkillID", "1050"));
                        }
                        catch (Exception e)
                        {
                                e.printStackTrace();
                                throw new Error("Failed to Load " + BY_LEKI + " File.");
                        }
                        /** ************************************************** */
                        /** L2J Teon Custom Properties File -End * */
Index: java/config/Custom/ByLeki.properties
===================================================================
--- java/config/Custom/ByLeki.properties        (revision 714)
+++ java/config/Custom/ByLeki.properties        (working copy)
@@ -471,3 +471,13 @@
 
# Pk reward amount
PkRewardAmount = 1

+# Unstuck Animation Skill ID
+Default: 1050(Skill Return)
+UnstuckAnimationSkillID = 1050

credito : lekino

ChronusxD 30-04-2010 10:45 PM

Oo... queria ver um print tem ?
Isso e pra aquele brilho que aparece tipo o scap ?

ManoeL-ADM 02-05-2010 04:32 PM

issu seria akela ANIMAÇÃO que acontece quando da /unstuck ai ira trokar ela por algum SKILL...


tendeu??

infoway 15-12-2010 01:00 PM

aonde fica isso ?

mend3 15-12-2010 01:22 PM

@infoway
Em cada diff tu acha a index (que informa o arquivo que está sendo modificado), acima de todo o código.
Ex.:
Código:

Index: java/net/sf/l2j/gameserver/handler/usercommandhandlers/Escape.java
Procure por linhas tipo essa para saber qual arquivo editar.


Horários baseados na GMT -3. Agora são 01:01 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.