9
3

message_for_zwena.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/TheElddarGrove/message_for_zwena.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.09 01:05:03
  5. Script Purpose :
  6. Zone : TheElddarGrove
  7. Quest Giver: Initiate Lunaru
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "Deliver a message to Zwena in the Elddar Grove. ", 1, "I am to deliver a message to Zwena on the bridge in the Eldarr grove.", 185, 2070031)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "", "", "thank", 0, 0, Player)
  19. AddConversationOption(conversation, "I'll be sure she receives it.")
  20. StartConversation(conversation, QuestGiver, Player, "Greatly appreciated! She'll be singing over by the bridge... no need to return to me, just see that she receives the note.")
  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 QuestComplete(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 delivered a message to Zwena.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I've delivered the message to Zwena from Initiate Lunaru.")
  32. UpdateQuestDescription(Quest, "I've delivered the message from Initiate Lunaru to Zwena. She seemed quite pleased with the message.")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. QuestComplete(Quest, QuestGiver, Player)
  38. end
  39. end