[FIXED] Invisible and/or hidden items are visible inside containers

Here we stuff all the bugs we've managed to squash/squish/squelch.
Locked
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Invisible and/or hidden items are visible inside containers

Post 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
-= Ho Eyo He Hum =-
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post 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.
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post 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...
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post 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.
-= Ho Eyo He Hum =-
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post 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.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Fixed on CVS ;D GM-hidden objects (visibility setting: 3) should now not show up to players inside containers :>
-= Ho Eyo He Hum =-
Locked