9
3

agnolleye.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : ItemScripts/agnolleye.lua
  3. Script Author : AussieGlen\\Dorbin
  4. Script Date : 2021.12.31 07:12:42
  5. Script Purpose :
  6. :
  7. --]]
  8. local LoreAndLegendGnoll = 5398
  9. function examined(Item, Player)
  10. local LnLAccept = GetRuleFlagFloat("R_World", "LoreAndLegendAccept")
  11. if LnLAccept > 0 and not HasQuest(Player, LoreAndLegendGnoll) and not HasCompletedQuest(Player, LoreAndLegendGnoll) then
  12. OfferQuest(nil, Player, LoreAndLegendGnoll)
  13. else
  14. conversation = CreateConversation()
  15. if HasQuest(Player, LoreAndLegendGnoll) and GetQuestStepProgress(Player, LoreAndLegendGnoll, 7)==0 then
  16. AddConversationOption(conversation, "Begin to study...", "Step_Complete")
  17. end
  18. AddConversationOption(conversation, "No, put it away", "CloseItemConversation")
  19. StartDialogConversation(conversation, 2, Item, Player, "This item can be used to learn the secrets of the gnoll. Do you wish to study it?")
  20. end
  21. end
  22. function Step_Complete(Item, Player)
  23. SetStepComplete(Player, LoreAndLegendGnoll, 7)
  24. CloseItemConversation(Item, Player)
  25. RemoveItem(Player, 1818)
  26. end
  27. function item_description(Item, Spawn)
  28. return "You have already examined this item."
  29. end