local levels = {50, 100, 200}
function onAdvance(player, skill, oldLevel, newLevel)
if skill ~= SKILL_LEVEL or newLevel <= oldLevel then
return true
end
if isInArray(levels, newLevel) then
broadcastMessage(("%s has reached level %d."):format(player:getName(), newLevel), MESSAGE_STATUS_WARNING)
end
return true
end