LittleVerminNotice.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : ItemScripts/LittleVerminNotice.lua
  3. Script Purpose : Offers quest "Little Pests"
  4. Script Author : premierio015
  5. Script Date : 04.06.2020
  6. Script Notes :
  7. --]]
  8. local quest = 565 -- Little Pests Quest ID
  9. function examined(Item, Player)
  10. if not HasQuest(Player, quest) then
  11. conversation = CreateConversation()
  12. AddConversationOption(conversation, "Read On", "Rats")
  13. AddConversationOption(conversation, "Put note away.", "CloseItemConversation")
  14. StartDialogConversation(conversation, 2, Item, Player, "There are reports from Vermin's Snye of a terrible nuisance...")
  15. elseif HasQuest(Player, quest) then
  16. RemoveItem(Player, 9090)
  17. end
  18. end
  19. function Rats(Item, Player)
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "Okay!", "QuestOffer")
  22. AddConversationOption(conversation, "Nah.", "CloseItemConversation")
  23. StartDialogConversation(conversation, 2, Item, Player, "Rats! Specifically tomb vermin. They are hereby to be dealt with accordingly. Termination on sight!")
  24. end
  25. function QuestOffer(Item, Player)
  26. OfferQuest(nil, Player, quest)
  27. end