9
3

Darkheart.lua 612 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : ItemScripts/DarkHeart.lua
  3. Script Purpose : Necromancer Darkheart(Summoned Item)
  4. Script Author : Neatz09
  5. Script Date : 10/16/2019
  6. Script Notes :
  7. --]]
  8. local SPELLID = 5013
  9. local SPELL_TIERS = { [45872] = 1, [45870] = 2, [45871] = 3, [45874] = 4, [45869] = 5, [45873] = 7, [45875] = 9 }
  10. function obtained(Item, Player)
  11. end
  12. function removed(Item, Player)
  13. end
  14. function destroyed(Item, Player)
  15. end
  16. function examined(Item, Player)
  17. end
  18. function used(Item, Player)
  19. end
  20. function used(Item, Player)
  21. local item_id = GetItemID(Item)
  22. CastSpell(Player, SPELLID, SPELL_TIERS[item_id])
  23. end