jewelry_delivery_to_taneran.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. function Init(Quest)
  12. 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)
  13. AddQuestStepCompleteAction(Quest, 1, "Delivery")
  14. UpdateQuestZone(Quest, "North Qeynos")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver,"","","thank",0,0,Player)
  19. AddConversationOption(conversation, "I'll be back soon.")
  20. StartConversation(conversation, QuestGiver, Player, "I have waited this long. I can wait a little longer.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Delivery(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, " I've delivered the note to Tara Ironforge.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I've delivered the note to Tara Ironforge in the Jewel Box.")
  27. AddQuestStepChat(Quest, 2, "I need to return to Taneran.", 1, "I need to deliver this jewlery to Taneran in Castleview.", 927, 2360012)
  28. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  29. UpdateQuestZone(Quest, "Castleview Hamlet")
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I've returned to Taneran.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I've given Taneran the jewlery from Tara Ironforge as requested.")
  34. 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.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Delivery(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end