Does anyone have an idea how I can make my summons deal dmg by area spell and get white skull only if i have secure mode ON? I've tried a lot of things and none of them seems working. Now when a player uses summon in a fight against a monster, its area spells also deal damage to players :/ The script below makes the summons do no damage to players, but the skull is still appearing. Of course I added function secure mode function in sources. I'm using tfs 0.3.6 pl1
Lua:
function isSummon(cid)
if getCreatureMaster(cid) then
return true
end
return false
end
function onStatsChange(cid, attacker, type)
if type == STATSCHANGE_HEALTHLOSS then
if isPlayer(cid) and isSummon(attacker) or isPlayer(attacker) and isSummon(cid) or isSummon(cid) and isSummon(attacker) and getCreatureMaster(cid) == attacker then
end
end
return false
end