SpecialistOutlawNotice.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : ItemScripts/SpecialistOutlawNotice.lua
  3. Script Purpose : Offer Quest "Outlaw Specialists"
  4. Script Author : premierio015
  5. Script Date : 2020.06.04
  6. Script Notes :
  7. --]]
  8. local quest = 558 -- Outlaw Specialist Quest ID
  9. function examined(Item, Player)
  10. if not HasQuest(Player, quest) then
  11. conversation = CreateConversation()
  12. AddConversationOption(conversation, "Read on.", "Eliminate")
  13. AddConversationOption(conversation, "Put the note away.", "CloseItemConversation")
  14. StartDialogConversation(conversation, 2, Item, Player, "Specialist Bloodsabers have been classified as outlaws...")
  15. elseif HasQuest(Player, quest) then
  16. RemoveItem(Player, 13161)
  17. end
  18. end
  19. function Eliminate(Item, Player)
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "They shall be eliminated!", "QuestOffer")
  22. AddConversationOption(conversation, "Not right now.", "CloseItemConversation")
  23. StartDialogConversation(conversation, 2, Item, Player, "..and are to be dealt with accordingly. Eliminated them on sight!")
  24. end
  25. function QuestOffer(Item, Player)
  26. OfferQuest(nil, Player, quest)
  27. end