JVBarbosa

[aCis]Leave Buffs On Die

Dec 13th, 2016
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.64 KB | None | 0 0
  1.         ===================================================================
  2. --- Index: config/mods.properties (revision 139)
  3. @@ -177,4 +177,7 @@
  4.  
  5.  # Pk Amount & Title color level 10.
  6.  PkAmount10 = 10000
  7.  TitleForAmount10 = 00FF00
  8. +#
  9. +#Leave buffs on die, if false the effects will be not stopped on die
  10. +LeaveBuffsOnDie = False
  11. +
  12. \ No newline at end of file
  13.  
  14. Index: Trunk/aCis_gameserver/java/net/sf/l2j/Config.java
  15. ===================================================================
  16. --- Trunk/aCis_gameserver/java/net/sf/l2j/Config.java (revision 176)
  17. +++ Trunk/aCis_gameserver/java/net/sf/l2j/Config.java (revision 178)
  18. @@ -126,6 +126,7 @@
  19.      public static int TITLE_COLOR_FOR_PK_AMOUNT8;
  20.      public static int TITLE_COLOR_FOR_PK_AMOUNT9;
  21.      public static int TITLE_COLOR_FOR_PK_AMOUNT10;
  22. +    public static boolean LEAVE_BUFFS_ON_DIE;
  23.      public static boolean DEBUG;
  24.      public static boolean ASSERT;
  25.      public static boolean DEVELOPER;
  26. @@ -2376,6 +2377,7 @@
  27.                  TITLE_COLOR_FOR_PK_AMOUNT8 = Integer.decode((new StringBuilder()).append("0x").append(pvpSettings.getProperty("TitleForAmount8", "00FF00")).toString()).intValue();
  28.                  TITLE_COLOR_FOR_PK_AMOUNT9 = Integer.decode((new StringBuilder()).append("0x").append(pvpSettings.getProperty("TitleForAmount9", "00FF00")).toString()).intValue();
  29.                  TITLE_COLOR_FOR_PK_AMOUNT10 = Integer.decode((new StringBuilder()).append("0x").append(pvpSettings.getProperty("TitleForAmount10", "00FF00")).toString()).intValue();
  30. +                LEAVE_BUFFS_ON_DIE = Boolean.parseBoolean(pvpSettings.getProperty("LeaveBuffsOnDie", "True"));
  31.              }
  32.              catch (Exception e)
  33.              {
  34.  
  35.        
  36. Index: Trunk/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/L2Playable.java    
  37. ===================================================================
  38. --- Trunk/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/L2Playable.java (revision 176)
  39. +++ Trunk/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/L2Playable.java (revision 178)
  40. @@ -1720,7 +1720,12 @@
  41.         // Same thing if the Character isn't a Noblesse Blessed L2Playable
  42.         else if (isNoblesseBlessed())
  43.         {
  44.             stopNoblesseBlessing(null);
  45.            
  46.             // remove Lucky Charm if player have Nobless blessing buff
  47.             if (getCharmOfLuck())
  48.                 stopCharmOfLuck(null);
  49.         }
  50.         else
  51.         +{
  52.         +   if (Config.LEAVE_BUFFS_ON_DIE)
  53.         +   {
  54.                 stopAllEffectsExceptThoseThatLastThroughDeath();
  55.         +   }
  56.         +}
  57.        
  58.         // Send the Server->Client packet StatusUpdate with current HP and MP to all other L2PcInstance to inform
  59.         broadcastStatusUpdate();
  60.        
  61.         // Notify L2Character AI
  62.         getAI().notifyEvent(CtrlEvent.EVT_DEAD);
Advertisement
Add Comment
Please, Sign In to add comment