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

MoveEvent Turtle teleport

chito

Learning Lua
Joined
Apr 18, 2008
Messages
87
Reaction score
1
Location
Mexico
Well i found this script long time ago just releasing it

How it works?
On uniqueID the Y position example 40520
On actionID the X position example 40234
The turtle should be on main floor.

Here it is.
Code:
function onStepIn(cid, item, pos)	
	
newy = item.uid - 40000
newx = item.actionid - 40000
newpos = {x=newx, y=newy, z=7}

	doSendMagicEffect(pos,2)		
	doTeleportThing(cid,newpos)
	doSendMagicEffect(newpos,2)
	
end

And on Movements add this.
Code:
<movevent event="StepIn" itemid="5756" script="turtle.lua" />

Regards,
Chito.

Give some rep if you think i helped you.
 
Code:
local config = {
	[2000] = { x = x, y = y, z = z },
	[2001] = { x = x, y = y, z = z },
	[2002] = { x = x, y = y, z = z }
}
function onStepIn(cid, item, pos)	
	for action, position in pairs(config) do
		if item.actionid == action then
			doTeleportThing(cid, position, 0)
		end
	end
	return TRUE
end

You can add as many positions as you want to.
 
Back
Top