KoboldRum.lua 833 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : ItemScripts/KoboldRum.lua
  3. Script Purpose :
  4. Script Author : Neatz09
  5. Script Date : 1/31/2021
  6. Script Notes :
  7. --]]
  8. function cast(Item, Player)
  9. Spell = GetSpell(5463, 3, "Spells/Commoner/HomemadeDrinkGenericMaxHpPwr.lua")
  10. Regenz = 135.0
  11. Stat = 90.0
  12. newDuration = 121200
  13. SetSpellData(Spell, "duration1", newDuration)
  14. SetSpellData(Spell, "duration2", newDuration)
  15. SetSpellDataIndex(Spell, 0, Regenz)
  16. SetSpellDataIndex(Spell, 1, Stat)
  17. SetSpellDisplayEffect(Spell, 0, "description", "Increases Max Health of target by " .. Stat)
  18. SetSpellDisplayEffect(Spell, 1, "description", "Increases Max Power of target by " .. Stat)
  19. SetSpellDisplayEffect(Spell, 2, "description", "Increases Out-of-Combat Power Regeneration of target by " .. Regenz)
  20. CastCustomSpell(Spell, Player, Player)
  21. end