No categories assigned
LUA:ProcDamage
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: ProcDamage()
Does spell damage to a given spawn
Syntax
ProcDamage(param1, param2, param3, param4, param5, [param6], [param7], [param8])
Parameters
- Required - param1 (Spawn), param2 (Spawn), param3 (string), param4 (int8), param5 (int32)
- param1 is the caster
- param2 is the target
- param3 is the proc name
- param4 is the damage type
- param5 is the proc minimum damage
- Optional - param6 (int32), param7 (string), param8 (string)
- param6 is the proc maximum damage
- param7 is the success message
- param8 is the effect message
Usage
function cast(Caster, Target)
ProcDamage(Caster, Target, 7, "Glorious Strike", 40, 0, "You cast Glorious Strike on %t")
end
Will cast the "Glorious Strike" proc on the target which will do 40 damage