123456789101112131415161718192021222324252627282930 |
- --[[
- Script Name : ItemScripts/acyclopsear.lua
- Script Author : AussieGlen
- Script Date : 2022.01.01 06:01:14
- Script Purpose :
- :
- --]]
- local LoreAndLegendCyclops = 5414
- function examined(Item, Player)
- if not HasQuest(Player, LoreAndLegendCyclops) and not HasCompletedQuest(Player, LoreAndLegendCyclops) then
- OfferQuest(nil, Player, LoreAndLegendCyclops)
- elseif not QuestStepIsComplete(Player, LoreAndLegendCyclops, 7) then
- conversation = CreateConversation()
- AddConversationOption(conversation, "Begin to study...", "Step_Complete")
- AddConversationOption(conversation, "No, put away", "CloseItemConversation")
- StartDialogConversation(conversation, 2, Item, Player, "This item can be used to learn the secrets of the cyclops. Do you wish to study it?")
- end
- end
- function Step_Complete(Item, Player)
- SetStepComplete(Player, LoreAndLegendCyclops, 7)
- RemoveItem(Player, 1489)
- end
- function item_description(Item, Spawn)
- return "You have already examined this item."
- end
|