SteinofMoggok.lua 951 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : ItemScripts/SteinofMoggok.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.04.22 09:04:16
  5. Script Purpose : removes "Stein of Moggok " from player's inventory and summon "The Legendary Stein of Moggok " instead.
  6. :
  7. --]]
  8. local SteinOfMoggokID = 54775 -- armor version
  9. local TheLegendarySteinOfMoggokID = 66126 -- house version
  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 Legendary Stein of Moggok can be mounted and set in your home.")
  15. end
  16. function mount(Item, Player)
  17. RemoveItem(Player, SteinOfMoggokID)
  18. SummonItem(Player, TheLegendarySteinOfMoggokID)
  19. end