No categories assigned

LUA:CureByType

LUA Functions: CureByType()

Cures detriments determined by the type of detriment.


Syntax

CureByType(param1, param2, param3, param4, param5)


Parameters

Required - param1 (int8), param2 (int8
param1 is the max amount of detriments allowed to be cured
param2 is the type of detriment to be cured
Optional - param3 (string), param4 (int8), param5 (Spawn)
param3 is an override of the spellname for the dispell packet (example: one cure spell has a different name than the cure effect, use the effect name)
param4 is the max level of the effect allowed to be cured, if left 0 any level will be cured
param5 is a target override if you wish to not use every target of the spell


Usage

function cast(Caster, Target)
    CureByType(1, 3, "Cure", 10)
end

This will cure one Noxious effect from the spell's targets, up to a max level of 10, and send the spellname as "Cure" in the dispell packet.