Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ===================================================================
- --- Index: config/mods.properties (revision 139)
- @@ -177,4 +177,7 @@
- # Pk Amount & Title color level 10.
- PkAmount10 = 10000
- TitleForAmount10 = 00FF00
- +#
- +#Leave buffs on die, if false the effects will be not stopped on die
- +LeaveBuffsOnDie = False
- +
- \ No newline at end of file
- Index: Trunk/aCis_gameserver/java/net/sf/l2j/Config.java
- ===================================================================
- --- Trunk/aCis_gameserver/java/net/sf/l2j/Config.java (revision 176)
- +++ Trunk/aCis_gameserver/java/net/sf/l2j/Config.java (revision 178)
- @@ -126,6 +126,7 @@
- public static int TITLE_COLOR_FOR_PK_AMOUNT8;
- public static int TITLE_COLOR_FOR_PK_AMOUNT9;
- public static int TITLE_COLOR_FOR_PK_AMOUNT10;
- + public static boolean LEAVE_BUFFS_ON_DIE;
- public static boolean DEBUG;
- public static boolean ASSERT;
- public static boolean DEVELOPER;
- @@ -2376,6 +2377,7 @@
- TITLE_COLOR_FOR_PK_AMOUNT8 = Integer.decode((new StringBuilder()).append("0x").append(pvpSettings.getProperty("TitleForAmount8", "00FF00")).toString()).intValue();
- TITLE_COLOR_FOR_PK_AMOUNT9 = Integer.decode((new StringBuilder()).append("0x").append(pvpSettings.getProperty("TitleForAmount9", "00FF00")).toString()).intValue();
- TITLE_COLOR_FOR_PK_AMOUNT10 = Integer.decode((new StringBuilder()).append("0x").append(pvpSettings.getProperty("TitleForAmount10", "00FF00")).toString()).intValue();
- + LEAVE_BUFFS_ON_DIE = Boolean.parseBoolean(pvpSettings.getProperty("LeaveBuffsOnDie", "True"));
- }
- catch (Exception e)
- {
- Index: Trunk/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/L2Playable.java
- ===================================================================
- --- Trunk/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/L2Playable.java (revision 176)
- +++ Trunk/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/L2Playable.java (revision 178)
- @@ -1720,7 +1720,12 @@
- // Same thing if the Character isn't a Noblesse Blessed L2Playable
- else if (isNoblesseBlessed())
- {
- stopNoblesseBlessing(null);
- // remove Lucky Charm if player have Nobless blessing buff
- if (getCharmOfLuck())
- stopCharmOfLuck(null);
- }
- else
- +{
- + if (Config.LEAVE_BUFFS_ON_DIE)
- + {
- stopAllEffectsExceptThoseThatLastThroughDeath();
- + }
- +}
- // Send the Server->Client packet StatusUpdate with current HP and MP to all other L2PcInstance to inform
- broadcastStatusUpdate();
- // Notify L2Character AI
- getAI().notifyEvent(CtrlEvent.EVT_DEAD);
Advertisement
Add Comment
Please, Sign In to add comment