Jump to content
  • 0

Noblesse Effect


rullezz

Question

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

Link to comment
Share on other sites

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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...

Link to comment
Share on other sites

  • 0

Why am I in your signature? :D

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

 

Edited by AccessDenied
Link to comment
Share on other sites

  • 0

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. .

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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;
}
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...