function onAdvance(cid, skill, oldlevel, newlevel)
if newlevel == 100 then
doPlayerBroadcastMessage(cid, ".. getCreatureName(cid) .. has reached level 100, congratulations!")
elseif newlevel == 200 then
doPlayerBroadcastMessage(cid, ".. getCreatureName(cid) .. has reached level 200, congratulations!")
elseif newlevel == 300 then
doPlayerBroadcastMessage(cid, ".. getCreatureName(cid) .. has reached level 300, congratulations!")
end
return TRUE
end