O_o Posted February 13, 2010 Posted February 13, 2010 How can i make for when die and no have noblesse to not loose buffs ?
0 Matim Posted February 13, 2010 Posted February 13, 2010 Check this boolean in L2PcInstance.java public boolean doDie(L2Character killer)
0 O_o Posted February 13, 2010 Author Posted February 13, 2010 I check it but I didn't see something about removing buffs :\
0 Grierosu Posted February 13, 2010 Posted February 13, 2010 you must add this startNoblesseBlessing(); in Pcinstance.
0 O_o Posted February 13, 2010 Author Posted February 13, 2010 you must add this startNoblesseBlessing(); in Pcinstance. K thx I will test
0 Kwlotoumpas Posted February 13, 2010 Posted February 13, 2010 Or else you can make noblesse skill as passive and add it in all newbie classes from skill trees ;)
0 O_o Posted February 13, 2010 Author Posted February 13, 2010 Or else you can make noblesse skill as passive and add it in all newbie classes from skill trees ;) And how I make the skill passive ?
0 Kwlotoumpas Posted February 13, 2010 Posted February 13, 2010 And how I make the skill passive ? Im not 100% sure that it works.I didnt test it. <set name="skillType" val="PASSIVE"/> <set name="operateType" val="OP_PASSIVE"/>
0 Belzebul Posted February 13, 2010 Posted February 13, 2010 Im not 100% sure that it works.I didnt test it. <set name="skillType" val="PASSIVE"/> <set name="operateType" val="OP_PASSIVE"/> crap.
0 O_o Posted February 14, 2010 Author Posted February 14, 2010 Im not 100% sure that it works.I didnt test it. <set name="skillType" val="PASSIVE"/> <set name="operateType" val="OP_PASSIVE"/> No works like that need and core.
0 Setekh Posted February 14, 2010 Posted February 14, 2010 loled at the solutions.. So what do u need it for? interlude or gracia + ? Index: E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/Config.java =================================================================== --- E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/Config.java (revision 3933) +++ E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/Config.java (working copy) @@ -86,6 +86,7 @@ public static double RESPAWN_RESTORE_MP; public static boolean ALT_GAME_TIREDNESS; public static boolean ENABLE_MODIFY_SKILL_DURATION; + public static boolean DONT_LOSE_BUFFS_ON_DEATH; public static TIntIntHashMap SKILL_DURATION_LIST; public static boolean ENABLE_MODIFY_SKILL_REUSE; public static TIntIntHashMap SKILL_REUSE_LIST; @@ -1257,8 +1258,9 @@ MP_REGEN_MULTIPLIER = Double.parseDouble(Character.getProperty("MpRegenMultiplier", "100")) /100; CP_REGEN_MULTIPLIER = Double.parseDouble(Character.getProperty("CpRegenMultiplier", "100")) /100; ALT_GAME_TIREDNESS = Boolean.parseBoolean(Character.getProperty("AltGameTiredness", "false")); + DONT_LOSE_BUFFS_ON_DEATH = Boolean.parseBoolean(Character.getProperty("DontLoseBuffs", "false")); ENABLE_MODIFY_SKILL_DURATION = Boolean.parseBoolean(Character.getProperty("EnableModifySkillDuration", "false")); - + // Create Map only if enabled if (ENABLE_MODIFY_SKILL_DURATION) { Index: E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/gameserver/model/actor/L2Playable.java =================================================================== --- E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/gameserver/model/actor/L2Playable.java (revision 3933) +++ E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/gameserver/model/actor/L2Playable.java (working copy) @@ -14,6 +14,7 @@ */ package com.l2jserver.gameserver.model.actor; +import com.l2jserver.Config; import com.l2jserver.gameserver.ai.CtrlEvent; import com.l2jserver.gameserver.model.L2Effect; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; @@ -242,7 +243,7 @@ } // Support for Soul of the Phoenix and Salvation skills - public final boolean isPhoenixBlessed() { return _isPhoenixBlessed; } + public final boolean isPhoenixBlessed() { return _isPhoenixBlessed || Config.DONT_LOSE_BUFFS_ON_DEATH; } public final void setIsPhoenixBlessed(boolean value) { _isPhoenixBlessed = value; } public final void startPhoenixBlessing() Index: E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 3933) +++ E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -5603,7 +5603,10 @@ AntiFeedManager.getInstance().setLastDeathTime(getObjectId()); if (isPhoenixBlessed()) - reviveRequest(this, null, false); + { + if(!Config.DONT_LOSE_BUFFS_ON_DEATH) + reviveRequest(this, null, false); + } else if (getCharmOfCourage() && this.isInSiege()) { reviveRequest(this, null, false); Index: E:/L2j Development/workspace/L2-JunkBox/java/config/Character.properties =================================================================== --- E:/L2j Development/workspace/L2-JunkBox/java/config/Character.properties (revision 3933) +++ E:/L2j Development/workspace/L2-JunkBox/java/config/Character.properties (working copy) @@ -58,6 +58,8 @@ # Default: False AltGameTiredness = False +# Don't lose buffs on death.. +DontLoseBuffs = false # --------------------------------------------------------------------------- # Skills & Effects This is 1 way.. can be done in antoher.. or even another O.o or nothing to do with phx blessing ^^ EDIT: Lupu1 i wanna talk to you smth bout l2dubai.. pm me.
0 O_o Posted February 14, 2010 Author Posted February 14, 2010 loled at the solutions.. So what do u need it for? interlude or gracia + ? Index: E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/Config.java =================================================================== --- E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/Config.java (revision 3933) +++ E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/Config.java (working copy) @@ -86,6 +86,7 @@ public static double RESPAWN_RESTORE_MP; public static boolean ALT_GAME_TIREDNESS; public static boolean ENABLE_MODIFY_SKILL_DURATION; + public static boolean DONT_LOSE_BUFFS_ON_DEATH; public static TIntIntHashMap SKILL_DURATION_LIST; public static boolean ENABLE_MODIFY_SKILL_REUSE; public static TIntIntHashMap SKILL_REUSE_LIST; @@ -1257,8 +1258,9 @@ MP_REGEN_MULTIPLIER = Double.parseDouble(Character.getProperty("MpRegenMultiplier", "100")) /100; CP_REGEN_MULTIPLIER = Double.parseDouble(Character.getProperty("CpRegenMultiplier", "100")) /100; ALT_GAME_TIREDNESS = Boolean.parseBoolean(Character.getProperty("AltGameTiredness", "false")); + DONT_LOSE_BUFFS_ON_DEATH = Boolean.parseBoolean(Character.getProperty("DontLoseBuffs", "false")); ENABLE_MODIFY_SKILL_DURATION = Boolean.parseBoolean(Character.getProperty("EnableModifySkillDuration", "false")); - + // Create Map only if enabled if (ENABLE_MODIFY_SKILL_DURATION) { Index: E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/gameserver/model/actor/L2Playable.java =================================================================== --- E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/gameserver/model/actor/L2Playable.java (revision 3933) +++ E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/gameserver/model/actor/L2Playable.java (working copy) @@ -14,6 +14,7 @@ */ package com.l2jserver.gameserver.model.actor; +import com.l2jserver.Config; import com.l2jserver.gameserver.ai.CtrlEvent; import com.l2jserver.gameserver.model.L2Effect; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; @@ -242,7 +243,7 @@ } // Support for Soul of the Phoenix and Salvation skills - public final boolean isPhoenixBlessed() { return _isPhoenixBlessed; } + public final boolean isPhoenixBlessed() { return _isPhoenixBlessed || Config.DONT_LOSE_BUFFS_ON_DEATH; } public final void setIsPhoenixBlessed(boolean value) { _isPhoenixBlessed = value; } public final void startPhoenixBlessing() Index: E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 3933) +++ E:/L2j Development/workspace/L2-JunkBox/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -5603,7 +5603,10 @@ AntiFeedManager.getInstance().setLastDeathTime(getObjectId()); if (isPhoenixBlessed()) - reviveRequest(this, null, false); + { + if(!Config.DONT_LOSE_BUFFS_ON_DEATH) + reviveRequest(this, null, false); + } else if (getCharmOfCourage() && this.isInSiege()) { reviveRequest(this, null, false); Index: E:/L2j Development/workspace/L2-JunkBox/java/config/Character.properties =================================================================== --- E:/L2j Development/workspace/L2-JunkBox/java/config/Character.properties (revision 3933) +++ E:/L2j Development/workspace/L2-JunkBox/java/config/Character.properties (working copy) @@ -58,6 +58,8 @@ # Default: False AltGameTiredness = False +# Don't lose buffs on death.. +DontLoseBuffs = false # --------------------------------------------------------------------------- # Skills & Effects This is 1 way.. can be done in antoher.. or even another O.o or nothing to do with phx blessing ^^ EDIT: Lupu1 i wanna talk to you smth bout l2dubai.. pm me. Gracia Epilogue
0 O_o Posted February 14, 2010 Author Posted February 14, 2010 k thats gracia epilogue ^^ K thx, have pm
Question
O_o
How can i make for when die and no have noblesse to not loose buffs ?
15 answers to this question
Recommended Posts