function onAttack(cid,target)
local v = getThingPos(cid)
if getCreatureMaster(cid) ~= cid then
if getTilePzInfo(v) then
return false
end
end
return true
end
onAttack function (cid, target)
local v = getThingPos (cid)
getCreatureMaster if (cid) ~ = cid Then
getTilePzInfo if (v) then
return false
end
end
return true
end
<event type="attack" name="attackprev" event="script" value="[B]SCRIPT_NAME[/B].lua"/>