HalfBottleOfBloodsaberBrew.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : ItemScripts/HalfBottleOfBloodsaberBrew.lua
  3. Script Purpose : Offers quest "Bloosaber Brew"
  4. Script Author : premierio015
  5. Script Date : 04.06.2020
  6. Script Notes :
  7. --]]
  8. local quest = 557 -- Bloodsaber Brew Quest ID
  9. function examined(Item, Player)
  10. if not HasQuest(Player, quest) then
  11. conversation = CreateConversation()
  12. AddConversationOption(conversation, "Find more bottles of Bloodsaber brew.", "FindBrew")
  13. AddConversationOption(conversation, "Put the bottle away.", "CloseItemConversation")
  14. StartDialogConversation(conversation, 2, Item, Player, "I found a half bottle of brew off that Bloodsaber proficient and it tastes pretty good.")
  15. elseif HasQuest(Player, quest) then
  16. RemoveItem(Player, 8020)
  17. end
  18. end
  19. function FindBrew(Item, Player)
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "Let's do this!", "QuestOffer")
  22. AddConversationOption(conversation, "I'm full, actually.", "CloseItemConversation")
  23. StartDialogConversation(conversation, 2, Item, Player, "I just have to find enough of these bottles of brew and then I can have a small reserve of Bloodsaber brew of my own.")
  24. end
  25. function QuestOffer(Item, Player)
  26. OfferQuest(nil, Player, quest)
  27. end