Ir para conteúdo

Featured Replies

Postado

Galera na distro do servido esta dando o seguinte erro 

 


[Error - MoveEvents Interface]
data/movements/scripts/fly.lua:onStepIn
Description:
(luaGetItemAttribute) Item not found
 

 

o script de fly logo abaixo

Spoiler

local del = {'460', '1022', '1023', '11675', '11676', '11677'}
local updown = {'1', '3'}

function onStepIn(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid, 17000) <= 0 then
doTeleportThing(cid, topos, false)
if(getItemAttribute(getTileThingByPos(posa).uid, "criadopor") == getCreatureName(cid)) then
doRemoveItem(getTileThingByPos(frompos).uid, 1)
end
if isPlayer(cid) then
doPlayerSendCancel(cid, "You can't fly.")
end
return true
end
if getPlayerStorageValue(cid, 17000) >= 1 then
if topos.z == frompos.z then
if getCreatureOutfit(cid).lookType == 316 then
effect = 136
else
effect = 2
end
doSendMagicEffect(topos, effect)
end
end
for x=-1,1 do
        for y=-1,1 do
            posa = {x=topos.x+x,y=topos.y+y,z=topos.z}
            if isInArray(del, getTileThingByPos(posa).itemid) then
            if(getTileThingByPos(posa).itemid == 460) then
            if(getItemAttribute(getTileThingByPos(posa).uid, "criadopor") == getCreatureName(cid)) then
            doRemoveItem(getTileThingByPos(posa).uid, 1)
            end
            else
            doRemoveItem(getTileThingByPos(posa).uid, 1)
            end
            end
end
end
for x=-1,1 do
        for y=-1,1 do
            pose = {x=frompos.x+x,y=frompos.y+y,z=frompos.z}
            if getTileThingByPos(pose).itemid == 0 then
            doCombatAreaHealth(cid, 0, pose, 0, 0, 0, CONST_ME_NONE)
            itemex = doCreateItem(460, 1, pose)
            doItemSetAttribute(itemex, "criadopor", getCreatureName(cid))
end
end
end
doCombatAreaHealth(cid, 0, topos, 0, 0, 0, CONST_ME_NONE)
if getTileThingByPos(frompos).itemid == 0 then
itemex1 = doCreateItem(460, 1, frompos)
            doItemSetAttribute(itemex1, "criadopor", getCreatureName(cid))
end
return true
end    

 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo