}
@Override
public String onEvent(String event, QuestState st, NpcInstance npc)
{
Player player = st.getPlayer();
String htmltext = event;
if (event.equalsIgnoreCase("priest_wood_q10292_1.htm"))
{
st.setCond(1);
st.setState(STARTED);
st.playSound(SOUND_ACCEPT);
}
else if (event.equalsIgnoreCase("priest_wood_q10292_4.htm"))
{
enterInstance(player, 145);
}
else if (event.equalsIgnoreCase("witness_of_dawn_q10292_2.htm"))
{
st.setCond(2);
st.playSound(SOUND_MIDDLE);
}
else if (event.equalsIgnoreCase("elcadia_abyssal_saintess_q10292_2.htm"))
{
st.setCond(3);
st.playSound(SOUND_MIDDLE);
}
else if (event.equalsIgnoreCase("elcadia_abyssal_saintess_q10292_9.htm"))
{
st.setCond(7);
st.playSound(SOUND_MIDDLE);
}
else if (event.equalsIgnoreCase("hardin_q10292_1.htm"))
{
st.setCond(8);
st.playSound(SOUND_MIDDLE);
}
else if (event.equalsIgnoreCase("spawnTestMobs"))
{
int reflectId = player.getReflectionId();
st.set("CreatureOfTheDusk1", 1);
st.set("CreatureOfTheDusk2", 1);
addSpawnToInstance(CREATURE_OF_THE_DUSK_1, 89416, -237992, -9632, 0, 0, reflectId);
addSpawnToInstance(CREATURE_OF_THE_DUSK_2, 89416, -238136, -9632, 0, 0, reflectId);
return null;