agora tenta assim:
if tonumber(t[1]) ~= getPlayerStorageValue(cid, sagaTransformacao.storage) then doCreatureAddMana(cid, -1000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, transform.mana) doCreatureAddHealth(cid, -sagaTransformacao.health) setCreatureMaxMana(cid, getCreatureMaxMana(cid) - sagaTransformacao.mana) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) - sagaTransformacao.health) end
e me informa a mensagem em vermelho que aparecer.




info
Grupo: Marquês
Registrado: 05/12/11
Posts: 1.2k
Reputação: +173
Gênero: Masculino
ta subindo +1000 de mana como se fosse cura ... não aumentar o maxmana só subiu 1000 como se tivesse usado uma mana potion
erro no console nao tinha visto
[26/06/2017 00:01:51] [Error - TalkAction Interface]
[26/06/2017 00:01:51] data/talkactions/scripts/sagatran.lua:onSay
[26/06/2017 00:01:51] Description:
[26/06/2017 00:01:51] data/talkactions/scripts/sagatran.lua:57: attempt to perform arithmetic on field 'health' (a nil value)
[26/06/2017 00:01:52] stack traceback:
[26/06/2017 00:01:52] data/talkactions/scripts/sagatran.lua:57: in function <data/talkactions/scripts/sagatran.lua:3>