9
3

GoblinTerritoryMarker.lua 1.2 KB

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : ItemScripts/GoblinTerritoryMarker.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.29 02:05:51
  5. Script Purpose : Classic Version of quest examination
  6. :
  7. --]]
  8. local LANGUAGE_QUEST = 5568
  9. function examined(Item, Player)
  10. conversation = CreateConversation()
  11. if not HasQuest(Player, LANGUAGE_QUEST) or GetQuestStep(Player,LANGUAGE_QUEST)==1 then
  12. AddConversationOption(conversation, "Closely inspect the territory marker.", "Study")
  13. end
  14. AddConversationOption(conversation, "Hold on to the territory marker for use later","CloseItemConversation")
  15. StartDialogConversation(conversation, 2, Item, Player, "After some inspection, you notice Norrathian words printed next to the Goblish scribbles and gibberish on this scrap. Perhaps deciphering more of these will offer you understand their meaning.")
  16. end
  17. function Study(Item,Player)
  18. CloseItemConversation(Item,Player)
  19. if not HasQuest(Player, LANGUAGE_QUEST) then
  20. OfferQuest(nil, Player, LANGUAGE_QUEST)
  21. else
  22. CloseItemConversation(Item,Player)
  23. RemoveItem(Player,7832,1) --territory marker
  24. SummonItem(Player,13528)-- studied territory marker
  25. end
  26. end