an_order_of_orc_tongue_classic.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/MultipleZones/claiming_the_goblish_tongue.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.29 02:05:36
  5. Script Purpose :
  6. Script Notes : CLASSIC Version of quest. Gives Studied version of item that actually counts for update.
  7. Zone : Language
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepObtainItem(Quest, 1, "Hunt orcs for smuggler requisitions to study.", 5, 100, "I must collect and study more smuggler requisitions from the orcs of Norrath to learn the orc language.",75, 13529)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. if HasItem(Player, 10202) then
  18. RemoveItem(Player, 10202,1)
  19. end
  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 QuestComplete(Quest, QuestGiver, Player)
  28. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  29. UpdateQuestStepDescription(Quest, 1, "I have studied a smuggler requisition.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have learned Orcish, language of the orc race.")
  31. if not HasLanguage(Player,17) then
  32. AddLanguage(Player, 17)
  33. SendMessage(Player, "You have learned the basics of the Orcish language.", "White")
  34. end
  35. UpdateQuestDescription(Quest, "I have studied a great amount of orc smuggler requisitions written in both Norrathian and orc. I now understand the language, Orcish.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. QuestComplete(Quest, QuestGiver, Player)
  41. end
  42. end