9
3

CrustedMackerel.lua 741 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : ItemScripts/CrustedMackerel.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(5462, 2, "Spells/Commoner/HomemadeMealGenericAgiSta.lua")
  10. Regenz = 52.5
  11. Stat = 4.6
  12. newDuration = 81000
  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 AGI and STA of target by " .. Stat)
  18. SetSpellDisplayEffect(Spell, 1, "description", "Increases Out-of-Combat Health Regeneration of target by " .. Regenz)
  19. CastCustomSpell(Spell, Player, Player)
  20. end