Nihal quests + Reactor's mapitem detection + MapleQuestMesoFetcher
Improved quests and game progression in the Nihal Desert region. Reactors that uses map items now automatically detects those already on the ground after changing states. New tool: MapleQuestMesoFetcher. This tool parses the Quest.wz XML files, detecting and reporting quest ids from quests that does not properly checks for mesos to take from the player before completing the quest.
This commit is contained in:
@@ -318,6 +318,11 @@ public class AbstractPlayerInteraction {
|
||||
status.setProgress(pid, String.valueOf(progress));
|
||||
}
|
||||
|
||||
public void setStringQuestProgress(int qid, int pid, String progress) {
|
||||
MapleQuestStatus status = c.getPlayer().getQuest(MapleQuest.getInstance(qid));
|
||||
status.setProgress(pid, progress);
|
||||
}
|
||||
|
||||
public int getQuestProgress(int qid) {
|
||||
MapleQuestStatus status = c.getPlayer().getQuest(MapleQuest.getInstance(qid));
|
||||
String progress = status.getProgress(status.getAnyProgressKey());
|
||||
@@ -331,6 +336,11 @@ public class AbstractPlayerInteraction {
|
||||
return Integer.parseInt(getPlayer().getQuest(MapleQuest.getInstance(qid)).getProgress(pid));
|
||||
}
|
||||
|
||||
public String getStringQuestProgress(int qid, int pid) {
|
||||
if(getPlayer().getQuest(MapleQuest.getInstance(qid)).getProgress(pid).isEmpty()) return "";
|
||||
return getPlayer().getQuest(MapleQuest.getInstance(qid)).getProgress(pid);
|
||||
}
|
||||
|
||||
public void resetAllQuestProgress(int qid) {
|
||||
getPlayer().getQuest(MapleQuest.getInstance(qid)).resetAllProgress();
|
||||
getClient().announce(MaplePacketCreator.updateQuest(getPlayer().getQuest(MapleQuest.getInstance(qid)), false));
|
||||
|
||||
Reference in New Issue
Block a user