All pastes #38890 Raw Edit

Anonymous

public text v1 · immutable
#38890 ·published 2006-01-28 11:01 UTC
rendered paste body
def 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")