9
3

AnOrcSkin.lua 1.0 KB

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : ItemScripts/AnOrcSkin.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.06.20 09:06:38
  5. Script Purpose : Item Script for Lore and Legend:Orc Quest
  6. :
  7. --]]
  8. local LoreAndLegendOrc = 5257
  9. function examined(Item, Player)
  10. if not HasQuest(Player, LoreAndLegendOrc) and not HasCompletedQuest(Player, LoreAndLegendOrc) then
  11. OfferQuest(nil, Player, LoreAndLegendOrc)
  12. elseif not QuestStepIsComplete(Player, LoreAndLegendOrc, 5) 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 orc. Do you wish to study it?")
  17. end
  18. end
  19. function Step_Complete(Item, Player)
  20. SetStepComplete(Player, LoreAndLegendOrc, 5)
  21. RemoveItem(Player, 3800)
  22. end
  23. function item_description(Item, Spawn)
  24. return "You have already examined this item."
  25. end