ver esse
function onLogin(cid) setPlayerStorageValue(cid, 47112120,1) local voc = getPlayerVocation(cid) if getPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)]) >= 0 then sendGemEffect(cid, gems.storage[voc], gems.interval[voc]) end return TRUE end




info
Grupo: Campones
Registrado: 22/11/11
Posts: 52
Reputação: 0
Char no Tibia: so jogo ots 8.4
[06/08/2012 18:16:34] Lua Script Error: [CreatureScript Interface]
[06/08/2012 18:16:34] in a timer event called from:
[06/08/2012 18:16:34] data/creaturescripts/scripts/login.lua:onLogin
[06/08/2012 18:16:34] luaGetThingPos(). Thing not found
[06/08/2012 18:16:34] Lua Script Error: [CreatureScript Interface]
[06/08/2012 18:16:34] in a timer event called from:
[06/08/2012 18:16:34] data/creaturescripts/scripts/login.lua:onLogin
[06/08/2012 18:16:34] luaGetPlayerStorageValue(). Player not found
script
function onLogin(cid)
setPlayerStorageValue(cid, 47112120, 2)
local voc = getPlayerVocation(cid)
if getPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)]) > 0 then
sendGemEffect(cid, gems.storage[voc], gems.interval[voc])
end
return TRUE
end
Editado Agosto 6 por angelanascimento