sword_delivery_for_noelle.lua 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : Quests/NorthQeynos/sword_delivery_for_noelle.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.11 08:05:36
  5. Script Purpose :
  6. Zone : NorthQeynos
  7. Quest Giver: Walter Channing
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to deliver a sword to Noelle Dering.", 1, "Noelle Dering in North Qeynos awaits delivery of her sword from Walter Channing.", 612, 2220091)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Compelte")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/walter_channing/qey_north/walterchanning002.mp3", "", "happy", 1928822872, 914298154, Player)
  19. AddConversationOption(conversation, "I'll be sure to handle it with care. I'll return soon.")
  20. StartConversation(conversation, QuestGiver, Player, "Ha ha! That's the spirit! I appreciate your kindness. Return to me after you've delivered the longsword to Noelle Dering. She's giving this specially created sword as a gift to her husband. He'll need to test out the sword to see if the balance needs to be changed. You can find Noelle in Irontoes East.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Compelte(Quest, QuestGiver, Player)
  29. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  30. UpdateQuestStepDescription(Quest, 1, "I've delivered the sword to Noelle Dering.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "Noelle Dering has received the longsword.")
  32. AddQuestStepChat(Quest, 2, "I need to tell Walter Channing I've made the delivery.", 1, "Walter Channing needs to know Noelle happily accepted the blade.", 11, 2220053)
  33. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  37. UpdateQuestStepDescription(Quest, 2, "I've returned to Walter Channing.")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "Walter Channing was pleased to hear Noelle appreciated his crafstmanship.")
  39. UpdateQuestDescription(Quest, "It appears that all is right. Noelle Dering was very pleased with both the quality of the sword and the timeliness of the delivery. Walter Channing seemed quite happy with my haste with delivering the sword as well.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Compelte(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. QuestComplete(Quest, QuestGiver, Player)
  47. end
  48. end