DI

[Encerrado] [Error - TalkAction Interface] - flydown.lua

Por didogunner, 31 de jan. de 2013 em Tópicos Sem Resposta

[error - talkaction interface
resolvido
script
4
586
didogunnerD
31 de janeiro de 2013 às 19:08

Alguém sabe como resolver?

 

[Error - TalkAction Interface]

[31/01/2013 18:38:01] data/talkactions/scripts/flydown.lua:onSay

[31/01/2013 18:38:01] Description:

[31/01/2013 18:38:01] (luaDoCreateItem) Tile not found

 

Segue o flydown.lua

 

local lower = {'460', '11675', '11676'}

 

local houses = {'919', '1015', '1590', '1591', '1592', '1593', '1582', '1584', '1586', '1588', '5248', '5189'}

 

function onSay(cid, words, param)

 

if param ~= "" then

return false

end

 

if getPlayerStorageValue(cid, 17000) <= 0 then

return true

end

 

if getThingPos(cid).z == 7 then

doPlayerSendCancel(cid, "You can\'t go lower!")

return true

end

 

if getTileInfo(getThingPos(cid)).itemid == 11677 then

doPlayerSendCancel(cid, "Sorry, it's not possible to go lower.")

return true

end

 

if not isInArray(lower, getTileInfo(getThingPos(cid)).itemid) and getTileInfo(getThingPos(cid)).itemid >= 2 then

doPlayerSendCancel(cid, "You can\'t go lower.")

return true

end

 

local pos = getThingPos(cid)

pos.z = pos.z+1

pos.stackpos = 0

 

if getTileThingByPos(pos).itemid >= 1 then

 

if getTilePzInfo(pos) == true then

doPlayerSendCancel(cid, "You can\'t go down here.")

return true

end

 

if not canWalkOnPos(pos, true, true, false, false, true) then

doPlayerSendCancel(cid, "You can't go down here.")

return true

end

 

doTeleportThing(cid, pos)

if getCreatureOutfit(cid).lookType == 667 or getCreatureOutfit(cid).lookType == 999 then

markPosEff(cid, getThingPos(cid))

end

 

else

doCombatAreaHealth(cid, 0, pos, 0, 0, 0, CONST_ME_NONE)

doCreateItem(11675, 1, pos)

doTeleportThing(cid, pos)

if getCreatureOutfit(cid).lookType == 667 or getCreatureOutfit(cid).lookType == 999 then

markPosEff(cid, getThingPos(cid)) --edited porygon fly sistem

end

 

return true

end

return true

end

 

HeinekennnH
31 de janeiro de 2013 às 19:26

tenta ae

 

 

local lower = {'460', '11675', '11676'}

 

local houses = {'919', '1015', '1590', '1591', '1592', '1593', '1582', '1584', '1586', '1588', '5248', '5189'}

 

function onSay(cid, words, param)

 

if param ~= "" then

return false

end

 

if getPlayerStorageValue(cid, 17000) <= 0 then

return true

end

 

if getThingPos(cid).z == 7 then

doPlayerSendCancel(cid, "You can\'t go lower!")

return true

end

 

if getTileInfo(getThingPos(cid)).itemid == 11677 then

doPlayerSendCancel(cid, "Sorry, it's not possible to go lower.")

return true

end

 

if not isInArray(lower, getTileInfo(getThingPos(cid)).itemid) and getTileInfo(getThingPos(cid)).itemid >= 2 then

doPlayerSendCancel(cid, "You can\'t go lower.")

return true

end

 

local pos = getThingPos(cid)

pos.z = pos.z+1

pos.stackpos = 0

 

if getTileThingByPos(pos).itemid >= 1 then

 

if getTilePzInfo(pos) == true then

doPlayerSendCancel(cid, "You can\'t go down here.")

return true

end

 

if not canWalkOnPos(pos, true, true, false, false, true) then

doPlayerSendCancel(cid, "You can't go down here.")

return true

end

 

doTeleportThing(cid, pos)

if getCreatureOutfit(cid).lookType == 667 or getCreatureOutfit(cid).lookType == 999 then

markPosEff(cid, getThingPos(cid))

end

 

else

doCombatAreaHealth(cid, 0, pos, 0, 0, 0, CONST_ME_NONE)

doCreateItem(11675, 1, pos)

doTeleportThing(cid, pos)

if getCreatureOutfit(cid).lookType == 667 or getCreatureOutfit(cid).lookType == 999 then

markPosEff(cid, getThingPos(cid)) --edited porygon fly sistem

end

 

return true

end

return true

end

 

 

e dps

 

 

<talkaction words="!down" case-sensitive="no" event="script" value="flydown.lua"/>

<talkaction words="h2" case-sensitive="no" event="script" value="flydown.lua"/>

1 mês depois...
StigalS
12 de fevereiro de 2013 às 13:33

Tópico movido para a seção de dúvidas e pedidos resolvidos.

5 anos depois...
StigalS
21 de abril de 2018 às 02:41
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.