TransferenceDirective.lua 1.2 KB

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : ItemScripts/TransferenceDirective.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.01 01:06:57
  5. Script Purpose :
  6. :
  7. --]]
  8. local LANGUAGE_QUEST = 5576
  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, "Compare the glyphs and Norrathian closely.", "Study")
  13. end
  14. AddConversationOption(conversation, "Keep the parchment safe for later.","CloseItemConversation")
  15. StartDialogConversation(conversation, 2, Item, Player, "This parchment has various shimmering glyphs next to Norrathian words. The glyphs appear to transend the depths of the paper, as if a their lines decsend a dark limitless space. If you had more of them, you could learn to decipher the glyphs.")
  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,14586,1) --Transference Directive
  24. SummonItem(Player,13531)-- studied Transference Directive
  25. end
  26. end