SearchForTheMissing.lua 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : Quests/Freeport/SearchForTheMissing.lua
  3. Script Purpose : Handles the quest, "Search for the Missing"
  4. Script Author : premierio015
  5. Script Date : 08.08.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : City of Freeport
  8. Quest Giver : a weary Kor shaman
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Search for the froglok the shaman mentioned.", 1, "The froglok shaman has asked that I find his companion out in the Commons.", 11, 5590146)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "a_weary_kor_shaman/rivervale/a_froglok_kor_shaman006.mp3", "", "", 2271895946, 2901122965, Player)
  20. AddConversationOption(conversation, "I will find her.")
  21. StartConversation(conversation, QuestGiver, Player, "Then search the land for my mate Kraofla. She only barely managed to escape the guards when we washed up on the shores of the great barren land beyond these walls. Surely she would have sought the comfort of shade and water.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I.O. Gezlowe has informed me of a new duty.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "Before I could search out the froglok, I.O. Gezlowe flagged me down. I now have a new assignment...")
  32. AddQuestStepKill(Quest, 2, "Search for the froglok the shaman mentioned.", 1, 100, "Intelligence Officer Gezlowe has given me instructions to continue my search for the froglok, but instead of helping it... I must murder it.", 2465, 330291)
  33. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  34. end
  35. function Step2Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 2, "I've found and murdered the froglok.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "Kraofla's lifeless body rests under the shade of the statues of her beloved Marr.")
  38. AddQuestStepChat(Quest, 3, "Return to the shaman and tell him of Kraofla's untimely death.", 1, "With Kraofla dead, I'll need to return to the frog and sorrowfully inform it of its mate's passing.", 11, 5590139)
  39. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  40. end
  41. function QuestComplete(Quest, QuestGiver, Player)
  42. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  43. UpdateQuestStepDescription(Quest, 3, "I've spoken to the shaman and informed him of Kraofla's death.")
  44. UpdateQuestTaskGroupDescription(Quest, 3, "The death of his mate has saddened the shaman.")
  45. UpdateQuestDescription(Quest, "After speaking with I.O. Gezlowe, I managed to hunt down the froglok. Perhaps the shaman didn't catch on with what I did to its mate. It certainly doesn't seem to have. One thing is for certain, Lucan doesn't want this relic of a race among the living. <br>")
  46. GiveQuestReward(Quest, Player)
  47. end
  48. function Reload(Quest, QuestGiver, Player, Step)
  49. if Step == 1 then
  50. Step1Complete(Quest, QuestGiver, Player)
  51. elseif Step == 2 then
  52. Step2Complete(Quest, QuestGiver, Player)
  53. elseif Step == 3 then
  54. QuestComplete(Quest, QuestGiver, Player)
  55. end
  56. end