9
3

FlaskofWater.lua 689 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : ItemScripts/FlaskofWater.lua
  3. Script Author : neatz09
  4. Script Date : 2021.07.06 04:07:25
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[ Begin Item Effects
  9. * Increases Out-of-Combat Power Regeneration of target by 15.0
  10. End Item Effects--]]
  11. function cast(Item, Player)
  12. Spell = GetSpell(5463)
  13. Regenz = 15.0
  14. newDuration = 18000
  15. SetSpellData(Spell, "duration1", newDuration)
  16. SetSpellData(Spell, "duration2", newDuration)
  17. SetSpellDataIndex(Spell, 0, Regenz)
  18. SetSpellDisplayEffect(Spell, 0, "description", "Increases Out-of-Combat Power Regeneration of target by " .. Regenz)
  19. CastCustomSpell(Spell, Player, Player)
  20. end