9
3

CombustibleGnome.lua 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : combustible_gnome.lua
  3. Script Purpose : Handles the quest, "Combustible Gnome"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 8/30/2019
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Wailing Caves
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. local Cog Burn = 2580001
  13. require "SpawnScripts/Generic/DialogModule"
  14. function Init(Quest)
  15. AddQuestStepKill(Quest, 1, "Slay skeletal orcs.", 30, 100, "Cog Burn wants me to slay about thirty of the undead orcs down here in the Wailing Caves. I guess he wants their bones for some kind of experiment.", 611, 2580043)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. -- Add dialog here for when the quest is declined
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. -- Remove any quest specific items here when the quest is deleted
  25. end
  26. function Step1Complete(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I have slain many undead orcs.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I've slain the undead orcs and have their remains. All that's left to do is return the remains to Cog Burn.")
  29. AddQuestStepChat(Quest, 2, "Give Cog Burn the orc parts.", 1, "What a daunting task! I've slain many of the undead orcs, now I must return to Cog Burn and give him the bones.", 11, 2580043)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 2, "I have given Cog Burn the orc parts.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I've given Cog Burn all of the undead orc remains. Now to see what he gave me for my efforts.")
  36. UpdateQuestDescription(Quest, "It sure was a lot of work, but well worth the reward. I wonder what it was that he was going to give me at first. Hmm, I may never know.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end