CaptainFeralis.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : captain_feralis.lua
  3. Script Purpose : Handles the quest, "Captain Feralis"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 13.03.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to speak with Captain Feralis at the Crossroads", 1, "I need to deliver these root samples to Captain Feralis at the Crossroads.", 11, 330184)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. SummonItem(Player, 4403, 1)
  18. FaceTarget(QuestGiver, Player)
  19. local conversation = CreateConversation()
  20. AddConversationOption(conversation, "Thanks.")
  21. AddConversationOption(conversation, "[nod]")
  22. AddConversationOption(conversation, "I know it was")
  23. StartConversation(conversation, QuestGiver, Player, "Good, good. He may have work for you once you get there. Once again, great work out there!")
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is declined
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. -- Remove any quest specific items here when the quest is deleted
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  33. UpdateQuestStepDescription(Quest, 1, "I have spoken with Captain Feralis.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken with Captain Feralis.")
  35. UpdateQuestDescription(Quest, "I have given the treated root samples to Captain Feralis.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. QuestComplete(Quest, QuestGiver, Player)
  41. end
  42. end