All pastes #40926 Raw Edit

Something

public text v1 · immutable
#40926 ·published 2006-02-09 21:59 UTC
rendered paste body
def onKill (self,npc,st):
   npcId = npc.getNpcId()
   cond = int(st.get("cond"))
   if cond == 2 and npcId in [ 13, 19, 36, 44 ] :
     if npcId == 36 or npcId == 44 and st.getQuestItemsCount(BREATH_OF_WINDS_ID) == 0 :
       st.set("id",str(int(st.get("id"))+1))
       if st.getRandom(100)<(int(st.get("id"))*33) :
         st.playSound("Itemsound.quest_before_battle")
         st.getPcSpawn().addSpawn(5120,9410,50301,-3713)
     elif npcId == 13 or npcId == 19 and st.getQuestItemsCount(SEED_OF_VERDURE_ID) == 0 :
       st.set("id",str(int(st.get("id"))+1))
       if st.getRandom(100)<(int(st.get("id"))*33) :
         st.playSound("Itemsound.quest_before_battle")
         st.getPcSpawn().addSpawn(5121,16895,47210,-3673)
   elif cond == 14 :
     parasite = st.getQuestItemsCount(PARASITE_OF_LOTA_ID)
     if npcId == 553 and parasite < 10 :