SpiritReaper.lua 492 B

123456789101112131415161718
  1. --[[
  2. Script Name : ItemScripts/SpiritReaper.lua
  3. Script Purpose : Spirit Reaper used in quest "Reaping"
  4. Script Author : Cynnar
  5. Script Date : 1/4/2016
  6. Script Notes : Spirit Reaper (Item ID = 48173) Reaping (quest ID = 152)
  7. --]]
  8. local Reaping = 152
  9. function used(Item, Player)
  10. if GetQuestStep(Player, Reaping) == 1 then
  11. target = GetTarget(Player)
  12. if GetName(target) == 'a pure spirit' then
  13. CastEntityCommand(Player, target, 1312, "Reap")
  14. end
  15. end
  16. end