Quest condition is now cached in a separate QuestState variable.
This commit is contained in:
@@ -336,7 +336,7 @@ public class AdminShowQuests implements IAdminCommandHandler
|
||||
{
|
||||
qs = QuestManager.getInstance().getQuest(Integer.parseInt(val[0])).newQuestState(target);
|
||||
qs.setState(State.STARTED);
|
||||
qs.set("cond", "1");
|
||||
qs.setCond(1);
|
||||
target.sendPacket(new QuestList(target));
|
||||
target.sendPacket(new ExShowQuestMark(qs.getQuest().getId(), qs.getCond()));
|
||||
val[0] = qs.getQuest().getName();
|
||||
|
@@ -219,10 +219,6 @@ public class Q00350_EnhanceYourWeapon extends Quest
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
if (qs.getState() == State.CREATED)
|
||||
{
|
||||
qs.set("cond", "0");
|
||||
}
|
||||
if (qs.getInt("cond") == 0)
|
||||
{
|
||||
htmltext = npc.getId() + "-01.htm";
|
||||
}
|
||||
|
Reference in New Issue
Block a user