LargeVerminNotice.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : ItemScripts/LargeVerminNotice.lua
  3. Script Purpose : Offers quest "Big Pests"
  4. Script Author : premierio015
  5. Script Date : 20.06.2020
  6. Script Notes :
  7. --]]
  8. local quest = 571 -- Big 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 of a real threat deep within the Vermin's Snye....")
  15. elseif HasQuest(Player, quest) then
  16. RemoveItem(Player, 8789)
  17. end
  18. end
  19. function Rats(Item, Player)
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "Very well", "QuestOffer")
  22. AddConversationOption(conversation, "No thanks", "CloseItemConversation")
  23. StartDialogConversation(conversation, 2, Item, Player, "...of large tomb vermin spreading diseases! They must hereby be dealt with accordingly. Termination on sight.")
  24. end
  25. function QuestOffer(Item, Player)
  26. OfferQuest(nil, Player, quest)
  27. end