brunosteve
New Member
Hello, I have a problem in my Pits of Hell in exchange for Bazir when it opens click on the tapestry, alas when I click on a mirror so he will teleport to the throne room, there's not already to anyone clicks the tapestry he runs out action. and does not work're doing anything and that the players get stuck in the tapestry room. could someone help me?
My Script
Console Erro:
My Script
Lua:
function onUse(cid, item, frompos, item2, topos)
local LustroPos = { x=32739, y=32392, z=14, stackpos=2}
local TapestryPos = { x=32739, y=32393, z=14, stackpos=2}
local tpPos = {x=32712, y=32392, z=13}
local getItem4 = getThingFromPos(tpPos)
local getItem2 = getThingFromPos(LustroPos)
local getItem3 = getThingFromPos(TapestryPos)
local stoneId = 1847
if getItem2.itemid == stoneId then
doTeleportThing(cid, tpPos)
doSendMagicEffect(getCreaturePosition(cid),10)
doRemoveItem(getItem3.uid,1)
local ek = doCreateItem(6434,1,LustroPos)
doSetItemActionId(ek, 39512)
end
end
Console Erro: