in_search_of_spiritkeepers.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/CityofFreeport/in_search_of_spiritkeepers.lua
  3. Script Purpose : Handles the quest, "In Search of Spiritkeepers"
  4. Script Author : premierio015
  5. Script Date : 26.04.2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : The City of Freeport
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must hunt down and slay five spiritkeepers in the Wailing Caves.", 5, 100, "I must hunt down and slay five spiritkeepers in the Wailing Caves.", 611, 2580054)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. PlayFlavor(QuestGiver, "voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x2_accept.mp3", "", "", 2840316814, 2613001030, Player)
  19. conversation = CreateConversation()
  20. AddConversationOption(conversation, "The task will be done!")
  21. AddConversationOption(conversation, "I understand.")
  22. AddConversationOption(conversation, "You need not be clearer, sir!")
  23. StartConversation(conversation, NPC, Spawn, "I'm glad that we have such ... loyal and willing citizens in our midst. You have pledged your assistance to the militia; be sure that you see this task through to its end, or you will meet yours.")
  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 Step1Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I have slain and scalped five Ree spiritkeepers. ")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain and scalped five Ree spiritkeepers.")
  34. AddQuestStepChat(Quest, 2, "I must return the scalps to Lieutenant Darrius.", 1, "I must return the scalps to Lieutenant Darrius.", 158, 1680056, 5590120)
  35. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 2, "I have delivered the scalps of five Ree spiritkeepers to Lieutenant Darrius. ")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the scalps of five Ree spiritkeepers to Lieutenant Darrius.")
  41. UpdateQuestDescription(Quest, "I was hired by the Freeport Milita officer, Lieutenant Darrius, to hunt down rumored spiritkeepers in the Wailing Caves. I slew no less than five Ree spiritkeeprs and returned with their scalps as proof. For this service, I was paid handsomely.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end