9
3

PickingUpSlack.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Quests/Darklight/PickingUpSlack.lua
  3. Script Purpose : Handles the quest, "Picking Up Slack"
  4. Script Author : Cynnar
  5. Script Date : 8/30/2015
  6. Script Notes : Quest ID 139
  7. Zone : Darklight Wood
  8. Quest Giver : Ginwyss D'Arkenett
  9. Preceded by : Rotting Scum ID 138
  10. Followed by : A Guard Insignia?
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepObtainItem(Quest, 1, "Collect armor scraps from moldering soldiers", 5, 100, "Ginwyss D'Arkenett wants me to collect scraps of armor from the moldering soldiers found north of T'Vatar Outpost.", 734, 11996)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I collected several scraps of armor")
  18. AddQuestStepChat(Quest, 2, "I need to return to Ginwyss", 1, "Ginwyss D'Arkenett wants me to collect scraps of armor from the moldering soldiers found north of T'Vatar Outpost.", 11, 340064)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. UpdateQuestDescription(Quest, "I have spoken with Ginwyss")
  23. while HasItem(Player, 11996, 1) do
  24. RemoveItem(Player, 11996)
  25. end
  26. GiveQuestReward(Quest, Player)
  27. end
  28. function Reload(Quest, QuestGiver, Player, Step)
  29. if Step == 1 then
  30. Step1Complete(Quest, QuestGiver, Player)
  31. elseif Step == 2 then
  32. QuestComplete(Quest, QuestGiver, Player)
  33. end
  34. end
  35. function Accepted(Quest, QuestGiver, Player)
  36. FaceTarget(QuestGiver, Player)
  37. PlayFlavor(QuestGiver, "voiceover/english/voice_emotes/greetings/greetings_3_1047.mp3", "", "", 0, 0, Player)
  38. Say(QuestGiver, "Once you have collected enough scrap pieces, return them to me.")
  39. end
  40. function Declined(Quest, QuestGiver, Player)
  41. -- Add dialog here for when the quest is declined
  42. end