Noticias:

Debes de estar registrado para poder ver el contenido indicado. Registrate o Conectate

Menú Principal

Unstuck - Custom Animation Skill ID

Iniciado por Swarlog, Ago 19, 2022, 01:28 AM

Tema anterior - Siguiente tema

Swarlog

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

By: lekino