local areaFrom = {x=100, y=100, z=7}
local areaTo = {x=200, y=200, z=7}
function onKill(cid, target, lastHit)
if lastHit and isPlayer(target) and target ~= cid and isInRange(getThingPos(cid), areaFrom, areaTo) then
doBroadcastMessage(getCreatureName(cid) .. ' killed ' .. getCreatureName(target) .. ' in arena!')
end
return true
end
local areaFrom = [COLOR="Lime"]{x=100, y=100, z=7}[/COLOR]
local areaTo = [COLOR="Red"]{x=200, y=200, z=7}[/COLOR]
in creaturescripts.xmlregisterCreatureEvent(cid, "msgarena")
<event type="kill" name="msgarena" event="script" value="msgarena.lua"/>