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

See things on a certain pos

Strack

Member
Joined
May 15, 2009
Messages
199
Reaction score
14
That's my question, how to make a function to see things on a certain pos for 'X' time, like you where there
I know it's posible 'cause 've seen it in other servers (PO f.ex.)
I suppose its compiling but how to do it?

Thanks for your time
 
no its possible via lua no need for compiling, heres a small example:
Code:
function getItemsInArea(fromPos, toPos)
	local current = {}
	for x = fromPos.x, toPos.x do
		for y = fromPos.y, toPos.y do
			local item = getTileItemById({x = x, y = y, z = fromPos.z}, id).uid
			if item > 0 then
				table.insert(current, item)
			end
		end
	end
	return current
end
 
@Fallen:
I guess he wants to CREATE item object on certain tile and make it disappear after X time.
 
rSuzM.png


;//


that's right Grehy, that's what I want, I know its posible but dont know how to do it :S

Imho loads of protocol edits, send other data while viewing or so.
 
NewSoftzzz or w/e his name is, from OTFans, made it once without client edits :p it's pretty messy... i was gonna attempt it once but didnt have time but you'll sure get debugs n shit so it'll require some workarounds
 
B U M P
I searched for what u said colandus, and I see a thread of newSoftzzz talking about it, but no code shared :S
 
Back
Top