Anonymous
public text v1 · immutabledef onKill (self,npc,st):
npcId = npc.getNpcId()
if npcId in [190,191] :
if int(st.get("cond")) == 2 :
if st.getRandom(50)<2 :
st.getPcSpawn().addSpawn(5119)
st.playSound("Itemsound.quest_before_battle")
elif npcId == 5119 :
if int(st.get("cond")) == 2 and st.getQuestItemsCount(OLD_KNIGHT_SWORD_ID) > 0 :
st.giveItems(KNIGHTS_TEAR_ID,1)
st.playSound("ItemSound.quest_middle")
st.set("cond","3")