function onAdvance(cid, skill, oldlevel, newlevel)
if(skill == SKILL__LEVEL and getPlayerStorageValue(cid, 41024) ~= 1 and newlevel >= 20) then
setPlayerStorageValue(cid, 41024, 1)
doPlayerAddItem(cid, 3035, 30)
doCreatureSay(cid, "Congratulations " .. getCreatureName(cid) .. ", you have reached level 20, you will now be rewarded 30 Platinum coins. Enjoy your hunting!", TALKTYPE_ORANGE_1)
end
return true
end