|
|
@ -1260,8 +1260,6 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
|
|
|
|
|
|
|
|
//get level based on experience
|
|
|
|
//get level based on experience
|
|
|
|
player.level = (short) Experience.getLevel(player.exp); |
|
|
|
player.level = (short) Experience.getLevel(player.exp); |
|
|
|
if(player.level < 10) |
|
|
|
|
|
|
|
player.setLevel((short)10); |
|
|
|
|
|
|
|
player.setHealth(999999f); |
|
|
|
player.setHealth(999999f); |
|
|
|
player.mana.set(999999f); |
|
|
|
player.mana.set(999999f); |
|
|
|
player.stamina.set(999999f); |
|
|
|
player.stamina.set(999999f); |
|
|
@ -4801,6 +4799,9 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
//if(this.isBoxed && this.containsEffect(429611355) == false) {//pathfinding
|
|
|
|
//if(this.isBoxed && this.containsEffect(429611355) == false) {//pathfinding
|
|
|
|
// PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 429611355, 40, false);
|
|
|
|
// PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 429611355, 40, false);
|
|
|
|
//}
|
|
|
|
//}
|
|
|
|
|
|
|
|
if(this.isEnteredWorld() && this.isActive() && this.getLevel() < 10){ |
|
|
|
|
|
|
|
this.setLevel((short) 10); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
Logger.error(e); |
|
|
|
Logger.error(e); |
|
|
|