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.


  • Posts

    • You still need an executor for delayed task, and regarding instant task, they are simply executed using regular virtual thread.   Delayed tasks handling was anyway reverted back due to VT's pinning / strange behavior.   If you got something better to propose, you can also contribute rather than "??".
    • Hello everyone, I'm selling my Salvation license from L2JEternity. It's a lifetime license that I bought from LordWinter about 2 years ago. He's been updating the project diligently since then. I used it to open just one project and then never used it again. Since it's been idle, I'd like to sell it. At the time, I paid 600 euros for this license. I'm selling it for 350 euros. Payments only in cryptocurrencies to avoid chargebacks from the jokers. Thank you and if you need any recommendations from important people on the forum, I have them. https://prnt.sc/SloDzTxN3fs6
    • Deadpool Skin for All Races Lineage 2 A custom Deadpool skin is now available for all races and classes in Lineage 2. Fully compatible with any client version: Interlude, High Five, Classic, and others This is perfect for private servers, custom events, or just adding fun to your gameplay. Available now at a very attractive price.    
    • Hello,    I have lost my System from my Lineage 2 server, my server is a bit custom and I have no more system file.   I am searching for somebody who can recreate my full system, I have all the xml files necessary I just do not know how to make it work.   Start price for this is 100 euro but negociable, I need a bit more help with some more questions as well, I need somebody who knows a lot about L2 server custom creation and who can answer a few questions, I will pay for the service ofc.   Please leave ur Discord informations " if is allowed " or send me a pm with ur credentials and I will contact you asap.     Kind Regards. Later Edit :   Maybe I have bad expressed myself, I need the creation of a PATCH for my Freya CT2.5 version.   The starting price for this is 100€ but negociable, extra help will be extra counted and payed acordingly.    I am a very generous guy, do not be shy and contact me if you can make it happend.   Ty, Alex
  • Topics

×
×
  • 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