burnedoutlightstone.lua 1.1 KB

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : ItemScripts/burnedoutlightstone.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.30 09:05:28
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheReturnOfTheLight = 485
  9. --
  10. function examined(Item, Player)
  11. if not HasQuest(Player, TheReturnOfTheLight) and not HasCompletedQuest(Player, TheReturnOfTheLight) then
  12. conversation = CreateConversation()
  13. if CanReceiveQuest(Player,TheReturnOfTheLight) then
  14. AddConversationOption(conversation, "I should look into this...", "Offer")
  15. end
  16. AddConversationOption(conversation, "[Put the stope away]", "CloseItemConversation")
  17. StartDialogConversation(conversation, 2, Item, Player, "The lightstone seems very different from the ones typically found in the Commonlands. This one is of much higher quality and density compared to your typical lightstone. Maybe someone would find this particular stone to be worth something.")
  18. end
  19. end
  20. function Offer(Item,Player)
  21. if CanReceiveQuest(Player,TheReturnOfTheLight) then
  22. OfferQuest(nil, Player, TheReturnOfTheLight)
  23. end
  24. CloseItemConversation(Item,Player)
  25. end