def onTalk (Self,npc,st):
npcId = npc.getNpcId()
htmltext = "<html><head><body>I have nothing to say you</body></html>"
id = st.getState()
level = st.getPlayer().getLevel()
if id == CREATED :
st.set("cond","0")
st.setState(STARTING)
if npcId == 7753 and id == STARTING and level>=50 :
htmltext = "7753-01.htm"
else:
htmltext = "7753-00.htm"
if npcId == 7753 and st.getQuestItemsCount(MARK_OF_WATCHMAN_ID)==4 and int(st.get("part"))<=4 :
htmltext = "7753-09.htm"
st.getQuestItemsCount(MARK_OF_WATCHMAN_ID)
st.takeItems(MARK_OF_WATCHMAN_ID,-1)
elif npcId == 7753 and st.getQuestItemsCount(MARK_OF_WATCHMAN_ID)==2 and int(st.get("cond"))==2 :
st.takeItems(MARK_OF_WATCHMAN_ID,-1)
st.takeItems(FEATHER_OF_GABRIELLE_ID,-1)
st.giveItems(HERALD_OF_SLAYER_ID,1)
htmltext == "7753-11.htm"
st.set("cond","3")
st.playSound("ItemSound.quest_middle")
if npcId == 7753 and st.getQuestItemsCount(HERALD_OF_SLAYER_ID)==1 and int(st.get("cond"))==3 :
htmltext == "7753-12.htm"
if npcId == 7753 and id == STARTED and int(st.get("cond"))==1 :
htmltext == "7753-06.htm"
# if npcId == 7753 and int(st.get("part"))==4 :
# htmltext == "7753-08.htm"
if npcId == 7753 and int(st.get("cond"))==2 and st.getQuestItemsCount(HERALD_OF_SLAYER_ID)==1 :
htmltext == "7753-10.htm"
if npcId == 7753 and int(st.get("part"))==7 :
htmltext == "7753-13.htm"