TheMissingRecruit.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Quests/Darklight/TheMissingRecruit.lua
  3. Script Purpose : Handles the quest, "The Missing Recruit"
  4. Script Author : Cynnat
  5. Script Date : 8/30/2015
  6. Script Notes : Has 2 different versions.
  7. Zone : Darklight Wood
  8. Quest Giver : Ginwyss D'Arkenett
  9. Preceded by : A Guard Insignia?
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I need to search north of T'Vatar Outpost for Soltrin's corpse and his field kit.", 1, "Ginwyss D'Arkenett wants me to find the body of her recruit and retrieve his field kit.", 11) -- icon id 11
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have acquired the recruit's field kit.")
  18. AddQuestStepChat(Quest, 2, "I need to bring the field kit back to Ginwyss D'Arkenett.", 1, "Ginwyss D'Arkenett wants me to find the body of her recruit and retrieve his field kit.", 396, 340064) -- icon id 396
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. RemoveItem(Player, 13115)
  23. UpdateQuestDescription(Quest, "I have brought the recruit's field kit to Ginwyss.")
  24. GiveQuestReward(Quest, Player)
  25. end
  26. function Reload(Quest, QuestGiver, Player, Step)
  27. if Step == 1 then
  28. Step1Complete(Quest, QuestGiver, Player)
  29. elseif Step == 2 then
  30. QuestComplete(Quest, QuestGiver, Player)
  31. end
  32. end
  33. function Accepted(Quest, QuestGiver, Player)
  34. FaceTarget(QuestGiver, Player)
  35. conversation = CreateConversation()
  36. PlayFlavor(QuestGiver, "ginwyss_d_arkenett/darklight_wood/tvatar_post/ginwyss_revamp/ginwyss023.mp3", "", "", 3126616209, 364737454, Player)
  37. AddConversationOption(conversation, "Okay.")
  38. StartConversation(conversation, QuestGiver, Player, "I will see you when you return.")
  39. end
  40. function Declined(Quest, QuestGiver, Player)
  41. -- Add dialog here for when the quest is declined
  42. end