Jump to content
  • 0

Question

Posted

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

Recommended Posts

  • 0
Posted

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
Posted (edited)

Why am I in your signature? :D

Because famous people are into my signature when i want. Now kiss me >.>

 

Edited by AccessDenied
  • 0
Posted

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
Posted

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
Posted

If you play on the event with a GM char, isInFunEvent() will return false.

no i test with normal players

  • 0
Posted

Damn... I told you to put the check in L2Playable. :lol:

It extends L2Character and overrides your modification.

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock