safe NPC profits

This commit is contained in:
FatBoy committed 2024-08-31 19:29:03 -05:00
1 parent 25d70cca4f
commit 1e29971b3c
2 files changed
+18 -7

No files matched your search

+12
View File
@@ -193,6 +193,18 @@ public class NPC extends AbstractCharacter {
serializeForClientMsgOtherPlayer(npc, writer);
}
public boolean isInSafeZone() {
Zone zone = ZoneManager.findSmallestZone(this.getLoc());
if (zone != null) {
return zone.getSafeZone() == (byte) 1;
}
return false;
//return this.safeZone;
}
public static void serializeForClientMsgOtherPlayer(NPC npc, ByteBufferWriter writer)
throws SerializationException {