claiming_the_goblish_tongue_classic.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.", 417, 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. 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 a studied a goblin territory marker.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have learned Goblish, language of the goblin clans.")
  31. if not HasLanguage(Player,20) then
  32. AddLanguage(Player, 20)
  33. SendMessage(Player, "You have learned the basics of the Goblish language.", "White")
  34. end
  35. UpdateQuestDescription(Quest, "I have studied a great amount of territory markers written in both Norrathian and the goblin language. I now understand Goblish.")
  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