by :Nahruto
he make to me this script! but doest work! is supossed to make my fir elemental dont attack me with fire area!
PHP:
function onStatsChange(cid, attacker, type, combat, value)
if (type == STATSCHANGE_HEALTHLOSS) then
local master = getCreatureMaster(cid)
if (master ~= cid) then --is summon check
if isInArray({master, cid}, attacker) then
return false
end
end
end
return true
end
he make to me this script! but doest work! is supossed to make my fir elemental dont attack me with fire area!