• 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 Bazir Mirror

Gladbach

New Member
Joined
May 20, 2011
Messages
18
Reaction score
0
Hey,
I wanna ask how to fix Bazir Mirror on 8.6. This is the normal one:

Code:
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, 39511)
                        end
        end

I read in the function that I have to use
Code:
doItemSetAttribute

If I use the script above +
Code:
doItemSetAttribute(ek, blabla,39511)

it doesnt work.

If the Server is retarded, the item got a special aid. But if You did it once, then the aid removes. How it will be always there?
 
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 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
             return true
        end
not sure ;s
 
LUA:
local tpPos = {x=32712, y=32392, z=13}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 6434 then
		doTransformItem(item.uid, 1847)
		fromPosition.y = fromPosition.y + 1
		doCreateItem(6434, 1, fromPosition)
	elseif item.itemid == 1847 then
		doTeleportThing(cid, tpPos)
		doSendMagicEffect(tpPos, CONST_ME_TELEPORT)
		doCreatureSay(cid, 'Beauty has to be rewarded! Muahahaha!', TALKTYPE_ORANGE_1)
		doTransformItem(item.uid, 6434)
		fromPosition.y = fromPosition.y + 1
		doRemoveItem(getTileItemById(fromPosition, 6434).uid)
	end
	return true
end
this script should be registered to the tapestry (ID 6434) by unique/action id, not itemid!
 
Back
Top