chrykori_relics.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/TimorousDeep/chrykori_relics.lua
  3. Script Purpose : Handles the quest, "Chrykori Relics"
  4. Script Author : Scatman
  5. Script Date : 2009.02.07
  6. Zone : Timorous Deep
  7. Quest Giver: Civ-Parser Di'Xin
  8. Preceded by: None
  9. Followed by: The Ends Justify the Means (the_ends_justify_the_means.lua)
  10. --]]
  11. function Init(Quest)
  12. -- unearthed relic
  13. AddQuestStepObtainItem(Quest, 1, "I need some unearthed relics from the shore near Chrykori Village.", 6, 100, ".", 371, 10523)
  14. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotRelics")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/civ-parser_di_xin/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dixin/dixin004.mp3", "", "", 1900559270, 3494700386, Player)
  20. AddConversationOption(conversation, "I will.")
  21. StartConversation(conversation, QuestGiver, Player, "I am glad to hear it. I am sure you can find the relics anywhere on the shore near Chrykori Village. Find some and bring them back to me, please.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function step1_complete_gotRelics(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have obtained the relics.")
  27. AddQuestStepChat(Quest, 2, "I need to bring these relics back to Civ-Parser Di'Xin.", 1, ".", 371, 2630045)
  28. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  29. end
  30. function quest_complete(Quest, QuestGiver, Player)
  31. -- remove 'unearthed relic'
  32. UpdateQuestDescription(Quest, "I have brought the artifacts I dug up to Civ-Parser Di'Xin.")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. step1_complete_gotRelics(Quest, QuestGiver, Player)
  38. end
  39. end