poisonous_zever.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : poisonous_zever.lua
  3. Script Purpose : Handles the quest, "Poisonous Zever"
  4. Script Author : torsten
  5. Script Date : 31.07.2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Scale Yard
  8. Quest Giver : Zever Tzizzink
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to gather some putrid dragoon tongues for Zever's antidote.", 9, 100, "I need to kill nine tormented souls in Fallen Gate.", 89, 1190050, 1190004, 1190008, 1190043, 1190045, 1190051, 1190052, 1190061, 1190062, 1190069)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I've gathered putrid dragoon tongues for Zever's antidote.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I killed nine tormented souls in Fallen Gate.")
  19. AddQuestStepChat(Quest, 2, "I should return to Zever Tzizzink.", 1, "I should return to Zever Tzizzink to deliver the tongues.", 11, 1370024)
  20. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  21. end
  22. function Step2Complete(Quest, QuestGiver, Player)
  23. UpdateQuestStepDescription(Quest, 2, "I returned to Zever Tzizzink.")
  24. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Zever Tzizzink.")
  25. AddQuestStepKill(Quest, 3, "I need to gather some snake fangs for Zever's antidote.", 12, 100, "I need to kill twelve gloom snakes in Fallen Gate.", 137, 1190019)
  26. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  27. end
  28. function Step3Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 3, "I've gathered snake fangs for Zever's antidote.")
  30. UpdateQuestTaskGroupDescription(Quest, 3, "I killed twelve gloom snakes in Fallen Gate.")
  31. AddQuestStepChat(Quest, 4, "I should return to Zever Tzizzink.", 1, "I should return to Zever Tzizzink to deliver the hearts.", 11, 1370024)
  32. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. UpdateQuestDescription(Quest, "That double-crossing sneak! Instead of getting ingredients for an antidote, Zever had me gathering ingredients for a deadly poison! He thought he gave me a piece of junk for a reward, but he was mistaken!")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Accepted(Quest, QuestGiver, Player)
  39. -- Add dialog here for when the quest is accepted
  40. end
  41. function Declined(Quest, QuestGiver, Player)
  42. -- Add dialog here for when the quest is declined
  43. end
  44. function Deleted(Quest, QuestGiver, Player)
  45. -- Remove any quest specific items here when the quest is deleted
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. Step1Complete(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. Step2Complete(Quest, QuestGiver, Player)
  52. elseif Step == 3 then
  53. Step3Complete(Quest, QuestGiver, Player)
  54. elseif Step == 4 then
  55. QuestComplete(Quest, QuestGiver, Player)
  56. end
  57. end