public void run()
{
if (!_pvpFlagTask.isEmpty())
{
Long current = System.currentTimeMillis();
synchronized (this)
{
for (L2PcInstance actor : _pvpFlagTask.keySet())
{
+ if (current > _pvpFlagTask.get(actor))
+ {
+ actor.updatePvPFlag(0);
+ actor.setTeam(0);
+ _pvpFlagTask.remove(actor);
+ }
i need to know where i can add the code for the pk cirlce
Get the maximum opportunities, income, and profit with our verification.
We help you pass verification on the services and applications you need, opening access to full functionality and scaling.
Fast. Reliable. Secure.
Minimal risks — predictable results.
Bonus for new clients:
Pay for the first verification and get a 10% discount on the next one.
Learn more — Go to
Question
Tachi
hello guys i have a problem ..i have a simple mod like when you flag get pvp circle blue,
but this is not a problem cuz this feature work fine .
i want to add and pk circle ,like when you make karma get pk circle red, but this is a problem cuz i don't find the line where i can add the code :
my pvp blue cricle code is this..
package net.sf.l2j.gameserver.model.actor.instance.L2Pcinstance;
public void updatePvPStatus() { if (EventManager.getInstance().isRegistered(this) && EventManager.getInstance().isRunning()) return; if (isInsideZone(ZoneId.PVP)) return; PvpFlagTaskManager.getInstance().add(this, System.currentTimeMillis() + Config.PVP_NORMAL_TIME); + if (getPvpFlag() == 0) + { + updatePvPFlag(1); + setTeam(1); + } + } } public void updatePvPStatus(L2Character target) { final L2PcInstance player = target.getActingPlayer(); if (player == null) return; if (EventManager.getInstance().isRegistered(this) && EventManager.getInstance().isRunning()) return; if (isInDuel() && player.getDuelId() == getDuelId()) return; if ((!isInsideZone(ZoneId.PVP) || !target.isInsideZone(ZoneId.PVP)) && player.getKarma() == 0) { PvpFlagTaskManager.getInstance().add(this, System.currentTimeMillis() + ((checkIfPvP(player)) ? Config.PVP_PVP_TIME : Config.PVP_NORMAL_TIME)); + if (getPvpFlag() == 0) + { + updatePvPFlag(1); + setTeam(1); + } +} }package net.sf.l2j.gameserver.taskmanager.pvpflagtaskmanager.java
public void run() { if (!_pvpFlagTask.isEmpty()) { Long current = System.currentTimeMillis(); synchronized (this) { for (L2PcInstance actor : _pvpFlagTask.keySet()) { + if (current > _pvpFlagTask.get(actor)) + { + actor.updatePvPFlag(0); + actor.setTeam(0); + _pvpFlagTask.remove(actor); + }i need to know where i can add the code for the pk cirlce
10 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now