Jump to content
  • 0

Question

Posted (edited)

hey guys ..

now iam working on l2 tales based on l2f files ..

and i wanna add custom pvp announce like ..

when player kill 3 players it says killing spree ..

i'v done form the massage ..

and it work perfectly

public int kss;pk.setPvpKills(pk.getPvpKills() + 1); kss ++ ;if (kss == 3){Announcements.getInstance().announceToAll("killing spree "  , ChatType.CRITICAL_ANNOUNCE);}
i need to make kss reset to zero when player get killed and start counting again so what ihave to do ???

sorry for my bad en

Edited by THeMaxPoweR

9 answers to this question

Recommended Posts

  • 0
Posted (edited)

As Tk said, search for Player.java (gameserver/model location). Maybe as you posted above, check onDeath method.

Edited by SweeTs
  • 0
Posted (edited)

L2PcInstance

Doesn't exist

 

Player if you use a random russian pack. Otherwise search better. It's L2PcInstance since L2J exists.

 

Search doDie at worst, none renames that.

Edited by Tryskell
  • 0
Posted (edited)

i got only one do die method at Creature.java

public final void doDie(Creature killer)
{
// killing is only possible one time
if(!isDead.compareAndSet(false, true))




return;


onDeath(killer);
}

Edited by THeMaxPoweR
Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..