9
3

jewelry_delivery_to_taneran.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : Quests/CastleviewHamlet/jewelry_delivery_to_taneran.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.26 07:01:39
  5. Script Purpose :
  6. Zone : CastleviewHamlet
  7. Quest Giver: Taneranthalis Nedaiveren
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, " I need to deliver this note to Tara Ironforge.", 1, " I must deliver a note to Tara Ironforge in the Jewel Box located in North Qeynos.", 75, 2220057)
  14. AddQuestStepCompleteAction(Quest, 1, "Delivery")
  15. UpdateQuestZone(Quest, "North Qeynos")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("It's a simple task. I need you to deliver a note to Tara Ironforge at the Jewel Box in North Qeynos. The shop isn't difficult to find. It's outside the Ironforge Estate, look for the Ironforge shops in the southern section of the district. Return with the package that Tara gives you.")
  21. Dialog.AddVoiceover("voiceover/english/taneranthalis_nedaiveren/qey_village04/qst_taneranthalisnedaiveren002.mp3",1622360856, 1471149811)
  22. PlayFlavor(QuestGiver, "", "", "agree", 0,0 , Player)
  23. Dialog.AddOption("Understood. I'll see what I can do.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function Delivery(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, " I've delivered the note to Tara Ironforge.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I've delivered the note to Tara Ironforge in the Jewel Box.")
  31. AddQuestStepChat(Quest, 2, "I need to return to Taneran.", 1, "I need to deliver this jewlery to Taneran in Castleview.", 927, 2360012)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. UpdateQuestZone(Quest, "Castleview Hamlet")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 2, "I've returned to Taneran.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I've given Taneran the jewlery from Tara Ironforge as requested.")
  38. UpdateQuestDescription(Quest, "I'm sure Taneranthalis and Listalania will make a good couple when and if he decides the time is right. Perhaps one day their children will be able to visit his home city of Felwithe... indeed, maybe I will be able to see its white towers as well.")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Delivery(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end