flaskoffilteredwater.lua 700 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : ItemScripts/flaskoffilteredwater.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.06.16 04:06:26
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[ Begin Item Effects
  9. * Increases Out-of-Combat Power Regeneration of target by 6.0
  10. End Item Effects--]]
  11. function cast(Item, Player)
  12. Spell = GetSpell(5009)
  13. Regenz = 12.0
  14. newDuration = 1800
  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