Poste o advancesave.lua e o arenakill.lua por favor.
- Fórum
- xTibia - Notícias e Suporte
- Soluções
- Archived
- Pela Mor De Deus Ajuda Ai + Rep
3
626
05 de janeiro de 2012 às 13:40
info
Grupo: Campones
Registrado: 22/07/11
Posts: 42
Reputação: +6
Char no Tibia: Lord of stars

05 de janeiro de 2012 às 16:35
advancesave.lua:
-- [( Script edited by: DoidinMapper for XTibia.com )] --
function onAdvance(cid, skill, oldLevel, newLevel)
local config = {savePlayersOnAdvance = true}
if(config.savePlayersOnAdvance) then
doPlayerSave(cid, TRUE)
end
return TRUE
end
--------------------------------------------------
arenakill.lua:
function onKill(cid, target)
local room = getArenaMonsterIdByName(getCreatureName(target))
if room > 0 then
setPlayerStorageValue(cid, room, 1)
doPlayerSendTextMessage(cid,22,"You can enter next room!")
end
return TRUE
end
------------------------------------------------
vlw


info
Grupo: Campones
Registrado: 22/07/11
Posts: 42
Reputação: +6
Char no Tibia: Lord of stars
aff olha só o erro que da no meu server:
[05/01/2012 13:09:49] [Error - CreatureScript Interface]
[05/01/2012 13:09:49] data/creaturescripts/scripts/arenakill.lua:onKill
[05/01/2012 13:09:49] Description:
[05/01/2012 13:09:49] attempt to call a table value
[05/01/2012 13:09:49] stack traceback:
[05/01/2012 13:09:49] [Error - CreatureScript Interface]
[05/01/2012 13:09:49] data/creaturescripts/scripts/killinginthenameof.lua:onKill
[05/01/2012 13:09:49] Description:
[05/01/2012 13:09:49] attempt to call a table value
[05/01/2012 13:09:49] stack traceback:
[05/01/2012 13:09:50] [Error - CreatureScript Interface]
[05/01/2012 13:09:50] data/creaturescripts/scripts/arenakill.lua:onKill
[05/01/2012 13:09:50] Description:
[05/01/2012 13:09:50] attempt to call a table value
[05/01/2012 13:09:50] stack traceback:
[05/01/2012 13:09:50] [Error - CreatureScript Interface]
[05/01/2012 13:09:50] data/creaturescripts/scripts/killinginthenameof.lua:onKill
[05/01/2012 13:09:50] Description:
[05/01/2012 13:09:50] attempt to call a table value
[05/01/2012 13:09:50] stack traceback:
[05/01/2012 13:09:50] [Error - CreatureScript Interface]
[05/01/2012 13:09:50] data/creaturescripts/scripts/advancesave.lua:onAdvance
[05/01/2012 13:09:50] Description:
[05/01/2012 13:09:50] attempt to call a number value
[05/01/2012 13:09:50] stack traceback:
[05/01/2012 13:09:56] [Error - CreatureScript Interface]
[05/01/2012 13:09:56] data/creaturescripts/scripts/advancesave.lua:onAdvance
[05/01/2012 13:09:56] Description:
[05/01/2012 13:09:56] attempt to call a number value
[05/01/2012 13:09:56] stack traceback:
e continua, quando isso acontece o tibia.exe para de funcionar
oq eu faço????