Rename and clean up MapleQuest
This commit is contained in:
@@ -32,7 +32,7 @@ import provider.DataProviderFactory;
|
||||
import provider.DataTool;
|
||||
import provider.wz.WZFiles;
|
||||
import server.MapleItemInformationProvider;
|
||||
import server.quest.MapleQuest;
|
||||
import server.quest.Quest;
|
||||
import tools.Pair;
|
||||
|
||||
public class SearchCommand extends Command {
|
||||
@@ -105,7 +105,7 @@ public class SearchCommand extends Command {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (MapleQuest mq : MapleQuest.getMatchedQuests(search)) {
|
||||
for (Quest mq : Quest.getMatchedQuests(search)) {
|
||||
sb.append("#b").append(mq.getId()).append("#k - #r");
|
||||
|
||||
String parentName = mq.getParentName();
|
||||
|
||||
@@ -26,7 +26,7 @@ package client.command.commands.gm3;
|
||||
import client.Character;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.quest.MapleQuest;
|
||||
import server.quest.Quest;
|
||||
|
||||
public class QuestCompleteCommand extends Command {
|
||||
{
|
||||
@@ -45,7 +45,7 @@ public class QuestCompleteCommand extends Command {
|
||||
int questId = Integer.parseInt(params[0]);
|
||||
|
||||
if (player.getQuestStatus(questId) == 1) {
|
||||
MapleQuest quest = MapleQuest.getInstance(questId);
|
||||
Quest quest = Quest.getInstance(questId);
|
||||
if (quest != null && quest.getNpcRequirement(true) != -1) {
|
||||
c.getAbstractPlayerInteraction().forceCompleteQuest(questId, quest.getNpcRequirement(true));
|
||||
} else {
|
||||
|
||||
@@ -26,7 +26,7 @@ package client.command.commands.gm3;
|
||||
import client.Character;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.quest.MapleQuest;
|
||||
import server.quest.Quest;
|
||||
|
||||
public class QuestResetCommand extends Command {
|
||||
{
|
||||
@@ -45,7 +45,7 @@ public class QuestResetCommand extends Command {
|
||||
int questid_ = Integer.parseInt(params[0]);
|
||||
|
||||
if (player.getQuestStatus(questid_) != 0) {
|
||||
MapleQuest quest = MapleQuest.getInstance(questid_);
|
||||
Quest quest = Quest.getInstance(questid_);
|
||||
if (quest != null) {
|
||||
quest.reset(player);
|
||||
player.dropMessage(5, "QUEST " + questid_ + " reseted.");
|
||||
|
||||
@@ -26,7 +26,7 @@ package client.command.commands.gm3;
|
||||
import client.Character;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.quest.MapleQuest;
|
||||
import server.quest.Quest;
|
||||
|
||||
public class QuestStartCommand extends Command {
|
||||
{
|
||||
@@ -45,7 +45,7 @@ public class QuestStartCommand extends Command {
|
||||
int questid = Integer.parseInt(params[0]);
|
||||
|
||||
if (player.getQuestStatus(questid) == 0) {
|
||||
MapleQuest quest = MapleQuest.getInstance(questid);
|
||||
Quest quest = Quest.getInstance(questid);
|
||||
if (quest != null && quest.getNpcRequirement(false) != -1) {
|
||||
c.getAbstractPlayerInteraction().forceStartQuest(questid, quest.getNpcRequirement(false));
|
||||
} else {
|
||||
|
||||
@@ -26,7 +26,7 @@ package client.command.commands.gm6;
|
||||
import client.Character;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.quest.MapleQuest;
|
||||
import server.quest.Quest;
|
||||
|
||||
public class ClearQuestCacheCommand extends Command {
|
||||
{
|
||||
@@ -36,7 +36,7 @@ public class ClearQuestCacheCommand extends Command {
|
||||
@Override
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
MapleQuest.clearCache();
|
||||
Quest.clearCache();
|
||||
player.dropMessage(5, "Quest Cache Cleared.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ package client.command.commands.gm6;
|
||||
import client.Character;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.quest.MapleQuest;
|
||||
import server.quest.Quest;
|
||||
|
||||
public class ClearQuestCommand extends Command {
|
||||
{
|
||||
@@ -40,7 +40,7 @@ public class ClearQuestCommand extends Command {
|
||||
player.dropMessage(5, "Please include a quest ID.");
|
||||
return;
|
||||
}
|
||||
MapleQuest.clearCache(Integer.parseInt(params[0]));
|
||||
Quest.clearCache(Integer.parseInt(params[0]));
|
||||
player.dropMessage(5, "Quest Cache for quest " + params[0] + " cleared.");
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user