9
3

IntroductiontotheRavens.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/FrostfangSea/IntroductiontotheRavens.lua
  3. Script Purpose : Handles the quest, "Introduction to the Ravens"
  4. Script Author : EmemJr
  5. Script Date : 2/16/2021
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Envoy Tami Swifthammer
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. SetQuestFeatherColor(Quest, 2)
  14. AddQuestStepChat(Quest, 1, "Deliver Tami's letter to the Ravens of the North.", 1, "The Ravens of the North are based in the crafting and housing area known as Ravens' Roost.", 11, 4701958)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. -- Add dialog here for when the quest is accepted
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. -- Add dialog here for when the quest is declined
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. -- Remove any quest specific items here when the quest is deleted
  25. end
  26. function Step1Complete(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I delivered Tami's letter to the leader of the Ravens of the North.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I delivered Tami's letter to the leader of the Ravens of the North.")
  29. AddQuestStepChat(Quest, 2, "I should return to Tami.", 1, "Tami is currently based in Erronson's Furs and Leathers shop.", 11, 4700293)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 2, "I delivered Tami's letter to the leader of the Ravens of the North, and returned his thanks to her.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I delivered Tami's letter to the leader of the Ravens of the North, and returned his thanks to her.")
  36. UpdateQuestDescription(Quest, "I delivered Tami's introduction letter to the leader of the Ravens of the North, and returned his thanks to her.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end