Fixed many non-critical exceptions
Fixed an issue that could result in server hang Added a new command ::npcsearch for searching for NPC IDs
This commit is contained in:
@@ -294,9 +294,8 @@ public final class PCPortalNPC extends AbstractNPC {
|
||||
}
|
||||
}
|
||||
session.sendString("<col=FF0000>0", 13 + getPortalIndex());
|
||||
updateLifepoints = false;
|
||||
session.getSquire().getSkills().heal(50);
|
||||
session.getSquire().onImpact(this, null);
|
||||
((PCSquireNPC) session.getSquire()).FlagInterfaceUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -84,10 +84,14 @@ public final class PCSquireNPC extends AbstractNPC {
|
||||
|
||||
@Override
|
||||
public void onImpact(final Entity entity, BattleState state) {
|
||||
updateLifepoints = true;
|
||||
FlagInterfaceUpdate();
|
||||
super.onImpact(entity, state);
|
||||
}
|
||||
|
||||
public void FlagInterfaceUpdate() {
|
||||
updateLifepoints = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] getIds() {
|
||||
return new int[] { 3782, 3785 };
|
||||
|
||||
@@ -240,7 +240,7 @@ object PlunderUtils {
|
||||
|
||||
fun getDoorXp(player: Player, lockpick: Boolean) : Double
|
||||
{
|
||||
val room = getRoom(player)!!.room
|
||||
val room = getRoom(player)?.room ?: return 0.0
|
||||
var reward = when(room)
|
||||
{
|
||||
1 -> 60.0
|
||||
|
||||
Reference in New Issue
Block a user