9
3

EbonStormGem.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : ItemScripts/EbonStormGem.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.01 12:06:09
  5. Script Purpose :
  6. :
  7. --]]
  8. local LANGUAGE_QUEST = 5575
  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, "Embrace the gem tightly.", "Study")
  13. end
  14. AddConversationOption(conversation, "Stifle the voices for now.","CloseItemConversation")
  15. StartDialogConversation(conversation, 2, Item, Player, "The surface of the gem swirls in your hand. Faint whispers fog your senses, as if the gem is speaking to you. If you found more of these, perhaps the whispers would become clearer.")
  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,6663,1) --ebon storm gem
  24. SummonItem(Player,15153)-- vacant ebon storm gem
  25. end
  26. end