From 3f8b3bc6cb212d88cf9ba7f9f79ba1a1139ea343 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 5 Sep 2024 19:40:25 -0500 Subject: [PATCH] PVP xp enabled --- src/engine/objects/Experience.java | 10 +++++----- src/engine/objects/PlayerCharacter.java | 24 ++++++++++++------------ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/engine/objects/Experience.java b/src/engine/objects/Experience.java index d3edb513..db19cf9a 100644 --- a/src/engine/objects/Experience.java +++ b/src/engine/objects/Experience.java @@ -292,17 +292,17 @@ public class Experience { switch (TargetColor.getCon(pc, mob)) { case Red: - return 1.25; + return 1.1; case Orange: return 1.15; case Yellow: - return 1.05; + return 1.2; case Blue: - return 1; + return 1.25; case Cyan: - return 0.8; + return 0.9; case Green: - return 0.5; + return 0.7; default: return 0; } diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index dcfd1560..45f5b9fd 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -1848,20 +1848,20 @@ public class PlayerCharacter extends AbstractCharacter { //see if we shold grant xp to attacker boolean doPVPEXP = false; long lastKill = att.getLastKillOfTarget(this.getObjectUUID()); - if ((System.currentTimeMillis() - lastKill) > MBServerStatics.PLAYER_KILL_XP_TIMER) - if (attacker.getLevel() > 39 && this.getLevel() > 39) { - Guild aN = null; - Guild tN = null; - if (attacker.getGuild() != null) - aN = attacker.getGuild().getNation(); - if (this.getGuild() != null) - tN = this.getGuild().getNation(); - if (aN == null || tN == null || aN.isEmptyGuild() || Guild.sameGuild(aN, tN) || this.isDeathShroud()) { + //if ((System.currentTimeMillis() - lastKill) > MBServerStatics.PLAYER_KILL_XP_TIMER) + //if (attacker.getLevel() > 39 && this.getLevel() > 39) { + //Guild aN = null; + //Guild tN = null; + //if (attacker.getGuild() != null) + // aN = attacker.getGuild().getNation(); + //if (this.getGuild() != null) + // tN = this.getGuild().getNation(); + //if (aN == null || tN == null || aN.isEmptyGuild() || Guild.sameGuild(aN, tN) || this.isDeathShroud()) { //skip giving xp if same guild or attacker is errant, or target is in death shroud. - } else { + //} else { doPVPEXP = true; - } - } + //} + // } //apply death shroud to non safeholds. Zone zone = ZoneManager.findSmallestZone(this.getLoc());