Reverting new showHtmlFile logic.
This commit is contained in:
@@ -2643,23 +2643,7 @@ public class Quest extends AbstractScript implements IIdentifiable
|
|||||||
*/
|
*/
|
||||||
public String showHtmlFile(L2PcInstance player, String filename, L2Npc npc)
|
public String showHtmlFile(L2PcInstance player, String filename, L2Npc npc)
|
||||||
{
|
{
|
||||||
boolean questwindow = false;
|
boolean questwindow = !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();
|
int questId = getId();
|
||||||
|
|
||||||
// Create handler to file linked to the quest
|
// Create handler to file linked to the quest
|
||||||
|
Reference in New Issue
Block a user