def onEvent (self,event,st) : htmltext = event if event == "1" : st.setState(STARTED) st.set("cond","1") htmltext = "7753-05.htm" st.giveItems(FEATHER_OF_GABRIELLE_ID,1) st.playSound("ItemSound.quest_accept") elif event == "7753-08.htm" : st.set("cond","2") htmltext = "7753-09.htm" st.playSound("ItemSound.quest_middle") elif event == "7498-01.htm" : htmltext = "7498-02.htm" st.set("part","5") st.playSound("ItemSound.quest_accept") elif event == "7678-01.htm" : st.set("part","6") htmltext = "7498-01a.htm" st.playSound("ItemSound.quest_accept") elif event == "7754-02.htm" : htmltext = "7754-03.htm" st.set("part","7") st.set("cond","4") st.playSound("ItemSound.quest_accept") elif event == "7755-04.htm" : st.set("part","8") st.giveItems(PORTAL_STONE_ID,1) st.takeItems(THIRD_FRAGMENT_OF_ABYSS_JEWEL_ID,-1) htmltext = "7755-05.htm" st.playSound("ItemSound.quest_accept") elif event == "12250-01.htm" : st.takeItems(PORTAL_STONE_ID,1) st.player.teleToLocation(177752,114910,-7713) return htmltext