if chance > 0: if st.getRandom(100) < chance and st.getQuestItemsCount(dropId) == 0: st.giveItems(dropId,1) st.playSound("Itemsound.quest_itemget") if npcId == 12372: st.takeItems(PIPETTE_KNIFE,1) if spawnId > 0 : st.getPcSpawn().addSpawn(spawnId,npc.getX(),npc.getY(),npc.getZ(),120000) return QUEST = Quest(234,"234_FatesWhisper","Fate's Whisper") CREATED = State('Start', QUEST) STARTED = State('Started', QUEST) COMPLETED = State('Completed', QUEST) QUEST.setInitialState(CREATED) QUEST.addStartNpc(NPC[0]) CREATED.addTalkId(NPC[0]) for npcId in NPC: STARTED.addTalkId(npcId) for mobId in DROPLIST.keys() : STARTED.addKillId(mobId) STARTED.addAttackId(12372) print "importing quests: 234: Fate's Whisper"
else: if npcId == 5181: # Imperial Gravekeeper st.getPcSpawn().addSpawn(7765,6000000,["Curse of the gods on the one that defiles the property of the empire!"],0) setLeaderVar(st,"ImpGraveKeeper","3") else: st.getPcSpawn().addSpawn(5179) return QUEST = Quest(503,qn,"Pursuit of Clan Ambition") CREATED = State('Start', QUEST) PROGRESS = State('Progress', QUEST) COMPLETED = State('Completed', QUEST) QUEST.setInitialState(CREATED) QUEST.addStartNpc(NPC[3]) CREATED.addTalkId(NPC[3]) for npcId in NPC: PROGRESS.addTalkId(npcId) for mobId in DROPLIST.keys(): PROGRESS.addKillId(mobId) PROGRESS.addAttackId(5181) for i in range(3839,3848)+range(3866,3870): PROGRESS.addQuestDrop(5181,i,1) print "importing quests: 503: " + qd
st.getPcSpawn().addSpawn(7765, 6000000, [ "Curse of the gods on the one that defiles the property of the empire!" ], 0) setLeaderVar(st, "ImpGraveKeeper", "3") else: st.getPcSpawn().addSpawn(5179) return QUEST = Quest(503, qn, "Pursuit of Clan Ambition") CREATED = State('Start', QUEST) PROGRESS = State('Progress', QUEST) COMPLETED = State('Completed', QUEST) QUEST.setInitialState(CREATED) QUEST.addStartNpc(NPC[3]) CREATED.addTalkId(NPC[3]) for npcId in NPC: PROGRESS.addTalkId(npcId) for mobId in DROPLIST.keys(): PROGRESS.addKillId(mobId) PROGRESS.addAttackId(5181) for i in range(3839, 3848) + range(3866, 3870): PROGRESS.addQuestDrop(5181, i, 1) print "importing quests: 503: " + qd
CREATED = State('Start', QUEST) PROGRESS = State('Progress', QUEST) COMPLETED = State('Completed', QUEST) QUEST.setInitialState(CREATED) QUEST.addStartNpc(NPC[1]) # adds all npcs, mobs to the progress state CREATED.addTalkId(NPC[1]) for npcId in NPC: PROGRESS.addTalkId(npcId) for mobId in DROPLIST_LARA.keys(): PROGRESS.addKillId(mobId) for mobId in DROPLIST_SUMMON.keys(): PROGRESS.addKillId(mobId) PROGRESS.addAttackId(mobId) #for summonId in PLAYER_SUMMONS: # PROGRESS.addKillId(summonId) # this will add the player to the list of notified objects in onDeath Part #addNotifyOfDeath(st.getPlayer()) #This is just to formal add the drops, in case that a player abort this quest.. the items should disappear STARTED = State('Started', QUEST) STARTED.addQuestDrop(7063, LARS_LIST1_ID, 1) STARTED.addQuestDrop(7063, LARS_LIST2_ID, 1) STARTED.addQuestDrop(7063, LARS_LIST3_ID, 1) STARTED.addQuestDrop(7063, LARS_LIST4_ID, 1) STARTED.addQuestDrop(7063, LARS_LIST5_ID, 1) STARTED.addQuestDrop(7635, ALMORS_ARCANA_ID, 1)
PROGRESS = State('Progress', QUEST) COMPLETED = State('Completed', QUEST) QUEST.setInitialState(CREATED) QUEST.addStartNpc(NPC[1]) # adds all npcs, mobs to the progress state CREATED.addTalkId(NPC[1]) for npcId in NPC: PROGRESS.addTalkId(npcId) for mobId in DROPLIST_LARA.keys(): PROGRESS.addKillId(mobId) for mobId in DROPLIST_SUMMON.keys(): PROGRESS.addKillId(mobId) PROGRESS.addAttackId(mobId) #for summonId in PLAYER_SUMMONS: # PROGRESS.addKillId(summonId) # this will add the player to the list of notified objects in onDeath Part #addNotifyOfDeath(st.getPlayer()) #This is just to formal add the drops, in case that a player abort this quest.. the items should disappear STARTED = State('Started', QUEST) STARTED.addQuestDrop(7063,LARS_LIST1_ID,1) STARTED.addQuestDrop(7063,LARS_LIST2_ID,1) STARTED.addQuestDrop(7063,LARS_LIST3_ID,1) STARTED.addQuestDrop(7063,LARS_LIST4_ID,1) STARTED.addQuestDrop(7063,LARS_LIST5_ID,1) STARTED.addQuestDrop(7635,ALMORS_ARCANA_ID,1)