9
3

DusttoDust.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : Quests/Darklight/DusttoDust.lua
  3. Script Purpose : Handles the quest, "Dust to Dust"
  4. Script Author : Cynnar
  5. Script Date : 9/2/2015
  6. Script Notes : Need to remove item if quest is deleted
  7. Zone : Darklight Wood
  8. Quest Giver : Calnozz J'Melvirr
  9. Preceded by : Infantile Ingredients
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "Douse skeletons with stunspore dust!", 7, 100, "I must test the stunspore dust on the skeletons found north from Warpfont Spire.", 10)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I tested the stunspore dust on several skeletons")
  18. AddQuestStepChat(Quest, 2, "Report your findings to Calnozz", 1, "I must test the stunspore dust on the skeletons found north from Warpfont Spire.", 11, 340066)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. UpdateQuestDescription(Quest, "The stunspore dust had a limited effect on the undead.")
  23. GiveQuestReward(Quest, Player)
  24. end
  25. function Reload(Quest, QuestGiver, Player, Step)
  26. if Step == 1 then
  27. Step1Complete(Quest, QuestGiver, Player)
  28. elseif Step == 2 then
  29. QuestComplete(Quest, QuestGiver, Player)
  30. end
  31. end
  32. function Accepted(Quest, QuestGiver, Player)
  33. SummonItem(Player, 47613)
  34. Say(QuestGiver, "All in the name of empirical research, " .. GetName(Player) .. "! Good luck!")
  35. end
  36. function Deleted(Quest, QuestGiver, Player)
  37. RemoveItem(Player, 47613)
  38. end
  39. function Declined(Quest, QuestGiver, Player)
  40. -- Add dialog here for when the quest is declined
  41. end