vai em creaturescripts/scripts/ --> copia qlqr arquivo la e renomei para qlqr nome e cola isso dentro...
function onAdvance(cid, skill, oldLevel, newLevel)
local storages = {
[0] = 6000,
[1] = 6001,
[2] = 6002,
[3] = 6003,
[4] = 6004,
[5] = 6005,
[7] = 6006,
}
if storages[skill] then
if newLevel == 80 then
setPlayerStorageValue(cid, storages[skill], 1)
end
end
return true
end
depois vai em creaturescripts/creaturescripts.xml e adiciona isso la, embaixo de <creaturescripts>..
<event type="advance" name="StorageUp" event="script" value="NOME DO ARQUIVO.lua"/>
-em NOME DO ARQUIVO vc coloca o nome q vc colocou no arquivo acima!-
depois vai em creaturescripts/scripts/login.lua e adiciona isso la...
registerCreatureEvent(cid, "StorageUp")
"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬
"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein