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:
I can't hit anyplayer something like non-pvp
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