Changing showHtmlFile to work based on quest state instead of file extension.

This commit is contained in:
MobiusDev 2015-04-19 08:58:11 +00:00
parent 7abd1c3d7f
commit c73c134878

View File

@ -2643,7 +2643,12 @@ public class Quest extends AbstractScript implements IIdentifiable
*/
public String showHtmlFile(L2PcInstance player, String filename, L2Npc npc)
{
boolean questwindow = !filename.endsWith(".html");
boolean questwindow = false;
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