claiming_the_goblish_tongue_classic.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/MultipleZones/claiming_the_goblish_tongue_classic.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 goblins of Norrath for territory markers to study.", 7, 100, "I must collect and study more territory markers from the goblins of Norrath to learn the goblin language.", 185, 13528)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. if HasItem(Player, 7832) then
  18. RemoveItem(Player, 7832,1)
  19. end
  20. CloseItemConversation(nil,Player)
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function QuestComplete(Quest, QuestGiver, Player)
  29. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  30. UpdateQuestStepDescription(Quest, 1, "I have a studied a goblin territory marker.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I have learned Goblish, language of the goblin clans.")
  32. if not HasLanguage(Player,20) then
  33. AddLanguage(Player, 20)
  34. SendMessage(Player, "You have learned the basics of the Goblish language.", "White")
  35. end
  36. UpdateQuestDescription(Quest, "I have studied a great amount of territory markers written in both Norrathian and the goblin language. I now understand Goblish.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end