• 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!

Lua Need help with a script from POI Quest

Byllan

Member
Joined
Dec 29, 2009
Messages
1,079
Reaction score
12
Location
SWEDEN
BazirMirror.lua
PHP:
function onUse(cid, item, frompos, item2, topos)

local stonePos = { x=32739, y=32392, z=14, stackpos=2}
local stonePos1 = { x=32739, y=32393, z=14, stackpos=2}
local getItem = getThingFromPos(stonePos)
local getItem1 = getThingFromPos(stonePos1)
local stoneId = 6434

                if getItem.itemid == stoneId then
				doRemoveItem(getItem.uid,1)
				doCreateItem(6434,1,stonePos1)
                        end
        end

When they have click on the blue tapestry and then mirror

and the actionId on tapestry disappear

I have the actionid added in the map but i dont know why its disappear

Pits_of_Inferno_Quest_Bazir_6.jpg


//Byllan
 
LUA:
function onUse(cid, item, frompos, item2, topos)
	local stonePos, stonePos1 = { x=32739, y=32392, z=14, stackpos=2}, { x=32739, y=32393, z=14, stackpos=2}
	local getItem, getItem1 = getThingFromPos(stonePos), getThingFromPos(stonePos1)
	local stoneId = 6434

	if getItem.itemid == stoneId then
		doRemoveItem(getItem.uid,1)
		local new = doCreateItem(6434,1,stonePos1)
		doItemSetAttribute(new, "aid", YOUR_AID)
	end
end
 
Back
Top