by boshaw » Tue Aug 16, 2011 9:54 pm
if you know the LC object is being used then you know the location of the LC via getc() and obviously it must be moved by a player so you take that getc() and do some semi-accurate search through all objects in ocache to find what player is within 11 units (1 tile) of the LC. most likely it's that guy.
idk might be more than 11 tiles idk how it compares when you have a LC above you, do some testing of player objects holding LCs and compare the positons of LC to the player to see how far the player should be from the LC if he's holding it.
and the figure out their name you take the ocache object (gob) and do:
gob.getattr(KinInfo.class).name
this assumes you have them kinned and thus know their name