nylas_pie_thief.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. function Init(Quest)
  13. 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)
  14. AddQuestStepCompleteAction(Quest, 1, "step1beentothesmithy")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "I'll be back once I look around!")
  20. StartConversation(conversation, QuestGiver, Player, "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. I'll give the culprit such a scolding they'll think twice before taking one of my pies.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. end
  26. function step1beentothesmithy(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I checked 'The Ringing Hammer'")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I checked the smithy, but found no one who took the pie")
  29. 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)
  30. AddQuestStepCompleteAction(Quest, 2, "step2beentobank")
  31. end
  32. function step2beentobank(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I checked 'The Qeynos Exchange'")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I checked the bank, but found no one who took the pie")
  35. 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)
  36. AddQuestStepCompleteAction(Quest, 3, "step3deepmug")
  37. end
  38. function step3deepmug(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 3, "I smell the pie in 'The Deepmug Tavern'")
  40. UpdateQuestTaskGroupDescription(Quest, 3, "I smell the pie coming from someone in The Deepmug Tavern")
  41. 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)
  42. AddQuestStepCompleteAction(Quest, 4, "step4Thief")
  43. end
  44. function step4Thief(Quest, QuestGiver, Player)
  45. UpdateQuestStepDescription(Quest, 4, "Lozoria Shinkicker took the pie!")
  46. UpdateQuestTaskGroupDescription(Quest, 4, "Sadly, Lozoria Shinkicker couldn't resist eating the pie.")
  47. AddQuestStepChat(Quest, 5, "I should tell Nyla about her pie.", 1, "Nyla needs to know Lozoria Shinkicker took her pie.", 0, 2380023)
  48. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  49. end
  50. function QuestComplete(Quest, QuestGiver, Player)
  51. UpdateQuestStepDescription(Quest, 5, "I've told Nyla about her lost pie.")
  52. UpdateQuestTaskGroupDescription(Quest, 5, "I've uncovered Nyla's pie thief and told Nyla who did it.")
  53. 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. ")
  54. GiveQuestReward(Quest, Player)
  55. end
  56. function Reload(Quest, QuestGiver, Player, Step)
  57. if Step == 1 then
  58. step1beentothesmithy(Quest, QuestGiver, Player)
  59. elseif Step == 2 then
  60. step2beentobank(Quest, QuestGiver, Player)
  61. elseif Step == 3 then
  62. step3deepmug(Quest, QuestGiver, Player)
  63. elseif Step == 4 then
  64. step4Thief(Quest, QuestGiver, Player)
  65. elseif Step == 5 then
  66. ThiefFound(Quest, QuestGiver, Player)
  67. -- elseif Step == 6 then
  68. -- QuestComplete(Quest, QuestGiver, Player)
  69. end
  70. end