Ops! beleza, desculpe a demora só pude entrar agora.
aqui vai,
local savingEvent = 0
function onSay(cid, words, param)
if getPlayerAccess(cid) ~= 0 then
if isNumber(param) == TRUE then
stopEvent(savingEvent)
save(tonumber(param) * 60 * 1000)
else
saveData()
end
end
end
function save(delay)
saveData()
if delay > 0 then
savingEvent = addEvent(save, delay, delay)
end
end
e aqui os meus talkactions
?xml version="1.0" encoding="UTF-8"?><talkactions>
<!-- player talkactions -->
<talkaction words="!buypremium" script="buyprem.lua"/>
<talkaction words="!leavehouse" script="leavehouse.lua"/>
<talkaction words="/save" script="save.lua"/>
<talkaction words="!changesex" script="changesex.lua"/>
<talkaction words="!uptime" script="uptime.lua"/>
<talkaction words="!deathlist" script="deathlist.lua"/>
<talkaction words="/bc" script="broadcast.lua"/>
<talkaction words="!placar" script="highscores.lua"/>
<talkaction words="!notice" script="notice.lua"/>
<talkaction words="!petinfo" script="pets/!petinfo.lua"/>
<talkaction words="!petsay" script="pets/!petsay.lua"/>
<talkaction words="!petcarry" script="pets/!petcarry.lua"/>
<talkaction words="!pet" script="pets/!pet.lua"/>
<talkaction words="!petattack" script="pets/!petattack.lua"/>
<talkaction words="!petgetitem" script="pets/!petgetitem.lua"/>
<!-- test talkactions -->
<talkaction words="!z" script="magiceffect.lua"/>
<talkaction words="!x" script="animationeffect.lua"/>
<talkaction words="crew" script="crew.lua" />
</talkactions>
Ps: muito de meus player's estão querendo parar de jogar =/ pois com esse save. Trava tudo ai eu me ferro. obrigado, eu também tentei tirar um npc que tinha colocado no meu ot mesmo assim :// nada...