poste seu talkactions.xml
- Forums
- OTServ
- Suporte
- Tópicos Sem Resposta
- [Encerrado] Onde fica o !buypremium?
[Encerrado] Onde fica o !buypremium?
By JulioNakanishi, 09 de mar. de 2013 in Tópicos Sem Resposta
info
Group: Infante
Joined: 27/01/13
Posts: 1.7k
Reputation: +104
Gender: Masculino

info
Group: Herói
Joined: 14/12/10
Posts: 3.6k
Reputation: +846
Gender: Masculino

Se não estiver em data/talkactions/scripts, fica na pasta MODS, dentro da pasta do OT
info
Group: Campones
Joined: 14/12/10
Posts: 63
Reputation: +10
Tibia Character: Naoteinteressa

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>
Dúvida Sanada. Crie outro tópico pra essa outra dúvida.
info
Group: Herói
Joined: 14/12/10
Posts: 3.6k
Reputation: +846
Gender: Masculino

Domis passe o arquivo advance save.lua da pasta data/creaturescript/scripts
info
Group: Campones
Joined: 14/12/10
Posts: 63
Reputation: +10
Tibia Character: Naoteinteressa

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
info
Group: Conde
Joined: 03/09/11
Posts: 703
Reputation: +191
Gender: Masculino
Tibia Character: Mirade

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
info
Group: Herói
Joined: 14/12/10
Posts: 3.6k
Reputation: +846
Gender: Masculino

Reportado pelo autor do tópico.
Movido para pedidos e dúvidas atendidos ~~
info
Group: Herói
Joined: 28/11/10
Posts: 3.4k
Reputation: +585
Gender: Masculino

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.




info
Group: Campones
Joined: 14/12/10
Posts: 63
Reputation: +10
Tibia Character: Naoteinteressa
já procurei em talkactions e não achei lá
alguem sabe onde eu aacho pra tira do ot?