Ir para conteúdo

Posts Recomendados

Eu fiz uma talk tipo de resetmana quando o player esta com 0 de mana ele fala !resetmana a mana dele vai pra tal valor

so que da um erro no distro sobre luagetCreatureMaxMana algo assim

 

aqui segue o script

function onSay(cid, words, param)

if (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then

doPlayerSendTextMessage(cid,22,"você precisa estar em protection zone pra poder usar este comando.")

return TRUE

end

 

if getCreatureMaxMana(cid, 0) then

doPlayerSendTextMessage(cid,22,"Mensagem1.")

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA)

return TRUE

end

 

if setCreatureMaxMana(cid, 100) then

doPlayerSendTextMessage(cid,22,"Mensagem2.")

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)

return TRUE

end

 

end

@edit

Niguem sabe?

Editado por Zmovir
Link para o comentário
https://xtibia.com/forum/topic/182595-talk-ajuda-valendo-rep/
Compartilhar em outros sites

×
×
  • Criar Novo...