9
3

TombGuardsBrokenChair.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : ItemScripts/TombGuardsBrokenChair.lua
  3. Script Purpose : Offer Quest "Tomb Guard's Chair"
  4. Script Author : premierio015
  5. Script Date : 2020.06.04
  6. Script Notes :
  7. --]]
  8. local quest = 561 -- Tomb Guard's Chair Quest ID
  9. function examined(Item, Player)
  10. if not HasQuest(Player, quest) then
  11. conversation = CreateConversation()
  12. AddConversationOption(conversation, "I wonder...", "FindParts")
  13. AddConversationOption(conversation, "Put the chair pieces away.", "CloseItemConversation")
  14. StartDialogConversation(conversation, 2, Item, Player, "After the run in with that crumbling tomb guard I found pieces of a chair. I bet when he was alive he got a lot of use out of that chair.")
  15. elseif HasQuest(Player, quest) then
  16. RemoveItem(Player, 14512)
  17. end
  18. end
  19. function FIndParts(Item, Player)
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "Find more parts!", "QuestOffer")
  22. AddConversationOption(conversation, "Forget it!", "CloseItemConversation")
  23. StartDialogConversation(conversation, 2, Item, Player, "I'll need to find replacement pieces if I'm going to rebuild this chair. I'm sure there was more than one chair down here for all of the tomb guards, so there should be ample replacement parts.")
  24. end
  25. function QuestOffer(Item, Player)
  26. OfferQuest(nil, Player, quest)
  27. end