You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:SpellHeal"
(Created page with "This function will calculate heal amount and send a heal packet for the spellcast. ==== Syntax ==== SpellHeal([Spawn] Target, [String] HealType, [int] MinHeal, [int] MaxHeal) =...") |
(→Usage) |
||
| Line 14: | Line 14: | ||
This will only work when called with an lua spell. | This will only work when called with an lua spell. | ||
| + | |||
| + | |||
| + | |||
[[LUA:SpellFunctions|Back to LUA Spell Functions Index]] | [[LUA:SpellFunctions|Back to LUA Spell Functions Index]] | ||
Revision as of 16:00, 31 July 2013
This function will calculate heal amount and send a heal packet for the spellcast.
Syntax
SpellHeal([Spawn] Target, [String] HealType, [int] MinHeal, [int] MaxHeal)
Usage
function cast(Caster, Target, HealType, MinHeal, MaxHeal)
SpellHeal(Target, HealType, MinHeal, MaxHeal)
end
Assume the value for Target is the target of the spell, HealType is "Heal", MinHeal is 14, MaxHeal is 16, so you would have a heal damage roll based on 14 and 16, apply amount mods such as potency ect, and then the player would receive that much health, followed by the heal amount popping up in-game.
This will only work when called with an lua spell.