Kara isso que voce fez eh ripping =/, o autor desse script eh o yunie:
-- SCRIPT FEITO POR YUNIE-- config
minlevel = 700 -- level para resetar
price = 50000
newlevel = 8 -- level após reset
newexp = 4200 -- nova experiencia após reset
-- end config
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
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid
if msgcontains(msg, 'reset') then
selfSay('Voce deseja resetar seu char? Isto custará 50k!', cid)
talkState[talkUser] = 1
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
if getPlayerMoney(cid) < price then
selfSay('É Necessario ter 50k para resetar!', cid)
elseif getPlayerLevel(cid) < minlevel then
selfSay('O level minimo para reset é 500!', cid)
else
doPlayerRemoveMoney(cid,price)
addReset(cid)
playerid = getPlayerGUID(cid)
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level`="..newlevel..",`experience`="..newexp.." WHERE `players`.`id`= ".. playerid .."")
end
talkState[talkUser] = 0
elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then
talkState[talkUser] = 0
selfSay('Ok.', cid)
elseif msgcontains(msg, 'quant') then
selfSay('Voce tem um total de '..getResets(cid)..' reset(s).', cid)
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
Link:http://www.xtibia.com/forum/topic/131714-npc-reseter/
Voce ainda colou o script 2 vezes e nao mudou os creditos do segundo ![]()




info
Grupo: Conde
Registrado: 30/01/10
Posts: 706
Reputação: +125
Gênero: Masculino
Char no Tibia: Bakwin
ai galera to feliz tava vnedo uns tutorias de scripts botando Elfe . if tals os end aprendi tava fazendo mais de uma hora fazendo um npc reset que eu fiz eu proprio escrevendo olhando tals .... entaum voltando ao assunto o vordkart me fez um scripts que mostra mana , vida , e tals ip e os resets ja como trokei o reset system pelo q o npc vende .... so que eu reseto no npc e nao mostra os resets no !stats vo manda o script do stats e do npc e tentem ajudar pls
Stats
Npc Reset
Se nao for pedir mt tambem se quando eu do look em alguem aparece os resets dele no look !
Agradeço desde ja