GoblinTerritoryMarker.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233
  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, "This plank looks like it is part of a goblin signpost. There are words on it written both in Norrathian and some other indecipherable script. It seems to be a goblin territory marker. ")
  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. conversation = CreateConversation()
  26. AddConversationOption(conversation, "Put away the studied marker.","CloseItemConversation")
  27. StartDialogConversation(conversation, 2, Item, Player, "With what little of the note appeared in both languages you were able to study it and gain a better understanding of the goblin language.")
  28. end
  29. end