Skip to content

Custom Pvp Announcement Problem

Featured Replies

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

Solved by SweeTs

try

if (kss == 3){


Announcements.getInstance().announceToAll("killing spree " , ChatType.CRITICAL_ANNOUNCE);

​kss = 0;
}

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

  • Author

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

  • Solution

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

Edited by SweeTs

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.