Yoko

All sides of Injection
It is currently 2024-04-17 00:17:32

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2012-09-11 13:58:22 
Offline

Joined: 2012-09-10 20:18:54
Posts: 14
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:


Top
   
PostPosted: 2012-09-13 14:03:11 
Offline

Joined: 2012-09-10 20:18:54
Posts: 14
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?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited