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

moving tile

xavierek

New Member
Joined
Apr 11, 2009
Messages
209
Reaction score
0
PHP:
function onThink(interval, lastExecution, thinkInterval)
	startpos = {x=2499, y=2536, z=7}
	endpos = {x=2499, y=2538, z=7}
	get1gate = getThingFromPos(startpos)
	doCreateItem(1798,1, endpos)
	doRemoveItem(get1gate.uid,1)
	get2gate = getThingFromPos(endpos)
	doCreateItem(1798,1, startpos)
	doRemoveItem(get2gate.uid,1)
	return true
end
i dont know why its no remove carpet ;/ some one can help ? no errors in console
 
PHP:
function onThink(interval, lastExecution, thinkInterval)
	startpos = {x=2482, y=2509, z=7, stackpos=0}
	endpos = {x=2482, y=2511, z=7, stackpos=0}
	get1gate = getThingFromPos(startpos)
	doCreateItem(1798,1, endpos)
	doRemoveItem(get1gate.uid,1)
	get2gate = getThingFromPos(endpos)
	doCreateItem(1798,1, startpos)
	doRemoveItem(get2gate.uid,1)
	return true
end

dot removing and i cant stand on carpet also cant remove /r
 
carpet is not ground

also why would you remove it and then create it again at same pos?
or are you replacing some item with carpet?
Code:
local t = {
	[{x=2499, y=2536, z=7}] = {remove = XXXX, create = 1798},
	[{x=2499, y=2538, z=7}] = {remove = XXXX, create = 1798}
}
function onThink(interval, lastExecution, thinkInterval)
	for pos, id in pairs(t) do
		doRemoveItem(getTileItemById(pos, id.remove).uid)
		doCreateItem(pos, 1, id.create)
	end
	return true
end
 
Last edited:
Because he wants to do an impression as if the carpet flew:) already done the teleport a player now I do like to stretch cid matches either the name of a player with XYZ
 
Back
Top