Resources are coming across as unknowns for me as well as the other objects are showing as white instead of the specified color. I do get names for npcs/pcs though. WinXP Pro / US client.
I would guess the npc's showing as white might have something to do with Mob.Level not working (thus remarked out). I see at one point you were going to color code the mobs based on con, but because Mob.Level is returning a -1, you remarked that out, but didn't change the remaining code to use the ColorNPC (or whatever it is) value (lLevelDiff is always 0, so its always using m_hMobPen5 (255,255,255) to draw npcs icons.
As far as PC's and objects go, it is showing a number (2/4) instead of an icon (correct behavior with anything that isn't TYPE_NPC/TYPE_PC). The problem seems to be with TYPE_PC, being defined as &H020, where it should be &H02. Fixing this also fixes the problem with calling getNearestMobs(TYPE_PC). (Unfixed, it returns only one self instead of other PCs).
I ran a little quickie script to see what values were being returned for type and these are the results:
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
ImportScript ".\includes\LOTROService.vbs"
Dim m_oMobs
Dim oMob
Set m_oMobs = getNearestMobs(TYPE_ALL)
For Each (oMob In m_oMobs)
debuglog oMob.Name & " - " & oMob.Type
Next
The compiled results from running this different places seems to be...
All NPC's - 3
All Players - 2 (Sometimes get "Missing Name" instead of actual name)
Milestone - 4
and some resource/unknown examples:
Unknown-232cc332 - 3 (black ash)
Unknown-232cd78e - 3 (ancient ore)
Unknown-232cdec6 - 3 (ancient ore)
Unknown-232cdd4f - 3 (misty silver)
Unknown-232cc934 - 3 (keystone vault - item on ground)
Unknown-232ce265 - 3 (corpse)
I can also verify Tault_mississippi that Target.Name, Target.HP, Target.X (Y,Z) are returning Unknown-00 and 0 values. (tried LOTR.Target, Target, and calling GetTargetName(). The distance one does return a value that does increment as one gets further away, although the number is quite large from Misty Mountains (in the 35000 range), which I'm assuming is my distance from 0,0.
In your function getMobHealth, as well as testing with oMob.Health, I get an error saying that oMob doesn't support the property/method Health. HP does return a 0-100 value though.
If you would like more specifics, etc, just let me know.