rullezz Posted July 30, 2016 Posted July 30, 2016 Hello i want to put in my tvt event noblesse effect, when player die to don't remove buffs. Maybe someone know this simple code? :) p.s. sry for my bad english
0 Tessa Posted July 30, 2016 Posted July 30, 2016 Go find where player register and set him in Event or check if is already registered cause it might be different and no ths IsInFunEvent() Why am I in your signature? :D
0 rullezz Posted July 30, 2016 Author Posted July 30, 2016 Why am I in your signature? :D hmm i try differnet things but still don't work :( here my tvt: http://pastebin.com/GWcRXUXj maybe you can find the right way...
0 AccessDenied Posted July 30, 2016 Posted July 30, 2016 (edited) Why am I in your signature? :D Because famous people are into my signature when i want. Now kiss me >.> Edited July 30, 2016 by AccessDenied
0 AccessDenied Posted July 30, 2016 Posted July 30, 2016 hmm i try differnet things but still don't work :( here my tvt: http://pastebin.com/GWcRXUXj maybe you can find the right way... Well baby it look fine but show me how u wrote the code at doDie. .
0 Tessa Posted July 30, 2016 Posted July 30, 2016 hmm i try differnet things but still don't work :( here my tvt: http://pastebin.com/GWcRXUXj maybe you can find the right way... Are you playing with a GM char? Because famous people are into my signature when i want. Now kiss me >.> Later! :D
0 rullezz Posted July 30, 2016 Author Posted July 30, 2016 Well baby it look fine but show me how u wrote the code at doDie. . public boolean doDie(L2Character killer) { // killing is only possible one time synchronized (this) { if (isDead()) return false; // now reset currentHp to zero setCurrentHp(0); setIsDead(true); } // Set target to null and cancel Attack or Cast setTarget(null); // Stop movement stopMove(null); // Stop Regeneration task, and removes all current effects getStatus().stopHpMpRegeneration(); if (!getActingPlayer().isInFunEvent()) stopAllEffectsExceptThoseThatLastThroughDeath(); calculateRewards(killer); // Send the Server->Client packet StatusUpdate with current HP and MP to all other L2PcInstance to inform broadcastStatusUpdate(); // Notify L2Character AI if (hasAI()) getAI().notifyEvent(CtrlEvent.EVT_DEAD, null); final WorldRegion region = getRegion(); if (region != null) region.onDeath(this); return true; }
0 Tessa Posted July 30, 2016 Posted July 30, 2016 If you play on the event with a GM char, isInFunEvent() will return false.
0 rullezz Posted July 30, 2016 Author Posted July 30, 2016 If you play on the event with a GM char, isInFunEvent() will return false. no i test with normal players
0 Tessa Posted July 30, 2016 Posted July 30, 2016 Damn... I told you to put the check in L2Playable. :lol: It extends L2Character and overrides your modification.
0 AccessDenied Posted July 30, 2016 Posted July 30, 2016 Damn... I told you to put the check in L2Playable. :lol: It extends L2Character and overrides your modification. STOP BEING SO CUTE!!! >.>
0 Tessa Posted July 30, 2016 Posted July 30, 2016 STOP BEING SO CUTE!!! >.> Sorry... I didn't wanted to. :(
0 AccessDenied Posted July 30, 2016 Posted July 30, 2016 (edited) Sorry... I didn't wanted to. :( damn you so cute Edited July 30, 2016 by AccessDenied
0 AccessDenied Posted July 30, 2016 Posted July 30, 2016 i love you guys <3 it's work now!!! Afcourse it work, we are legends >.<
Question
rullezz
Hello i want to put in my tvt event noblesse effect, when player die to don't remove buffs.
Maybe someone know this simple code? :)
p.s. sry for my bad english
30 answers to this question
Recommended Posts