pelles_manuscript.lua 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : pelles_manuscript.lua
  3. Script Purpose : Handles the quest, "Pelle's Manuscript"
  4. Script Author : Dorbin
  5. Script Date : 5/2/2022
  6. Script Notes :
  7. Zone : The Elddar Grove
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to speak with Rune Shimmerstar in South Qeynos.", 1, "I must give this manuscript to Rune Shimmerstar at the mage's tower in South Qeynos.", 711, 2310081)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestStep2")
  15. UpdateQuestZone(Quest, "South Qeynos")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/pelle_shinkicker/qey_elddar/pelleshinkicker003.mp3", "", "thank", 2052304892, 1411111467, Player)
  20. FaceTarget(QuestGiver, Player)
  21. AddConversationOption(conversation, "I'll be back shortly.")
  22. AddConversationOption(conversation, "If we don't stop talking now I may never get there!")
  23. StartConversation(conversation, QuestGiver, Player, "Great news! Best I've had all day really. Now, make certain it is a human by the name of Rune Shimmerstar who recieves this. He's the only one at the Three Towers I'll trust! Hehe, never made it much of a habbit to put much faith in those magi-folk. You know, we had quite a number of adventures together, Rune and me! Quite a nice chap once you get to know him.")
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is declined
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. -- Remove any quest specific items here when the quest is deleted
  30. end
  31. function QuestStep2(Quest, QuestGiver, Player)
  32. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  33. UpdateQuestStepDescription(Quest, 1, "I've spoken with Rune Shimmerstar.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "Rune Shimmerstar has laid an enchantment on the book to preserve it.")
  35. UpdateQuestZone(Quest, "Oakmyst Forest")
  36. AddQuestStepChat(Quest, 2, "I need to deliver this book to Aundor Singingsword in the Oakmyst Forest", 1, "Rune Shimmerstar asked me to show Aundor Singingsword the newly bound book.", 720, 1950021)
  37. AddQuestStepCompleteAction(Quest, 2, "QuestStep3")
  38. end
  39. function QuestStep3(Quest, QuestGiver, Player)
  40. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  41. UpdateQuestStepDescription(Quest, 2, "I've spoken with Aundor Singingsword.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "Aundor Singingsword revealed some of Pelle's exaggerations.")
  43. UpdateQuestZone(Quest, "The Elddar Forest")
  44. AddQuestStepChat(Quest, 3, "I need to deliver this book to Pelle Shinkicker in the Elddar Grove", 1, "Pelle Shinkicker is waiting for his book to be returned in the Elddar Grove.", 720, 2070067)
  45. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  46. end
  47. function QuestComplete(Quest, QuestGiver, Player)
  48. UpdateQuestStepDescription(Quest, 3, "I've returned to Pelle Shinkicker.")
  49. UpdateQuestTaskGroupDescription(Quest, 3, "Pelle was pleased to hear about how his new work was recieved.")
  50. UpdateQuestDescription(Quest, "After I spoke with Rune Shimmerstar, he sent me off to go speak with yet another of their old company. I was relieved to find Aundor only wished me to return Pelle's copy of the book and not play messenger any longer. When I returned to Pelle, he did have a rather nice bracelet for me!")
  51. GiveQuestReward(Quest, Player)
  52. end
  53. function Reload(Quest, QuestGiver, Player, Step)
  54. if Step == 1 then
  55. QuestStep2(Quest,Questgiver,Player)
  56. elseif Step == 2 then
  57. QuestStep3(Quest,Questgiver,Player)
  58. elseif Step == 3 then
  59. QuestComplete(Quest, QuestGiver, Player)
  60. end
  61. end