Previous commit should work only for Classic.
This commit is contained in:
parent
be3a24099b
commit
2defb4cee9
@ -2644,11 +2644,22 @@ public class Quest extends AbstractScript implements IIdentifiable
|
||||
public String showHtmlFile(L2PcInstance player, String filename, L2Npc npc)
|
||||
{
|
||||
boolean questwindow = false;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (((qs != null) && (qs.getState() == State.CREATED)) || !filename.endsWith(".html"))
|
||||
if (Config.SERVER_CLASSIC_SUPPORT)
|
||||
{
|
||||
if (filename.endsWith(".htm"))
|
||||
{
|
||||
questwindow = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO: Fix all Ertheia quest htmls with above logic or find a better solution.
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if ((qs != null) && (qs.getState() == State.CREATED))
|
||||
{
|
||||
questwindow = true;
|
||||
}
|
||||
}
|
||||
int questId = getId();
|
||||
|
||||
// Create handler to file linked to the quest
|
||||
|
Loading…
Reference in New Issue
Block a user