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

Problem on check item on position

valivan601

New Member
Joined
Apr 13, 2011
Messages
365
Reaction score
1
i use this to check if if there is a item in this position if has the item will be removed

but dont work anyone know whats could be?

Code:
removals = {
        { item = 9486, pos = { x = 33303 , y = 31491 , z = 7 } },
        { item = 9486, pos = { x = 33304 , y = 31491 , z = 7 } },	
        { item = 9486, pos = { x = 33305 , y = 31491 , z = 7 } },
	{ item = 9486, pos = { x = 33306 , y = 31491 , z = 7 } },  
	{ item = 9486, pos = { x = 33307 , y = 31491 , z = 7 } },
        { item = 9486, pos = { x = 33308 , y = 31491 , z = 7 } }, 
	{ item = 9486, pos = { x = 33309 , y = 31491 , z = 7 } }
         
    }

function onThink(interval, lastExecution, thinkInterval)
if getThingfromPos({x=33305, y=31491, z=7, stackpos=1}).itemid == 9486 then
		for i = 1, #removals do			
			removals[i].pos.stackpos = 1 						        		 
            		doRemoveItem(getThingfromPos(removals[i].pos).uid, 1)
        	end
        end
    return TRUE
end
 
Back
Top