JU
dúvida

[Encerrado] Onde fica o !buypremium?

Por JulioNakanishi, 09 de mar. de 2013 em Tópicos Sem Resposta

10
1k
09 de março de 2013 às 13:10

já procurei em talkactions e não achei lá :(

alguem sabe onde eu aacho pra tira do ot?

09 de março de 2013 às 13:56

poste seu talkactions.xml

RoksasR
09 de março de 2013 às 14:09

Se não estiver em data/talkactions/scripts, fica na pasta MODS, dentro da pasta do OT

09 de março de 2013 às 14:19

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>

ThiagoBjiT
09 de março de 2013 às 15:31

Dúvida Sanada. Crie outro tópico pra essa outra dúvida.

RoksasR
09 de março de 2013 às 15:39

Domis passe o arquivo advance save.lua da pasta data/creaturescript/scripts

09 de março de 2013 às 15:44

 

 

 

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

 

 

LuckinhaSanL
09 de março de 2013 às 18:55

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

 

RoksasR
14 de março de 2013 às 17:11

Reportado pelo autor do tópico.

Movido para pedidos e dúvidas atendidos ~~

5 anos depois...
StigalS
21 de abril de 2018 às 02:43
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ 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.