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

Lua Script Array

WTF.Error

Member
Joined
Aug 8, 2007
Messages
489
Reaction score
10
I need a array to check if have one item ( item in list )
in one sqm.

if have x item
then do x task

if have y item
then do y task


array like this


Code:
local corpo = {
		[3080] = 5,
		[3080] = 6
}
 
array not needed
Lua:
local pos = {x=100, y=100, z=7}

if getTileItemById(pos, 2300).uid > 0 then
	-- x task
elseif getTileItemById(pos, 2301).uid > 0 then
	-- y task
end
 
Back
Top Bottom