NuisanceNotice.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : ItemScripts/NuisanceNotice.lua
  3. Script Purpose : Offers quest "Population Control"
  4. Script Author : premierio015
  5. Script Date : 04.06.2020
  6. Script Notes :
  7. --]]
  8. local quest = 564 -- Population Control Quest ID
  9. function examined(Item, Player)
  10. if not HasQuest(Player, quest) then
  11. conversation = CreateConversation()
  12. AddConversationOption(conversation, "Read on.", "Terminate")
  13. AddConversationOption(conversation, "Put the note away.", "CloseItemConversation")
  14. StartDialogConversation(conversation, 2, Item, Player, "The grave scorpius population has grown out of hand down in the Vermin's Snye...")
  15. elseif HasQuest(Player, quest) then
  16. RemoveItem(Player, 10086)
  17. end
  18. end
  19. function Terminate(Item, Player)
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "They shall be terminated!", "QuestOffer")
  22. AddConversationOption(conversation, "Uh, no thanks.", "CloseItemConversation")
  23. StartDialogConversation(conversation, 2, Item, Player, "They must be dealt with accordingly. Terminate them on sight!")
  24. end
  25. function QuestOffer(Item, Player)
  26. OfferQuest(nil, Player, quest)
  27. end