Changing showHtmlFile to work based on quest state instead of file extension.
This commit is contained in:
parent
7abd1c3d7f
commit
c73c134878
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user