--Script by Sonical
local config ={
level = 8 --Edit how much level
storage = 22852
}
function onAdvance(cid, skill, oldLevel, newLevel)
queststatus = getPlayerStorageValue(cid,config.storage)
if getPlayerLevel(cid) > config.level and queststatus = -1 then
db.executeQuery("UPDATE players SET posx = 1025, posy = 1028, posz = 7 WHERE `id` = " .. getPlayerGUID(cid) .. ";")
end
return true
end