• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Bug POi

hasbro

Member
Joined
Feb 15, 2009
Messages
287
Reaction score
6
bug in the mirror of poi, it only works one veiz then no longer works, gives the following errroor:
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
 
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 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)
        doSetItemActionId(ek, 39511)
    end
end
 
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 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)
        doSetItemActionId(ek, 39511)
    end
end
What did you change exactly?

@OP
What distro are you running because 0.3.6pl1 has the function
Lua:
doSetItemActionId(uid, actionid)
 
Back
Top