public static String getTimeGateSelection(MapleCharacter chr) { String mapselect = ""; for (TimeGate gate : TimeGate.values()) { if ((chr.getQuestStatus(gate.getRequieredQuest()) == gate.getRequieredQuestState()) || gate.getRequieredQuest() == 0) { mapselect += "#" + gate.getIcon() + "#" + gate.getName(); } } if (mapselect == null || "".equals(mapselect)) { mapselect = "#-1# There are no locations you can move to."; } return mapselect; }
public static String getDimensionalDoorSelection(MapleCharacter chr) { String mapselect = ""; for (DimensionalMirror mirror : DimensionalMirror.values()) { if (chr.getLevel() >= mirror.getMinLevel() && chr.getLevel() <= mirror.getMaxLevel()) { if ((chr.getQuestStatus(mirror.getRequieredQuest()) == mirror.getRequieredQuestState()) || mirror.getRequieredQuest() == 0) { if (mirror != DimensionalMirror.DEFAULT && mirror.getIcon() != DimensionalMirror.DEFAULT.getIcon() /*just another check*/) { mapselect += "#" + mirror.getIcon() + "#" + mirror.getName(); } } } } if (mapselect == null || "".equals(mapselect)) { mapselect = "#-1# There are no locations you can move to."; } return mapselect; }