9
3

words_of_a_giant.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : Quests/MultipleZones/words_of_a_giant.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.01 04:06:59
  5. Script Purpose :
  6. Zone : MultipleZones
  7. Quest Giver: a Giant Idol
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepObtainItem(Quest, 1, "Hunt giants to find giant idols to study.", 5, 100, "I must hunt for more giant idols on giants of Norrath. I can study the runes on the idols to get closer to understanding the foundation of all giant languages.", 1214,13527)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. if HasItem(Player, 7671) then
  17. RemoveItem(Player, 7671,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 studied giant runes on the idol.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I have learned the basic foundation of all giant languages, Krombral the hill giant language.")
  30. AddLanguage(Player, 25)
  31. SendMessage(Player, "You have learned the basics of the Krombral language.", "White")
  32. UpdateQuestDescription(Quest, "I studied a number of runes on giant idols and now understand the foundation of all the giant languages, Krombral. <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