fearful_words.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : Quests/MultipleZones/fearful_words.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.01 03:06:46
  5. Script Purpose :
  6. Zone : MultipleZones
  7. Quest Giver: Thulian Puzzle Box
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepObtainItem(Quest, 1, "Hunt thulian creatures for puzzle boxes to study.", 10, 100, "I must collect and study more Thulian puzzle boxes from Amygdalans and Lizardmen to learn the Thulian language.", 1211, 13530)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. if HasItem(Player, 14444) then
  17. RemoveItem(Player, 14444,1)
  18. end
  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 QuestComplete(Quest, QuestGiver, Player)
  27. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  28. UpdateQuestStepDescription(Quest, 1, "I have a studied a Thulian puzzle box.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I have learned the Thulian language of Modinthule, the Plane of Fear.")
  30. AddLanguage(Player, 21)
  31. SendMessage(Player, "You have learned the basics of the Thullian language.", "White")
  32. UpdateQuestDescription(Quest, "I have studied a great amount of Thulian puzzle boxes etched with phrases in both Norrathian and Thulian. I now understand the Thulian language of Modinthule, the Plane of Fear. <br> <br>")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. QuestComplete(Quest, QuestGiver, Player)
  38. end
  39. end