bug in the mirror of poi, it only works one veiz then no longer works, gives the following errroor:
Script:
PHP:
[Error - Action Interface]
/data/actions/scripts/other/BazirMirror1.lua:16: attemp to call global 'doSetItemActionId' <a nil value>
stack traceback
/data/actions/scripts/other/BazirMirror1.lua:16: in function </data/actions/scripts/other/BazirMirror1.lua:1:>
Script:
PHP:
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 ek = doCreateItem(6434,1,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, 39511)
end
end