ScrapOfPaper.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : ItemScripts/ScrapOfPaper.lua
  3. Script Purpose : Offers quest "Paper Puzzle"
  4. Script Author : premierio015
  5. Script Date : 20.06.2020
  6. Script Notes :
  7. --]]
  8. local quest = 570 -- Paper Puzzle Quest ID
  9. function examined(Item, Player)
  10. if not HasQuest(Player, quest) then
  11. conversation = CreateConversation()
  12. AddConversationOption(conversation, "Hmm...", "Pieces")
  13. AddConversationOption(conversation, "Put the scrap away.", "CloseItemConversation")
  14. StartDialogConversation(conversation, 2, Item, Player, "It's a scrap of paper with writing on it.")
  15. elseif HasQuest(Player, quest) then
  16. RemoveItem(Player, 11998)
  17. end
  18. end
  19. function Pieces(Item, Player)
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "Find the other pieces.", "QuesrOffer")
  22. AddConversationOption(conversation, "Never mind.", "CloseItemConversation")
  23. StartDialogConversation(conversation, 2, Item, Player, "I'm certain the remaining pieces are down here in the Vermin's Snye. All I have to do is find them.")
  24. end
  25. function QuestOffer(Item, Player)
  26. OfferQuest(nil, Player, quest)
  27. end