Yoko http://forum.yoko.com.ua/ |
|
How to find out if there is any kind of obejct on the ground http://forum.yoko.com.ua/viewtopic.php?f=17&t=15324 |
Page 1 of 1 |
Author: | solin [ 2009-12-02 20:31:31 ] |
Post subject: | How to find out if there is any kind of obejct on the ground |
Hello, I am finishing my mining script and now I need to do last thing... walking, on my shard it is nightmare because of rocks appearing on the ground. My idea is to scan the direction I want to go if there is a rock on the ground or not, if there is rock, try to find different path. I hope it is clear what I need. Some function like IsThereObjectOnTheGround, is in inject something like that? |
Author: | Ever1x [ 2009-12-03 13:22:00 ] |
Post subject: | |
Can you get information with command ,info? ,info -> Target that rock or something -> Does info shows up? |
Author: | solin [ 2009-12-03 15:02:05 ] |
Post subject: | |
yes it does show info. now I found this ,findtype type [color container_object|ground|my] - seek for object and point finditem on it if found. Number of item stacks found may be retrieved by uo.findcount() this is almost what I need, the only trouble is that it is scaning all the squares in finddistance, just if I can set the coords where it should scan, it will be great |
Author: | Destruction [ 2009-12-03 18:27:02 ] |
Post subject: | |
solin wrote: yes it does show info.
now I found this ,findtype type [color container_object|ground|my] - seek for object and point finditem on it if found. Number of item stacks found may be retrieved by uo.findcount() this is almost what I need, the only trouble is that it is scaning all the squares in finddistance, just if I can set the coords where it should scan, it will be great Is'nt supported. You must search using finddistance and filter search results. e.g.: Code: ; rock description |
Author: | Nmy [ 2009-12-03 19:58:15 ] |
Post subject: | Re: How to find out if there is any kind of obejct on the gr |
solin wrote: Hello, I am finishing my mining script and now I need to do last thing... walking, on my shard it is nightmare because of rocks appearing on the ground. My idea is to scan the direction I want to go if there is a rock on the ground or not, if there is rock, try to find different path. I hope it is clear what I need. Some function like IsThereObjectOnTheGround, is in inject something like that?
This will not work. Use already known walkers. |
Author: | solin [ 2009-12-03 22:19:24 ] |
Post subject: | |
Destruction wrote: solin wrote: yes it does show info. now I found this ,findtype type [color container_object|ground|my] - seek for object and point finditem on it if found. Number of item stacks found may be retrieved by uo.findcount() this is almost what I need, the only trouble is that it is scaning all the squares in finddistance, just if I can set the coords where it should scan, it will be great Is'nt supported. You must search using finddistance and filter search results. e.g.: Code: ; rock description this was very usefull, thanks |
Author: | CuHTpoH [ 2009-12-06 03:35:35 ] |
Post subject: | |
findtype does not work for static objects use injection.dll of version 505.18 and use function uo.privategettile You can find out how it works by search on this forum |
Author: | solin [ 2009-12-06 19:04:33 ] |
Post subject: | |
CuHTpoH wrote: findtype does not work for static objects
use injection.dll of version 505.18 and use function uo.privategettile You can find out how it works by search on this forum Yes that was new to me, I have findtype for the rock searching and I am using privategettile for searching the possible mining spots and paths, I have this done, now I need to think about some clever walking alg, but now when I have these searching tools, it should not be big problem:) |
Author: | Destruction [ 2009-12-07 11:10:44 ] |
Post subject: | |
Try to search something like AStar alg. Also u can see/modify existing walkers. See this post: viewtopic.php?p=66813#66813 |
Author: | CuHTpoH [ 2009-12-07 11:19:59 ] |
Post subject: | |
imho if you wanna really good walker, the only way to do your own or use perl injection pathfinder on 2.0.3 ![]() |
Page 1 of 1 | All times are UTC+02:00 |
Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |