9
3

RavenousReport.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : ItemScripts/RavenousReport.lua
  3. Script Purpose : Offer Quest "Ravenous Report"
  4. Script Author : premierio015
  5. Script Date : 2020.06.04
  6. Script Notes :
  7. --]]
  8. local quest = 562 -- Ravenous Report Quest ID
  9. function examined(Item, Player)
  10. if not HasQuest(Player, quest) then
  11. conversation = CreateConversation()
  12. AddConversationOption(conversation, "Read on.", "DestroyCubes")
  13. AddConversationOption(conversation, "Put the note away.", "CloseItemConversation")
  14. StartDialogConversation(conversation, 2, Item, Player, "Multiple reports of hostile encounters with ravenous cubes in the Vermin's Snye...")
  15. elseif HasQuest(Player, quest) then
  16. RemoveItem(Player, 11236)
  17. end
  18. end
  19. function DestroyCubes(Item, Player)
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "They shall be!", "QuestOffer")
  22. AddConversationOption(conversation, "Maybe some other time.", "CloseItemConversation")
  23. StartDialogConversation(conversation, 2, Item, Player, "...They are to be destroyed on sight.")
  24. end
  25. function QuestOffer(Item, Player)
  26. OfferQuest(nil, Player, quest)
  27. end