ThrowingDaggerCoveredWithZombieRot.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : ItemScripts/ThrowingDaggerCoveredWithZombieRot.lua
  3. Script Purpose : Offer Quest "Zombie Pincushion"
  4. Script Author : premierio015
  5. Script Date : 2020.06.04
  6. Script Notes :
  7. --]]
  8. local quest = 559 -- Zombie Pincushion Quest ID
  9. function examined(Item, Player)
  10. if not HasQuest(Player, quest) then
  11. conversation = CreateConversation()
  12. AddConversationOption(conversation, "I'd like to find a cleaner dagger.", "FindDagger")
  13. AddConversationOption(conversation, "Put the dagger away.", "CloseItemConversation")
  14. StartDialogConversation(conversation, 2, Item, Player, "Looks like a throwing dagger covered with zombie rot. It's useless as a weapon.")
  15. elseif HasQuest(Player, quest) then
  16. RemoveItem(Player, 14442)
  17. end
  18. end
  19. function FindDagger(Item, Player)
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "Look for a cleaner dagger.", "QuestOffer")
  22. AddConversationOption(conversation, "On second thought, I'd rather not...", "CloseItemConversation")
  23. StartDialogConversation(conversation, 2, Item, Player, "If I do away with enough of these zombies I might be able to find a dagger that's not ruined by the zombie rot.")
  24. end
  25. function QuestOffer(Item, Player)
  26. OfferQuest(nil, Player, quest)
  27. end