• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Anti AOE Error "sorry not possible"

beliar34

Member
Joined
Feb 28, 2012
Messages
307
Solutions
7
Reaction score
11
Hello. I'm using an Anti-AOE creatureevent script by Erexo that's supposed to only deal damage to players you are targeting using AOE spells.
When i want mark player i get message "sorry not possible"

The script:
Code:
function onStatsChange(cid, attacker, type, combat, value)
    if(attacker and isPlayer(attacker) and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) and getCreatureName(getCreatureTarget(attacker)) ~= getCreatureName(cid)) then
        if combat ~= COMBAT_HEALING then
            return false
        end
    end
return true
end
function onCombat(cid, target)
    if(target and isPlayer(target) and getCreatureName(getCreatureTarget(cid)) ~= getCreatureName(target)) then
        return false
    end
return true
end
I can't hit anyplayer something like non-pvp
 
Back
Top