Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Alguem poderia me ajudar nisso?? to de saco cheio desse erro aparecendo no meu log :/

Lua Script Error: [Action Interface] 
data/actions/scripts/tools/rope.lua:onUse 
data/actions/scripts/tools/rope.lua:10: attempt to index local 'tile' (a nil value) 
stack traceback: 
[C]: in function '__index' 
data/actions/scripts/tools/rope.lua:10: in function 

aqui ta o script:

local holeId = {
	294, 369, 370, 383, 392, 408, 409, 410, 427, 428, 430, 462, 469, 470, 482,
	484, 485, 489, 924, 3135, 3136, 7933, 7938, 8170, 8286, 8285, 8284, 8281,
	8280, 8279, 8277, 8276, 8323, 8567, 8585, 8596, 8595, 8249, 8250, 8251,
	8252, 8253, 8254, 8255, 8256, 8972, 9606, 9625, 13190, 14461, 19519, 21536
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	local tile = toPosition:getTile()
	local ground = tile:getGround()
	if ground and isInArray(ropeSpots, ground:getId()) or tile:getItemById(14435) then
		Player(cid):teleportTo({x = toPosition.x, y = toPosition.y + 1, z = toPosition.z - 1}, false)
		return true
	elseif isInArray(holeId, itemEx.itemid) then
		toPosition.z = toPosition.z + 1
		tile = toPosition:getTile()
		if tile then
			local thing = tile:getTopVisibleThing()
			if thing:isItem() and thing:getType():isMovable() then
				return thing:moveTo({x = toPosition.x, y = toPosition.y + 1, z = toPosition.z - 1})
			elseif thing:isCreature() and thing:isPlayer() then
				return thing:teleportTo({x = toPosition.x, y = toPosition.y + 1, z = toPosition.z - 1})
			end
		end

		Player(cid):sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
		return true
	end

	return false
end
Link para o post
Compartilhar em outros sites

 
local holeId = {
294, 369, 370, 383, 392, 408, 409, 410, 427, 428, 430, 462, 469, 470, 482,
484, 485, 489, 924, 3135, 3136, 7933, 7938, 8170, 8286, 8285, 8284, 8281,
8280, 8279, 8277, 8276, 8323, 8567, 8585, 8596, 8595, 8249, 8250, 8251,
8252, 8253, 8254, 8255, 8256, 8972, 9606, 9625, 13190, 14461, 19519, 21536
}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tile = toPosition:getTile()
local ground = tile:getGround()
if ground and isInArray(ropeSpots, ground:getId()) or tile:getItemById(14435) then
Player(cid):teleportTo({x = toPosition.x, y = toPosition.y + 1, z = toPosition.z - 1}, false)
return true
elseif isInArray(holeId, itemEx.itemid) then
toPosition.z = toPosition.z + 1
tile = toPosition:getTile()
if tile then
local thing = tile:getTopVisibleThing()
if thing:isItem() and thing:getType():isMovable() then
return thing:moveTo({x = toPosition.x, y = toPosition.y + 1, z = toPosition.z - 1})
elseif thing:isCreature() and thing:isPlayer() then
return thing:teleportTo({x = toPosition.x, y = toPosition.y + 1, z = toPosition.z - 1})
end
end
 
Player(cid):sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
return true
end
 
return false
end
 

ca.png?1422745283

 

CONQUISTASdesigner-king.png   Designer.png    

 

Link para o post
Compartilhar em outros sites
 
local holeId = {
294, 369, 370, 383, 392, 408, 409, 410, 427, 428, 430, 462, 469, 470, 482,
484, 485, 489, 924, 3135, 3136, 7933, 7938, 8170, 8286, 8285, 8284, 8281,
8280, 8279, 8277, 8276, 8323, 8567, 8585, 8596, 8595, 8249, 8250, 8251,
8252, 8253, 8254, 8255, 8256, 8972, 9606, 9625, 13190, 14461, 19519, 21536
}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tile = toPosition:getTile()
local ground = tile:getGround()
if ground and isInArray(ropeSpots, ground:getId()) or tile:getItemById(14435) then
Player(cid):teleportTo({x = toPosition.x, y = toPosition.y + 1, z = toPosition.z - 1}, false)
return true
elseif isInArray(holeId, itemEx.itemid) then
toPosition.z = toPosition.z + 1
tile = toPosition:getTile()
if tile then
local thing = tile:getTopVisibleThing()
if thing:isItem() and thing:getType():isMovable() then
return thing:moveTo({x = toPosition.x, y = toPosition.y + 1, z = toPosition.z - 1})
elseif thing:isCreature() and thing:isPlayer() then
return thing:teleportTo({x = toPosition.x, y = toPosition.y + 1, z = toPosition.z - 1})
end
end
 
Player(cid):sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
return true
end
 
return false
end
 

Amigo, voce não mudou nada '-'

Link para o post
Compartilhar em outros sites

Amigo, voce não mudou nada '-'

você testou pelo menos? mudei algumas funções

ca.png?1422745283

 

CONQUISTASdesigner-king.png   Designer.png    

 

Link para o post
Compartilhar em outros sites

você testou pelo menos? mudei algumas funções

testei... ta igual, até coloquei um lado a lado pra ver o que voce tinha modificado e por isso disse que estava igual

Link para o post
Compartilhar em outros sites

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo