Secret Experience

Secret Experience (https://secretexperience.net/index.php)
-   [L2J] Dúvidas Solucionadas (https://secretexperience.net/forumdisplay.php?f=653)
-   -   Quando morre nao perde os buff? (https://secretexperience.net/showthread.php?t=29071)

alessandroht 26-01-2011 03:26 PM

Quando morre nao perde os buff?
 
Ola como que eu faço para colocar quando morre nao perde os buffs ..mesmo estando sem nobless ?

ha possibilidades disso?

Mazokista 26-01-2011 11:07 PM

Sim seria um modificacao no java ate tenho essa modificacar aqui no caso vc teria qui ter um pouco de conhecimento em compilar e adicionamento de mod

alessandroht 27-01-2011 10:53 AM

Sim .. Tenhu um pouco de Conhecimento em add mod e copilar ! :wubclub:

Poderia postar essa modificação =:cute:

Mazokista 27-01-2011 12:00 PM

Código:

Index: Trunk/L2JTitanPlus/L2JTitanPlus_CORE/java/config/Mods/pvp.ini
===================================================================
--- Trunk/L2JTitanPlus/L2JTitanPlus_CORE/java/config/Mods/pvp.ini (revision 139)
+++ Trunk/L2JTitanPlus/L2JTitanPlus_CORE/java/config/Mods/pvp.ini (revision 178)
@@ -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/L2JTitanPlus/L2JTitanPlus_CORE/java/com/l2jtitanplus/Config.java
===================================================================
--- Trunk/L2JTitanPlus/L2JTitanPlus_CORE/java/com/l2jtitanplus/Config.java (revision 176)
+++ Trunk/L2JTitanPlus/L2JTitanPlus_CORE/java/com/l2jtitanplus/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/L2JTitanPlus/L2JTitanPlus_CORE/java/com/l2jtitanplus/gameserver/model/L2Character.java               
===================================================================
--- Trunk/L2JTitanPlus/L2JTitanPlus_CORE/java/com/l2jtitanplus/gameserver/model/L2Character.java (revision 176)
+++ Trunk/L2JTitanPlus/L2JTitanPlus_CORE/java/com/l2jtitanplus/gameserver/model/L2Character.java (revision 178)
@@ -1720,7 +1720,12 @@
                        ((L2PlayableInstance)this).stopCharmOfLuck(null);
                }
                else
-                        stopAllEffects();
+                {
+                        if (Config.LEAVE_BUFFS_ON_DIE)
+                        {
+                                stopAllEffects();
+                        }
+                }
               
                calculateRewards(killer);



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

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