Ir para conteúdo

[URGENTE] goback.lua


Smithcos

Posts Recomendados

Gnt,me ajudem,tenho um Servidor com icon system,na primeira vez que testei,foi normal,mas depois q coloquei off,e dps on dnv,deu bug no goback.lua,quando vou por um poke pra fora da esse problema na distro do Server :

 

[23/03/2014 14:47:53] [Error - Action Interface]
[23/03/2014 14:47:53] data/actions/scripts/goback.lua:onUse
[23/03/2014 14:47:53] Description:
[23/03/2014 14:47:53] (luaGetCreatureName) Creature not found
[23/03/2014 14:47:53] [Error - Action Interface]
[23/03/2014 14:47:53] data/actions/scripts/goback.lua:onUse
[23/03/2014 14:47:53] Description:
[23/03/2014 14:47:53] (luaDoConvinceCreature) Creature not found
[23/03/2014 14:47:53] [Error - Action Interface]
[23/03/2014 14:47:53] data/actions/scripts/goback.lua:onUse
[23/03/2014 14:47:53] Description:
[23/03/2014 14:47:53] (luaGetCreatureStorage) Creature not found
[23/03/2014 14:47:53] [Error - Action Interface]
[23/03/2014 14:47:53] data/actions/scripts/goback.lua:onUse
[23/03/2014 14:47:54] Description:
[23/03/2014 14:47:54] (luaGetClosestFreeTile) Creature not found
[23/03/2014 14:47:54] [Error - Action Interface]
[23/03/2014 14:47:54] data/actions/scripts/goback.lua:onUse
[23/03/2014 14:47:54] Description:
[23/03/2014 14:47:54] data/lib/newSystemsLib.lua:1267: attempt to index field '?' (a nil value)
[23/03/2014 14:47:54] stack traceback:
[23/03/2014 14:47:54] data/lib/newSystemsLib.lua:1267: in function 'doGoPokemon'
[23/03/2014 14:47:54] data/actions/scripts/goback.lua:27: in function <data/actions/scripts/goback.lua:1>
Se puderem me ajudar,aqui esta meu goback.lua
function onUse(cid, item, frompos, item2, topos)
if #getCreatureSummons(cid) >= 1 and getPlayerStorageValue(getCreatureSummons(cid)[1], 33) >= 1 then
return true
end
----
btype = getPokeballType(item.itemid)
usando = pokeballs[btype].use
online = pokeballs[btype].on
morto = pokeballs[btype].off
----
if item.itemid == usando then
doPlayerSendCancel(cid, '12//,hide')
doReturnPokemon(cid) -- Editei aqui
elseif item.itemid == morto then
return doPlayerSendCancel(cid, "This pokemon is fainted.")
elseif item.itemid == online then
doPlayerSendCancel(cid, '12//,show')
addEvent(doUpdateMoves, 50, cid)
doGoPokemon(cid)
end
return TRUE
end
-----------

 

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...