9
3

CombustibleGnome.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. -- Add dialog here for when the quest is accepted
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I have slain many undead orcs.")
  29. 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.")
  30. 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)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  35. UpdateQuestStepDescription(Quest, 2, "I have given Cog Burn the orc parts.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I've given Cog Burn all of the undead orc remains. Now to see what he gave me for my efforts.")
  37. 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.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. Step1Complete(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end