Page 1 of 1

Invisible and/or hidden items are visible inside containers

Posted: Wed Oct 12, 2011 5:06 am
by Xuri
UOX3 version: 0.98-4.0h

Items with visibility settings that indicate they should be hidden to players, are still visible if inside a container. This is putting a serious hamper on my plan to secretly add hidden GPS tracking devices in player backpacks. :P

Posted: Thu Oct 13, 2011 3:25 am
by giwo
Of course, it's company policy never to imply ownership in the event of a GPS tracking device. We have to use the indefinite article A GPS tracking device, never your GPS tracking device.

Posted: Thu Oct 13, 2011 5:47 pm
by stranf
Does a container inside a player's backpack store the x-y-z of the PC?

I like your idea Xuri, tracking PC's...

Posted: Thu Oct 13, 2011 9:56 pm
by Xuri
There's actually a potential use for something like that. You have the server log player positions every time <insert criteria> and you then have some kind of tool to generate a map that shows the areas on your server with heaviest and lowest amount of traffic. Though I guess you could also do that through tracking how often certain blocks on the map are "asleep" and "awake" (depends on whether or not there are any players near). Hm hm.

Posted: Sat Oct 15, 2011 12:11 am
by giwo
To answer your question stranf, no, the item only knows what object contains it. To figure out details about the root container of an object you'd need to do a bit of recursion until you find an object without a container or one that is a character type.

Re: Invisible and/or hidden items are visible inside contain

Posted: Thu Oct 25, 2012 7:07 am
by Xuri
Fixed on CVS ;D GM-hidden objects (visibility setting: 3) should now not show up to players inside containers :>