nylas_pie_thief.lua 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. --[[
  2. Script Name : Quests/Baubbleshire/nylas_pie_thief.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.11 01:01:26
  5. Script Purpose :
  6. Notes: Reconstructed Removed Quest from Live - Using Voice Overs and Prima Guide as resources.
  7. Zone : Baubbleshire
  8. Quest Giver: Nyla Diggs
  9. Preceded by: None
  10. Followed by:
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepLocation(Quest, 1, "I must check 'The Ringing Hammer' smithy.", 5, "I need to check the smithy for someone who may have taken the pie.", 2558, 850.34, -18.22, -514.64, 238)
  15. AddQuestStepCompleteAction(Quest, 1, "step1beentothesmithy")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver,Player)
  20. Dialog.AddDialog("You'd do that? Tell you what, you search for the missing pie and when you return I'll have a fresh baked pie waiting for you. Oh, and I'll give the culprit such a scolding, he'll think twice before taking another one of my pies!")
  21. Dialog.AddVoiceover("voiceover/english/nyla_diggs/qey_village06/nyladiggs002.mp3", 1037348617, 3974383553)
  22. Dialog.AddLanguage(8)
  23. Dialog.AddOption("I'll return as soon as I find out more about that pie!")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. end
  30. function step1beentothesmithy(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "I checked 'The Ringing Hammer'")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I checked the smithy, but found no trace of the pie")
  33. AddQuestStepLocation(Quest, 2, "I need to check 'The Qeynos Exchange'.", 5, "I need to check the bank for someone who may have taken the pie", 2558, 895.18, -18.01, -480.29, 238)
  34. AddQuestStepCompleteAction(Quest, 2, "step2beentobank")
  35. end
  36. function step2beentobank(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 2, "I checked 'The Qeynos Exchange'")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "The bank seems fairly quiet. The banker is tending to his ledger, and there are no tell-tale crumbs lying around on the floor or desk. No one here took Nyla's pie!")
  39. AddQuestStepLocation(Quest, 3, "I need to investigate 'The Deepmug Tavern'.", 5, "I need to check the tavern for someone who may have taken the pie", 2558, 880.47, -18.31, -443.50, 238)
  40. AddQuestStepCompleteAction(Quest, 3, "step3deepmug")
  41. end
  42. function step3deepmug(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 3, "I smell the pie in 'The Deepmug Tavern'")
  44. UpdateQuestTaskGroupDescription(Quest, 3, "I smell fresh pie in the tavern! Someone in here is the pie thief.")
  45. AddQuestStepChat(Quest, 4, "I need to ask the The Deepmug Tavern patrons about the pie.", 1, "Someone in the tavern must know about the pie.", 0, 2380030)
  46. AddQuestStepCompleteAction(Quest, 4, "step4Thief")
  47. end
  48. function step4Thief(Quest, QuestGiver, Player)
  49. UpdateQuestStepDescription(Quest, 4, "Lozoria Shinkicker took the pie!")
  50. UpdateQuestTaskGroupDescription(Quest, 4, "Sadly, Lozoria Shinkicker couldn't resist eating the pie.")
  51. AddQuestStepChat(Quest, 5, "I should tell Nyla about her pie.", 1, "I need to tell Nyla Diggs that Lozoria was the thief.", 0, 2380023)
  52. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  53. end
  54. function QuestComplete(Quest, QuestGiver, Player)
  55. UpdateQuestStepDescription(Quest, 5, "I've told Nyla about her lost pie.")
  56. UpdateQuestTaskGroupDescription(Quest, 5, "I've uncovered Nyla's pie thief and told Nyla who did it.")
  57. UpdateQuestDescription(Quest, "I told Nyla about her lost pie. I guess the thief was Lozoria over in the Deepmug tavern. Couldn't resist he said! Oh well, it seems like everything's all right though. ")
  58. GiveQuestReward(Quest, Player)
  59. end
  60. function Reload(Quest, QuestGiver, Player, Step)
  61. if Step == 1 then
  62. step1beentothesmithy(Quest, QuestGiver, Player)
  63. elseif Step == 2 then
  64. step2beentobank(Quest, QuestGiver, Player)
  65. elseif Step == 3 then
  66. step3deepmug(Quest, QuestGiver, Player)
  67. elseif Step == 4 then
  68. step4Thief(Quest, QuestGiver, Player)
  69. elseif Step == 5 then
  70. ThiefFound(Quest, QuestGiver, Player)
  71. -- elseif Step == 6 then
  72. -- QuestComplete(Quest, QuestGiver, Player)
  73. end
  74. end