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

Item lever

kamilcioo

Veteran OT User
Joined
Jul 25, 2008
Messages
979
Solutions
1
Reaction score
291
I need something like that. I use lever and three items from coal basin will combine into one item.

beztytuumbm.jpg
 
Code:
local pos = {
	{x = 100, y = 200, z = 7},
	{x = 200, y = 300, z = 7},
	{x = 300, y = 400, z = 7}
}

local newPosition = {x = 100, y = 200, z = 7}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local success
	for _, items in ipairs(pos) do
		local it = getTileItemById(items, item).uid
		if it > 0 then
			doRemoveItem(it)
			success = true
		end
	end
	if success then
		doCreateItem(1000, 1,newPosition)
	end
	return true
end
not tested
 
Back
Top