Script da Vodkart.
Seguinte lvl 10k eu falo !mixedpromo Reseta. ai tem mais reset pra mais lvl e talz
mais quando chego 10k dnv eu posso falar !mixedpromo dnv, ai quando abre skills debuga o char,.
como ponho pra reseta apenas 1x?
Script :
function onSay(cid, words, param, channel) local tabble = { ["mixed"] = {reqVoc= nil, needLevel=10000}, ["spin"] = {reqVoc= 5, needLevel=30000}, ["sacred"] = {reqVoc= 6, needLevel=60000}, ["loney"] = {reqVoc= 7, needLevel=110000}, ["falling"] = {reqVoc= 8, needLevel=130000} } local config = {pid = getPlayerGUID(cid),newlv = 8,life = 185,mana = 35} local param = string.lower(param) if not tabble[param] then doPlayerSendCancel(cid, "digite o nome correto.") return true elseif getTilePzInfo(getCreaturePosition(cid)) == FALSE then doPlayerSendCancel(cid, "precisa estar em pz.") return true elseif getPlayerLevel(cid) < tabble[param].needLevel then doPlayerSendCancel(cid, "You dont have the required level.") return true elseif tabble[param].reqVoc ~= nil and getPlayerVocation(cid) ~= tabble[param].reqVoc then doPlayerSendCancel(cid, "You dont have the required vocation.") return true elseif getPlayerStorageValue(cid, 789456) >= 1 then doPlayerSendCancel(cid, "você já foi promovido para mixed.") return true end local newvoc = tabble[param].reqVoc ~= nil and (tabble[param].reqVoc+1) or 5 setPlayerStorageValue(cid, 650230, newvoc) setPlayerStorageValue(cid, 789456, newvoc == 5 and 1 or 0) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.newlv..", `experience` = "..getExperienceForLevel(config.newlv)..",`manamax` = "..config.mana..",`health` = "..config.life..", `healthmax` = "..config.life..",`mana` = "..config.mana..",`vocation` = "..newvoc.." WHERE `id` = "..config.pid) return true end