TheLegendarySteinofMoggok.lua 993 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : ItemScripts/TheLegendarySteinofMoggok.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.04.22 09:04:43
  5. Script Purpose : removes "The Legendary Stein of Moggok" from player's inventory and summon "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, "Remove stein from the mounting)", "removestein")
  13. AddConversationOption(conversation, "Leave the stein alone", "CloseItemConversation")
  14. StartDialogConversation(conversation, 2, Item, Player, "The Stein of Moggok. Recovered and remade by my own hand. I'll be sure not to mention this to Rumdum, it could make him a little cranky...")
  15. end
  16. function removestein(Item, Player)
  17. RemoveItem(Player, TheLegendarySteinOfMoggokID)
  18. SummonItem(Player, SteinOfMoggokID)
  19. end