a_mystical_sphere.lua 611 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : ItemScripts/a_mystical_sphere.lua
  3. Script Purpose :Quest Stater for The Spirit's Release
  4. Script Author : Ememjr
  5. Script Date : 2019-10-07
  6. Script Notes :
  7. --]]
  8. local quest = 481
  9. local itemID = 2304
  10. function examined(Item, Player)
  11. Say(Player, "item examined")
  12. if not HasQuest(Player, quest) and not HasCompletedQuest(Player, quest) then
  13. OfferQuest(nil, Player, quest)
  14. elseif HasQuest(Player, quest) and QuestStepIsComplete(Player, quest, 2) then
  15. SetStepComplete(Player, quest, 2)
  16. while HasItem(Player, itemID, 1) do
  17. RemoveItem(Player, itemID)
  18. end
  19. end
  20. end