forked from MagicBane/Server
safe NPC profits
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user