então pessoal tenho um servidor 7.92 mapa dragon souls e fis um script de reset mais so nâo sei oque da errado o level tem que ser 1K200 para resetar e não reseta se vocês poderem me ajudar ta ai o script.. LEMBRANDO MEU SERVIDOR E 7.92 E NAO 8.10 PARA CIMA então queria mesmo um script de reset para 7.92 ficaria muito grato
-- script by marcryziusfunction onSay(cid, words, param)
local level = 1200 --level pra ser resetado
local RemainingLvl = 8 --lvl que ele ficara depois do reset
local pid = getPlayerGUID(cid)
function addReset(cid)
resets = getResets(cid)
setPlayerStorageValue(cid,1020,resets+1)
return true
end
function getResets(cid)
resets = getPlayerStorageValue(cid,1020)
if resets < 0 then
resets = 0
end
return resets
end
if getPlayerLevel(cid) >= level then
addReset(cid)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doPlayerPopupFYI(cid,"you now was reset, you have "..getResets(cid).."reset")
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = "..RemainingLvl..", `experience` = 0 WHERE `id` = "..pid)
else
doPlayerSendCancel(cid, "You need to have level "..level.." or more you may be reset.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return TRUE
end
POR FAVOR AJUDA AII ALGUEM ME AJUDAAAAA