I'm trying to make NPC Flag wich you can capture by killing it. Capturing works fine. If you kill the flag it becomes your factions flag. But... problem is that the flag is imortal. Only way to kill it is by //kill.
Added: a brand-new default dashboard template.
You can now add multiple game/login server builds.
Full support for running both PTS & L2J servers simultaneously, with switching between them.
Payment systems: added OmegaPay and Pally (new PayPal-style API).
Account history now stores everything: donations, items delivered to characters, referrals, transfers between game accounts, and coin transfers to another master account.
Personal Promo Code System: you can create a promo code and assign it to a user or promoter. When donating, a player can enter this promo code to receive bonus coins, and the promo code owner also receives a bonus — all fully configurable in the admin panel.
Look demo site: demo
MoMoProxy has updated more static residential proxies for USA location, anyone interested in can view: https://momoproxy.com/static-residential-proxies
Question
xuinia
I'm trying to make NPC Flag wich you can capture by killing it. Capturing works fine. If you kill the flag it becomes your factions flag. But... problem is that the flag is imortal. Only way to kill it is by //kill.
I added this code to L2TpFlaginstance.java:
@Override public void reduceCurrentHp(double damage, L2Character attacker, L2Skill skill) { L2PcInstance plajor = null; boolean cord = false; if (attacker instanceof L2PcInstance) plajor = (L2PcInstance) attacker; else if (attacker instanceof L2SummonInstance) plajor = ((L2SummonInstance) attacker).getOwner(); if (/*plajor.inWorld() == 1 && */plajor.getFactionId() != getFlagFactionId()) cord = true; if (cord) super.reduceCurrentHp(damage, attacker, skill); }But that doesnt seem to do anything. HP of the flag is not decreasing when I hit it.
How can I make it mortal?
Working with latesr rev of l2jserver
8 answers to this question
Recommended Posts