GiantIdol.lua 1.1 KB

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : ItemScripts/GiantIdol.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.01 04:06:31
  5. Script Purpose :
  6. :
  7. --]]
  8. local LANGUAGE_QUEST = 5574
  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 markings closely.", "Study")
  13. end
  14. AddConversationOption(conversation, "Hold on to the idol for use later.","CloseItemConversation")
  15. StartDialogConversation(conversation, 2, Item, Player, "The crude shapes on this idol seem to depict a simplistic, but obviously old language. You could compare the pictographic images to Norrathian if you had more of these to study.")
  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,7671,1) --puzzle box
  24. SummonItem(Player,13527)-- studied puzzle box
  25. end
  26. end