9
3

MorethanMeetstheEye.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/Commonlands/MorethanMeetstheEye.lua
  3. Script Purpose : Handles the quest, "More than Meets the Eye"
  4. Script Author : premierio015
  5. Script Date : 19.05.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Captain Vertas
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepLocation(Quest, 1, "I must scout the dervish camps to the west", 10, "I need to scout the dervish camps far to the west for Captain Vertas.", 11, 1244, -41, 341)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. AddConversationOption(conversation, "I'm going, I'm going!")
  20. StartConversation(conversation, QuestGiver, Player, "Bring back any information you may find. Why are you still here?")
  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 Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have scouted the dervish camps.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have scouted the dervish camps and need to report to Captain Vertas.")
  31. AddQuestStepChat(Quest, 2, "I need to report to Captain Vertas", 1, "I should report the results of my scouting efforts to Captain Vertas.", 11, 330178)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 2, "I have reported my findings to Captain Vertas at the Crossroads.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I have reported to Captain Vertas at the Crossroads.")
  38. UpdateQuestDescription(Quest, "I scouted the dervish camps and reported to Captain Vertas.")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end