Script De Talkcations

aspkot85
em Lixeira Pública

aspkot85

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 04/10/07Posts: 1Char no Tibia: Spidiss Snor

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 marcryzius

function 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

GabrielCiprianuuh

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 15/08/10Posts: 5Char no Tibia: Andario Alenlia
local level = 1200 --level pra ser resetado
Mude o 1200 para o level desejado que vc quer que resete

joaohd

Neox Boy
avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 03/02/09Posts: 361Char no Tibia: Fearless Man

Se não estou enganado, servidores 7.92 ainda são xml... certo?

 

Caso seja, o script não funcionará por causa da query SQL.

 

Caso ainda seja xml, infelizmente não sei como ajudá-lo.

 

 

flw