GreaterLightstone.lua 930 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : ItemScripts/GreaterLightstone.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.24 06:08:42
  5. Script Purpose : removes "Greater Lightstone" from player's inventory and summon "The Legendary Greater Lightstone" instead.
  6. :
  7. --]]
  8. local GreaterLightstoneID = 156891
  9. local TheLegendaryGreaterLightstoneID = 66100
  10. function examined(Item, Player)
  11. conversation = CreateConversation()
  12. AddConversationOption(conversation, "Place the mounting on the item. (This will remove any adornments and reforging)", "mount")
  13. AddConversationOption(conversation, "Leave the item as is", "CloseItemConversation")
  14. StartDialogConversation(conversation, 2, Item, Player, "The Greater Lightstone can be mounted and set in your home.")
  15. end
  16. function mount(Item, Player)
  17. RemoveItem(Player, GreaterLightstoneID)
  18. SummonItem(Player, TheLegendaryGreaterLightstoneID)
  19. end