kingmert Posted September 7, 2016 Share Posted September 7, 2016 I'm looking for L2JFROZEN last rev ---SPAWN PROTECION EFFECT ------someone to me help????? Link to comment Share on other sites More sharing options...
0 ganjaradio Posted September 7, 2016 Share Posted September 7, 2016 (edited) Check configs Edited September 7, 2016 by ganjaradio Link to comment Share on other sites More sharing options...
0 kingmert Posted September 7, 2016 Author Share Posted September 7, 2016 Check configs i'm dont need SPAWN PROTECION TIME i need to adapt effect on spawn protecion :P Link to comment Share on other sites More sharing options...
0 Tessa Posted September 7, 2016 Share Posted September 7, 2016 Use startAbnormalEffect() and stopAbnormalEffect() Link to comment Share on other sites More sharing options...
0 Rootware Posted September 7, 2016 Share Posted September 7, 2016 Get source and check how this implemented (EnterWorld.java and L2PcInstance.java). Haven't a java knowledge, then buy a time who can it to do. Link to comment Share on other sites More sharing options...
0 Tessa Posted September 7, 2016 Share Posted September 7, 2016 (edited) Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 5) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -221,6 +221,7 @@ import net.sf.l2j.gameserver.scripting.Quest; import net.sf.l2j.gameserver.scripting.QuestState; import net.sf.l2j.gameserver.scripting.ScriptManager; +import net.sf.l2j.gameserver.skills.AbnormalEffect; import net.sf.l2j.gameserver.skills.Env; import net.sf.l2j.gameserver.skills.Formulas; import net.sf.l2j.gameserver.skills.Stats; @@ -3034,6 +3035,7 @@ { if (_protectTask == null) _protectTask = ThreadPoolManager.getInstance().scheduleGeneral(new ProtectTask(), Config.PLAYER_SPAWN_PROTECTION * 1000); + startAbnormalEffect(AbnormalEffect.STEALTH); } else { @@ -3053,6 +3055,7 @@ @Override public void run() { + stopAbnormalEffect(AbnormalEffect.STEALTH); setProtection(false); sendMessage("The spawn protection has ended."); } Just in case you don't want to pay... :D Edited September 7, 2016 by Tessa Link to comment Share on other sites More sharing options...
0 SweeTs Posted September 7, 2016 Share Posted September 7, 2016 1 code line = 1 euro. Tessa, you won a total of 3€ :D Link to comment Share on other sites More sharing options...
0 AchYlek Posted September 7, 2016 Share Posted September 7, 2016 1 code line = 1 euro. Tessa, you won a total of 3€ :D he will be so rich boy :( Link to comment Share on other sites More sharing options...
0 Reborn12 Posted September 7, 2016 Share Posted September 7, 2016 1 code line = 1 euro. Tessa, you won a total of 3€ :D Thats 2 lines the other is just half line :p tessa wons 2.50€ Link to comment Share on other sites More sharing options...
0 Tessa Posted September 7, 2016 Share Posted September 7, 2016 1 code line = 1 euro. Tessa, you won a total of 3€ :D Damn, I could put some blank lines... :( Link to comment Share on other sites More sharing options...
0 SweeTs Posted September 7, 2016 Share Posted September 7, 2016 Yeah and dont forget about brackets next time ^_^ Link to comment Share on other sites More sharing options...
0 kingmert Posted September 8, 2016 Author Share Posted September 8, 2016 (edited) Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 5) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -221,6 +221,7 @@ import net.sf.l2j.gameserver.scripting.Quest; import net.sf.l2j.gameserver.scripting.QuestState; import net.sf.l2j.gameserver.scripting.ScriptManager; +import net.sf.l2j.gameserver.skills.AbnormalEffect; import net.sf.l2j.gameserver.skills.Env; import net.sf.l2j.gameserver.skills.Formulas; import net.sf.l2j.gameserver.skills.Stats; @@ -3034,6 +3035,7 @@ { if (_protectTask == null) _protectTask = ThreadPoolManager.getInstance().scheduleGeneral(new ProtectTask(), Config.PLAYER_SPAWN_PROTECTION * 1000); + startAbnormalEffect(AbnormalEffect.STEALTH); } else { @@ -3053,6 +3055,7 @@ @Override public void run() { + stopAbnormalEffect(AbnormalEffect.STEALTH); setProtection(false); sendMessage("The spawn protection has ended."); } Just in case you don't want to pay... :D i try it to *import com.l2jfrozen.gameserver.model.L2Character; *if (protect) ThreadPoolManager.getInstance().scheduleGeneral(new TeleportProtectionFinalizer(this), (Config.PLAYER_SPAWN_PROTECTION - 1) * 1000); startAbnormalEffect(L2Character.ABNORMAL_EFFECT_IMPRISIONING_2); } {{{l2jfrozen}}} the effect its started but dont stoped *if (Config.PLAYER_SPAWN_PROTECTION > 0) stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_IMPRISIONING_2); setProtection(false); Edited September 8, 2016 by kingmert Link to comment Share on other sites More sharing options...
0 Tessa Posted September 8, 2016 Share Posted September 8, 2016 Bracketssssssssssss... Link to comment Share on other sites More sharing options...
0 kingmert Posted September 8, 2016 Author Share Posted September 8, 2016 (edited) Bracketssssssssssss... what bracketss :D where need ??? Edited September 8, 2016 by kingmert Link to comment Share on other sites More sharing options...
0 Reborn12 Posted September 8, 2016 Share Posted September 8, 2016 http://pastebin.com/2nYhCtm4 That is with config Link to comment Share on other sites More sharing options...
0 Tessa Posted September 8, 2016 Share Posted September 8, 2016 what bracketss :D where need ??? if (protect) { ThreadPoolManager.getInstance().scheduleGeneral(new TeleportProtectionFinalizer(this), (Config.PLAYER_SPAWN_PROTECTION - 1) * 1000); startAbnormalEffect(L2Character.ABNORMAL_EFFECT_IMPRISIONING_2); } This "{" and "}" are called a brackets (or curly brackets)... Link to comment Share on other sites More sharing options...
Question
kingmert
I'm looking for L2JFROZEN last rev ---SPAWN PROTECION EFFECT ------someone to me help?????
Link to comment
Share on other sites
25 answers to this question
Recommended Posts