paying_a_visit.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : paying_a_visit.lua
  3. Script Purpose : Handles the quest, "Paying a Visit"
  4. Script Author : Scatman
  5. Script Date : 2009.07.10
  6. Zone : The Graveyard
  7. Quest Giver: Custodian Zaddar Sullissia
  8. Preceded by: The Door Knocker (the_door_knocker.lua)
  9. Followed by: Finding the Pages (finding_the_pages.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I must speak with Varacus T`Kur. He can be found by following the road north, then to the west.", 1, "I must seek out the dark elf Varacus T`Kur within the graveyard of Freeport. According to Zaddar, Varacus can be found to the north near the ruins of the old tower of Marr.", 0, 1250038)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar036.mp3", "", "", 931872980, 59948626, Player)
  19. AddConversationOption(conversation, "Very well, I'm off.")
  20. StartConversation(conversation, QuestGiver, Player, "Go now, and return when you have the pages from Varacus.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function QuestComplete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have spoken with Varacus T`Kur.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I have found Varacus and spoken with him as instructed by Zaddar.")
  27. GiveQuestReward(Quest, Player)
  28. UpdateQuestDescription(Quest, "I have found Varacus and spoken to him.")
  29. end
  30. function Reload(Quest, QuestGiver, Player, Step)
  31. end