9
3

BurynaiTooth.lua 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : ItemScripts/BurynaiTooth.lua
  3. Script Author : AussieGlen
  4. Script Date : 2022.01.02 09:01:38
  5. Script Purpose :
  6. :
  7. --]]
  8. local LoreAndLegendBurynai = 5430
  9. function examined(Item, Player)
  10. if not HasQuest(Player, LoreAndLegendBurynai) and not HasCompletedQuest(Player, LoreAndLegendBurynai) then
  11. OfferQuest(nil, Player, LoreAndLegendBurynai)
  12. elseif not QuestStepIsComplete(Player, LoreAndLegendBurynai, 6) then
  13. conversation = CreateConversation()
  14. AddConversationOption(conversation, "Begin to study...", "Step_Complete")
  15. AddConversationOption(conversation, "No, put away", "CloseItemConversation")
  16. StartDialogConversation(conversation, 2, Item, Player, "This item can be used to learn the secrets of the burynai. Do you wish to study it?")
  17. end
  18. end
  19. function Step_Complete(Item, Player)
  20. SetStepComplete(Player, LoreAndLegendBurynai, 6)
  21. RemoveItem(Player, 4751)
  22. end
  23. function item_description(Item, Spawn)
  24. return "You have already examined this item."
  25. end