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

Windows Help , lever script , Fast!

I think i understand what you mean test this by Cykotitan:

Code:
local function f(p)
	doTransformItem(getTileItemById(p, 1946).uid, 1945)
end
 
local teleport = {x=xxx, y=yyy, z=z}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 1945 then
		doTransformItem(item.uid, 1946)
		addEvent(f, 2000, fromPosition)
		local v = getThingfromPos({x=xxx, y=yyy, z=z, stackpos=1})
		if v.itemid == 2159 then
			doRemoveItem(v.uid, 1)
			doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
			doTeleportThing(cid, teleport)
			doSendMagicEffect(teleport, CONST_ME_TELEPORT)
		else
			doCreatureSay(cid, 'You need a scarab coin to pass!', TALKTYPE_ORANGE_1, false, cid, fromPosition)
		end
	else
		doPlayerSendDefaultCancel(cid, RETURNVALUE_CANNOTUSETHISOBJECT)
	end
	return true
end
 
Back
Top