UO.FindType not finding on ground

Ask for help

Moderators: Murderator+, Murderator

Post Reply
DracoX
Posts: 14
Joined: 2012-09-10 20:18:54

UO.FindType not finding on ground

Post by DracoX »

Hi all,

I'm having problems (for a long time) in finding itens, humans, animals, anything...

The use normally follows the pattern

UO.Set('finddistance',???) ; ??? usually is 3 for grab distance
UO.FindType(typehere,'-1','ground')

If I use it to find animations (humans, animals, monsters...) they will only be found if they have moved/turned.
The only way I found to get that problem "solved" was activating "Track World Itens" at the Main tab, but I was told that this option usually causes Injection to Crash because it tracks all screen info.
Therefore, I'm still having problems to create a script that will work without that option activated.

I haven't tested "Track World Itens" for itens, but I know when I'm fishing in Dimension Free Shard (Brazilian Shard) the fishes caught are automaticaly droped in under my feet and I can only find them when they stack, because they update!

I'll add another thing, dos the UO.GetDistance() or UO.FindType consider a radius reach or squared reach?
I think it uses squared, but UO seems to use radius.

Well... thats all! :wink:
DracoX
Posts: 14
Joined: 2012-09-10 20:18:54

Re: UO.FindType not finding on ground

Post by DracoX »

Just adding:

This happens when I try to find an item that is not stacked (more than 1 item with the same id) or near a stacked one.

Let me explain with an example.
1 - I droped 4 bandages around me in ammounts of 1 (4 ids with 1 quantity each)
2 - I used UO.FindType('0x0e21','-1','ground'), that should return UO.FindCount()==4, but it was ==0
3 - Then I drop 1 more bandage on 1 of the existing ones on the ground, making it become 2 in 1 id (4 ids, 3 of them with 1 quantity and 1 of them with 2)
4 - I used UO.FindType('0x0e21','-1','ground'), and it returned UO.FindCount()==4

It doesn't really makes sense for me... I would if I was returned UO.FindCount()==1

Any ideas of how can I get UO.FindType running when the itens are not stackable (can only have quantity of 1 per id) or when there is 1 quantity in the stackable item?
Post Reply