an_urgent_message_from_nettleville.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : Quests/Nettleville/an_urgent_message_from_nettleville.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.24 01:06:35
  5. Script Purpose :
  6. Zone : Nettleville
  7. Quest Giver: Knight-Captain Hastings
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to take the note to Captain Santis in Starcrest Commune.", 1, "Captain Hastings has asked that I take a note to Captain Santis in Starcrest Commune.", 75, 2340018)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Starcrest Commune")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. PlayFlavor(QuestGiver, "", "", "chuckle", 0, 0, Player)
  21. Dialog.AddDialog("Haha! Before you get too excited, I should tell you that you won't be fending off gnolls or repelling a drakota, but it is still a service to the guard. Please take this urgent message to the captain of the Starcrest garrison and be swift.")
  22. Dialog.AddVoiceover("voiceover/english/knight-captain_hastings/qey_village01/captainhastings004.mp3", 3110042960, 4109582117)
  23. Dialog.AddOption("I will return post-haste!")
  24. Dialog.Start()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 Step1Complete(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 delivered the note to Captain Santis.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I delivered the note to Captain Santis.")
  35. UpdateQuestZone(Quest,"Nettleville")
  36. AddQuestStepChat(Quest, 2, "I need to return to Captain Hastings in Nettleville.", 1, "Captain Hastings will want to know Captain Santis' response.", 11, 2330022)
  37. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  38. end
  39. function QuestComplete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 2, "I returned to Captain Hastings.")
  41. UpdateQuestTaskGroupDescription(Quest, 2, "I delivered the response to Captain Hastings.")
  42. UpdateQuestDescription(Quest, "I delivered the message. It was just a challenge sent by Captain Hastings to Captain Santis. Apparently the Qeynos Guards compete in Phalanx matches, a team sport. The few coins at least were worth my time.")
  43. GiveQuestReward(Quest, Player)
  44. end
  45. function Reload(Quest, QuestGiver, Player, Step)
  46. if Step == 1 then
  47. Step1Complete(Quest, QuestGiver, Player)
  48. elseif Step == 2 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end