finding_the_shrine.lua 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/SunkenCity/finding_the_shrine.lua
  3. Script Purpose : Handles the quest, "Finding the Shrine"
  4. Script Author : Scatman
  5. Script Date : 2009.07.28 (15.7.2022 by torsten)
  6. Zone : Sunken City
  7. Quest Giver: Investigator Curfield
  8. Preceded by: Taking Back from the Blackshields (taking_back_from_the_blackshields.lua)
  9. Followed by: Back to the Inquisitor (back_to_the_inquisitor.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepLocation(Quest, 1, "I need to determine if anything remains of the shrine to Prexus", 30, "I must search the Sunken City for a ruined shrine of Prexus.", 0, 6.9727, 2.36759, -54.6769)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_FoundShrine")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/investigator_curfeld/fprt_adv01_sunken/investigator_curfeld014.mp3", "", "", 4099914097, 989172019, Player)
  19. AddConversationOption(conversation, "I will do so. Hopefully I'll be in one piece.")
  20. StartConversation(conversation, QuestGiver, Player, "I heard the shrine used to be found in the northern central part of Plank's Edge. Try going east a bit, then north. Return to me when you have the knowledge I require.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_FoundShrine(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have found a shrine that seems to hum with mystical power.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I found the haunted ruins of an old shrine.")
  27. AddQuestStepChat(Quest, 2, "I should return to Investigator Curfeld and tell him what I found.", 1, "I must return to Investigator Curfeld and tell him I found the shrine.", 0, 1240027)
  28. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  29. end
  30. function Quest_Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I reported back to Investigator Curfeld.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I reported back to Curfeld.")
  33. GiveQuestReward(Quest, Player)
  34. UpdateQuestDescription(Quest, "I found the remains of the shrine to Prexus, which was guarded by the remains of the fallen Darkfathom members. I heard a distinct hum, which indicated to me that the shrine still has some sort of power. I reported back to Investigator Curfeld and let him know.")
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. Step1_Complete_FoundShrine(Quest, QuestGiver, Player)
  39. end
  40. end