ThulianPuzzleBox.lua 1.1 KB

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : ItemScripts/ThulianPuzzleBox.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.01 04:06:12
  5. Script Purpose :
  6. :
  7. --]]
  8. local LANGUAGE_QUEST = 5573
  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, "Study the shapes and symbols closely.", "Study")
  13. end
  14. AddConversationOption(conversation, "Hold on to the puzzle box for use later.","CloseItemConversation")
  15. StartDialogConversation(conversation, 2, Item, Player, "The symbols on this box are twisted on forms next to Norrathian words, possibly as part of some ritual. You might be able to make out what is referenced if you could study more of these.")
  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,14444,1) --puzzle box
  24. SummonItem(Player,13530)-- studied puzzle box
  25. end
  26. end