Posta o script pra gente poder resolver ue!
- Fórum
- xTibia - Notícias e Suporte
- Soluções
- Archived
- Player Advance
7
1.1k
info
Grupo: Visconde
Registrado: 19/11/08
Posts: 364
Reputação: +104
Gênero: Masculino
Char no Tibia: Avronex Shiolalon

01 de agosto de 2015 às 12:16
01 de agosto de 2015 às 12:23
Creaturescripts.xml
<event type="advance" name="PlayerAdvance" event="script" value="PlayerAdvance.lua"/>
login.lua
registerCreatureEvent(cid, "PlayerAdvance")
PlayerAvance.lua
function onAdvance(cid, skill, oldLevel, newLevel, time)
db.Query("INSERT INTO player_advances (cid, skill, oldlevel, newlevel, time) VALUES ('" .. getPlayerGUID(cid) .. "', '" .. skill .."', '" .. oldLevel .."', '" .. newLevel .."', '" .. os.time() .. "' )")
return true
end
info
Grupo: Visconde
Registrado: 19/11/08
Posts: 364
Reputação: +104
Gênero: Masculino
Char no Tibia: Avronex Shiolalon

01 de agosto de 2015 às 13:47
PlayerAvance.lua
function onAdvance(cid, skill, oldLevel, newLevel, time) db.Query("INSERT INTO player_advances (cid, skill, oldlevel, newlevel, time) VALUES ('" .. getPlayerGUID(cid) .. "', '" .. skill .."', '" .. oldLevel .."', '" .. newLevel .."', '" .. os.time() .. "' )") return true end
Tente assim:
function onAdvance(cid, skill, oldLevel, newLevel, time)
db.executeQuery("INSERT INTO player_advances (cid, skill, oldlevel, newlevel, time) VALUES ('" .. getPlayerGUID(cid) .. "', '" .. skill .."', '" .. oldLevel .."', '" .. newLevel .."', '" .. os.time() .. "' )")
return true
end
01 de agosto de 2015 às 14:13
ainda nada ![]()
01 de agosto de 2015 às 18:13
function onAdvance(cid, skill, oldLevel, newLevel, time)
db.query("INSERT INTO player_advances (cid, skill, oldlevel, newlevel, time) VALUES ('" .. getPlayerGUID(cid) .. "', '" .. skill .."', '" .. oldLevel .."', '" .. newLevel .."', '" .. os.time() .. "' )")
return true
end
4 semanas depois...





info
Grupo: Campones
Registrado: 31/07/15
Posts: 9
Reputação: 0
Meu Ot Ta Crachando Sozinho Esta Dando Esse Erro Sem Parar Alguem Ajuda Aew Dou REP ++ Rapido Seriao!!!
Editado Agosto 1 por hubesch