if isSummon(cid) or isPlayer(getCreatureMaster(cid)) then addEvent(function() if isCreature(getCreatureMaster(cid)) then doPlayerSendCancel(getCreatureMaster(cid), "%PokeHealth@" .. getCreatureHealth(cid) .. "@" .. getCreatureMaxHealth(cid)) end end, 100) end







info
Grupo: Visconde
Registrado: 11/12/07
Posts: 332
Reputação: +11
Estou com um problema nesse script, ele funciona mas as vezes da esse erro dizendo que não encontrou a criatura do jogador.
[Error - CreatureScript Interface] In a timer event called from: data/creaturescripts/scripts/exp2.0.lua:onStatsChange Description: (luaGetCreatureMaster) Creature not foundo script é este.
if isSummon(cid) and isPlayer(getCreatureMaster(cid)) then addEvent(function() if isCreature(getCreatureMaster(cid)) then doPlayerSendCancel(getCreatureMaster(cid), "%PokeHealth@" .. getCreatureHealth(cid) .. "@" .. getCreatureMaxHealth(cid)) end end, 100) end ...botei ("...") pq continua, está parte ai que da o erro.
Editado Novembro 5 por atakashi