Browse Source

ZoneSet DevCmd created.

master
MagicBot 1 year ago
parent
commit
727ccf3b12
  1. 26
      src/engine/devcmd/cmds/ZoneSetCmd.java

26
src/engine/devcmd/cmds/ZoneSetCmd.java

@ -40,17 +40,21 @@ public class ZoneSetCmd extends AbstractDevCmd {
zone = ZoneManager.findSmallestZone(playerCharacter.getLoc()); zone = ZoneManager.findSmallestZone(playerCharacter.getLoc());
if (zone == null) {
throwbackError(playerCharacter, "Error: can't find the zone you are in.");
return;
}
//get all mobs for the zone
throwbackInfo(playerCharacter, zone.getName() + " (" + zone.getLoadNum() + ") " + zone.getObjectUUID()); throwbackInfo(playerCharacter, zone.getName() + " (" + zone.getLoadNum() + ") " + zone.getObjectUUID());
// NPC
if (words[0].equalsIgnoreCase("mob")) { if (words[0].equalsIgnoreCase("mob")) {
for (NPC npc : zone.zoneNPCSet) {
String out = npc.getName() + '(' + npc.getDBID() + "): ";
throwbackInfo(playerCharacter, out);
}
return;
}
// Mob
for (Mob mob : zone.zoneMobSet) { for (Mob mob : zone.zoneMobSet) {
String out = mob.getName() + '(' + mob.getDBID() + "): "; String out = mob.getName() + '(' + mob.getDBID() + "): ";
@ -63,14 +67,6 @@ public class ZoneSetCmd extends AbstractDevCmd {
throwbackInfo(playerCharacter, out); throwbackInfo(playerCharacter, out);
return; return;
} }
}
// NPC
for (NPC npc : zone.zoneNPCSet) {
String out = npc.getName() + '(' + npc.getDBID() + "): ";
throwbackInfo(playerCharacter, out);
}
} }

Loading…
Cancel
Save