I also tried do something in lua, but It also didin't work..
No errors in console
function onAttack(cid, target)
if isMonster(cid, target) then
if getPlayerStorageValue(cid, 8000) == 14 then
return 0
else
doSendPlayerCancel(cid, "Sorry, you cannot attack this monster.")
end
end
end