}
@Override
public String onEvent(String event, QuestState st, NpcInstance npc)
{
Player player = st.getPlayer();
String htmltext = event;
if (event.equalsIgnoreCase("sirgustavathebaldt_q194_2.htm"))
{
st.setCond(1);
st.setState(STARTED);
st.playSound(SOUND_ACCEPT);
}
else if (event.equalsIgnoreCase("sirgustavathebaldt_q194_2c.htm"))
{
st.setCond(2);
st.playSound(SOUND_MIDDLE);
player.showQuestMovie(ExStartScenePlayer.SCENE_SSQ_CONTRACT_OF_MAMMON);
return null;
}
else if (event.equalsIgnoreCase("sirgustavathebaldt_q194_3.htm"))
{
st.setCond(3);
st.playSound(SOUND_MIDDLE);
st.giveItems(AthebaldtsIntroduction, 1);
}
else if (event.equalsIgnoreCase("colin_q194_3.htm"))
{
st.takeItems(AthebaldtsIntroduction, -1);
st.setCond(4);
}
else if (event.equalsIgnoreCase("colin_q194_3a.htm"))
{
if ((player.getTransformation() != 0) || player.isMounted())
{
player.sendPacket(Msg.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN);
return null;
}
negateSpeedBuffs(player);
SkillTable.getInstance().getInfo(6201, 1).getEffects(npc, player, false, false);
}
else if (event.equalsIgnoreCase("frog_q194_2.htm"))
{
st.setCond(5);
st.playSound(SOUND_MIDDLE);
st.giveItems(FrogKingsBead, 1);
}
else if (event.equalsIgnoreCase("colin_q194_5.htm"))
{
st.setCond(6);
st.takeItems(FrogKingsBead, -1);
st.playSound(SOUND_MIDDLE);
}
else if (event.equalsIgnoreCase("colin_q194_6.htm"))
{
if ((player.getTransformation() != 0) || player.isMounted())
{
player.sendPacket(Msg.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN);
return null;
}
st.setCond(7);
st.playSound(SOUND_MIDDLE);
negateSpeedBuffs(player);
SkillTable.getInstance().getInfo(6202, 1).getEffects(player, player, false, false);
}
else if (event.equalsIgnoreCase("tess_q194_2.htm"))
{
st.setCond(8);
st.giveItems(GrandmaTessCandyPouch, 1);
st.playSound(SOUND_MIDDLE);
}
else if (event.equalsIgnoreCase("colin_q194_8.htm"))
{
st.setCond(9);
st.takeItems(GrandmaTessCandyPouch, -1);
st.playSound(SOUND_MIDDLE);
}
else if (event.equalsIgnoreCase("colin_q194_9.htm"))
{
if ((player.getTransformation() != 0) || player.isMounted())
{
player.sendPacket(Msg.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN);
return null;
}
st.setCond(10);
st.playSound(SOUND_MIDDLE);
negateSpeedBuffs(player);
SkillTable.getInstance().getInfo(6203, 1).getEffects(player, player, false, false);
}
else if (event.equalsIgnoreCase("kuta_q194_2.htm"))
{
st.setCond(11);
st.giveItems(NativesGlove, 1);
st.playSound(SOUND_MIDDLE);
}
else if (event.equalsIgnoreCase("colin_q194_10a.htm"))
{
st.setCond(12);
st.takeItems(NativesGlove, -1);
st.playSound(SOUND_MIDDLE);
}
else if (event.equalsIgnoreCase("claudiaathebaldt_q194_2.htm"))
{
if (player.getBaseClassId() == player.getActiveClassId())
{
st.addExpAndSp(10000000, 2500000);
st.setState(COMPLETED);
st.exitCurrentQuest(false);
st.playSound(SOUND_FINISH);
}
else
{
return "subclass_forbidden.htm";
}
}
else if (event.equalsIgnoreCase("colin_q194_11a.htm"))
{
if ((player.getTransformation() != 0) || player.isMounted())
{
player.sendPacket(Msg.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN);
return null;
}
negateSpeedBuffs(player);
SkillTable.getInstance().getInfo(6201, 1).getEffects(player, player, false, false);
}
else if (event.equalsIgnoreCase("colin_q194_12a.htm"))
{
if ((player.getTransformation() != 0) || player.isMounted())
{
player.sendPacket(Msg.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN);
return null;
}
negateSpeedBuffs(player);
SkillTable.getInstance().getInfo(6202, 1).getEffects(player, player, false, false);
}
else if (event.equalsIgnoreCase("colin_q194_13a.htm"))
{
if ((player.getTransformation() != 0) || player.isMounted())
{
player.sendPacket(Msg.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN);
return null;
}
negateSpeedBuffs(player);
SkillTable.getInstance().getInfo(6203, 1).getEffects(player, player, false, false);
}