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

Yalahar Gates?

Code:
local t = {
	[uniqueID1] = {x=100, y=100, z=7},
	[uniqueID2] = {x=100, y=100, z=7},
	[uniqueID3] = {x=100, y=100, z=7},
	[uniqueID4] = {x=100, y=100, z=7},
	[uniqueID5] = {x=100, y=100, z=7},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local tmp = getThingPos(cid)
	doTeleportThing(cid, t[item.uid])
	doSendMagicEffect(tmp, CONST_ME_TELEPORT)
	doSendMagicEffect(t[item.uid], CONST_ME_TELEPORT)
	return true
end
give them an unique ID in editor, put the uniqueIDs in the script and change positions, and register them with the same uniqueIDs in actions.xml
 
Back
Top