9
3

aghostremnantmemory.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : ItemScripts/aghostremnantmemory.lua
  3. Script Author : AussieGlen
  4. Script Date : 2021.12.31 11:12:13
  5. Script Purpose :
  6. :
  7. --]]
  8. local LoreAndLegendGhost = 5404
  9. function examined(Item, Player)
  10. if not HasQuest(Player, LoreAndLegendGhost) and not HasCompletedQuest(Player, LoreAndLegendGhost) then
  11. OfferQuest(nil, Player, LoreAndLegendGhost)
  12. elseif not QuestStepIsComplete(Player, LoreAndLegendGhost, 7) 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 ghost. Do you wish to study it?")
  17. end
  18. end
  19. function Step_Complete(Item, Player)
  20. SetStepComplete(Player, LoreAndLegendGhost, 7)
  21. RemoveItem(Player, 1766)
  22. end
  23. function item_description(Item, Spawn)
  24. return "You have already examined this item."
  25. end
  26. nd