beware_of_biting_books_.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : Quests/RuinsofVarsoon/beware_of_biting_books_.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.23 04:01:46
  5. Script Purpose :
  6. Zone : RuinsofVarsoon
  7. Quest Giver: widget_varsoon_scroll
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to destroy six enchanted tomes in the Ruins of Varsoon.", 6, 100, "The enchanted tomes in the Ruins of Varsoon should be destroyed before they spring their trap on a hapless adventurer.", 715, 2560030)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_Golems")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. end
  17. function Declined(Quest, QuestGiver, Player)
  18. end
  19. function step1_complete_Golems(Quest, QuestGiver, Player)
  20. UpdateQuestStepDescription(Quest, 1, "I have destroyed the enchanted tomes.")
  21. UpdateQuestTaskGroupDescription(Quest, 2, "The enchanted tomes have been destroyed.")
  22. UpdateQuestDescription(Quest, "I have destroyed the books as I have encountered them, I hope I have spared at least one unwary traveler the pain of their bite.")
  23. GiveQuestReward(Quest, Player)
  24. end
  25. function Reload(Quest, QuestGiver, Player, Step)
  26. if Step == 1 then
  27. Init(Quest, QuestGiver, Player)
  28. end
  29. end