• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

;D Help" rep+ for you!

tuppan

New Member
Joined
Jun 27, 2008
Messages
43
Reaction score
2
i need a lua script! or c++ script, to do somethink like, if i summon a fire elmental, when it shot a fire area i wont lose life!
:peace:
 
not sure if statschange work with monsters but you can try...

Lua:
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

remember register the event to monster file
 
Last edited:
Back
Top