já procurei em talkactions e não achei lá
alguem sabe onde eu aacho pra tira do ot?
já procurei em talkactions e não achei lá
alguem sabe onde eu aacho pra tira do ot?
poste seu talkactions.xml
Se não estiver em data/talkactions/scripts, fica na pasta MODS, dentro da pasta do OT
já achei e resolvi o problema, não era em talkactions.
______________________________________________
to com outra dúvida to com um erro no distro, alguem sabe o que é
[9/3/2013 14:17:5] [Error - CreatureScript Interface] [9/3/2013 14:17:5] data/creaturescripts/scripts/advancesave.lua:onAdvance [9/3/2013 14:17:5] Description: [9/3/2013 14:17:5] attempt to index a nil value [9/3/2013 14:17:5] stack traceback: [9/3/2013 14:17:5] [C]: in function 'doSendMagicEffect' [9/3/2013 14:17:5] data/creaturescripts/scripts/advancesave.lua:15: in function <data/creaturescripts/scripts/advancesave.lua:7>
Domis passe o arquivo advance save.lua da pasta data/creaturescript/scripts
local config = {
savePlayer = true,
healPlayerOnLevel = true
}
function onAdvance(cid, skill, oldLevel, newLevel)
if(skill == SKILL__EXPERIENCE) then
return true
end
if(skill == SKILL__LEVEL and config.healPlayerOnLevel) then
doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid))
doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))
end
if(config.savePlayer) then
doPlayerSave(cid, true)
end
return true
end
Tenta Isso -
function onAdvance(cid, skill, oldLevel, newLevel) local config = { savePlayer = true, hp = true, } if(skill == 8) then doPlayerSendTextMessage(cid, 27, "You are advanced of "..oldLevel.." to "..newLevel..", congratulations!") doSendMagicEffect(getThingPos(cid), 30) return true end if(skill == 8) then if config.hp then doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid)) doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid)) return true end end if(config.savePlayer) then doPlayerSave(cid, true) return true end end
Reportado pelo autor do tópico.
Movido para pedidos e dúvidas atendidos ~~
"O fracasso é a oportunidade de se começar de novo inteligentemente"