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

Pewna funkcja (?!)

Code:
function onUse(cid, item, frompos, item2, topos)
	local STAIRS = 5259
	local UID = 1000
	
	local stairPos = { x = 1080, y = 1113, z = 6, stackpos = 1 }
	local stairs = getTileItemById( stairPos, STAIRS ) 
	
	if item.uid == UID and item.itemid == 1945 then 
		doRemoveItem( stairs.uid, 1 ) 
		doTransformItem( item.uid, item.itemid + 1 ) 
		return TRUE
	elseif item.uid == UID and item.itemid == 1946 then 
		doCreateItem(STAIRS, 1, stairPos)
		doTransformItem( item.uid, item.itemid - 1 ) 
		return TRUE
	end 

	return FALSE
end

Te trzy rzeczy interesuja cie jezeli chodzi o konfiguracje
Code:
-- ID Schodow
local STAIRS = 5259
-- Uniquee ID dzwigni
local UID = 1000
-- Pozycja schodow
local stairPos = { x = 1080, y = 1113, z = 6, stackpos = 1 }
 
Back
Top