I just added in pvp zones to get pvp point. But it does not update istant. The pvp winner must teleport or die so his pvps update +1. So i would like it to update instant if its possible.
l2jaCis
Here is the code:
// If in pvp zone, add pvp point.
if (isInsideZone(ZoneId.PVP) && targetPlayer.isInsideZone(ZoneId.PVP))
{
setPvpKills(getPvpKills() + 1);
// Until the zone was a siege zone. Check also if victim was a player. Randomers aren't counted.
if (target instanceof L2PcInstance && getSiegeState() > 0 && targetPlayer.getSiegeState() > 0 && getSiegeState() != targetPlayer.getSiegeState())
{
// Now check clan relations.
final L2Clan killerClan = getClan();
if (killerClan != null)
killerClan.setSiegeKills(killerClan.getSiegeKills() + 1);
final L2Clan targetClan = targetPlayer.getClan();
if (targetClan != null)
targetClan.setSiegeDeaths(targetClan.getSiegeDeaths() + 1);
}
return;
}
Thank you! I really missed this option when was exploring bots and their features.
I tried to find L2Net for Interlude, but the official GitHub page has the only H5 compiled version. It doesn't work with my L2J IL. I tried to google a proper version, but nothing worked for me (different errors like DirectX not found etc.)
Do you know where can I get a working version of L2Net IL ?
📢 OBT Success – Get Ready for Launch: November 28!!
The Open Beta was an absolute blast!
Over 160+ Master Accounts successfully claimed their reward from The Judge, proving once again how strong and loyal this community truly is.
🔥 Missed the event?
Don’t worry — because so many players asked for another chance, we will host an additional Event very soon! Stay tuned for details.
Community Growth
We’ve already surpassed 500 Master Accounts registered on our forums — and the numbers keep rising every hour.
It feels like the old days… the same energy, the same hype, the same love for Lineage II.
Let’s rebuild L2Elixir the way we remember it:
No shortcuts, no nonsense — just pure old nostalgic gameplay, community spirit, and that classic adventure we all grew up with.
✨ The journey continues…
Launch: November 28, 21:00 UTC+2
Be there when the legend returns.
🔗 Website: https://l2elixir.org/
💬 Discord: https://discord.gg/5ydPHvhbxs
Question
MaDu7zU
Hello Guys!
I just added in pvp zones to get pvp point. But it does not update istant. The pvp winner must teleport or die so his pvps update +1. So i would like it to update instant if its possible.
l2jaCis
Here is the code:
// If in pvp zone, add pvp point. if (isInsideZone(ZoneId.PVP) && targetPlayer.isInsideZone(ZoneId.PVP)) { setPvpKills(getPvpKills() + 1); // Until the zone was a siege zone. Check also if victim was a player. Randomers aren't counted. if (target instanceof L2PcInstance && getSiegeState() > 0 && targetPlayer.getSiegeState() > 0 && getSiegeState() != targetPlayer.getSiegeState()) { // Now check clan relations. final L2Clan killerClan = getClan(); if (killerClan != null) killerClan.setSiegeKills(killerClan.getSiegeKills() + 1); final L2Clan targetClan = targetPlayer.getClan(); if (targetClan != null) targetClan.setSiegeDeaths(targetClan.getSiegeDeaths() + 1); } return; }Okay i just found the problem!
I added this line:
setPvpKills(getPvpKills() + 1); + sendPacket(new UserInfo(this));Any mod please close the topic. Dont delete it, maybe helps someone. :)
Thank you!
Edited by MaDu7zU1 answer to this question
Recommended Posts