Yoko

All sides of Injection
It is currently 2025-12-22 14:16:32

All times are UTC+02:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Following
PostPosted: 2004-06-12 08:27:09 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
There is a way to use the follow command that use the client?
Like the "alt + leftclick" ?
i need to follow some target, by script, but i don't want to use the pathfinding with doubleleftclick

thanks


Top
   
 Post subject:
PostPosted: 2004-06-13 23:03:57 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
i think no


Top
   
 Post subject:
PostPosted: 2004-06-14 10:20:58 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
But you can write script, what will check every , for example, 100 seconds coordinates of target player and, if they differs from coordinats in top of stack, script will place them in stack. Also, script will go through thease coordinates, removing them from the stack one by one...Thi will be easer, than just walking algorithm, because you'll know path, what is 99.9% passable.

_________________
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...


Top
   
 Post subject:
PostPosted: 2004-06-14 20:48:21 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
but there is a function as uo.move(x,y) ?
or i have to use the double right click (the pathfinding, that i prefer don't use :P)?

tnx!


Top
   
 Post subject:
PostPosted: 2004-06-14 21:01:30 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
There is no special function for moving, but again you can write it yourself. Just bind numpad arrow-keys in client to walk - and use uo.press() to press them from your script-function. As i sad before, you probably don't have to write check of passabiliry, avoiding of obstacles et cetera, because path you'll receive by tracking player will be 99.9% passable, so this script will be easy to wrote
(Of course, you can just grab walking-script from this forum...There is lot of them)

_________________
Без труда не выловишь и рыбку из пруда,

А без пруда не выловишь её и с трудом...


Top
   
 Post subject:
PostPosted: 2004-06-14 23:56:25 
Offline

Joined: 2004-06-14 23:53:12
Posts: 3
But is there a possibility to realize a hotkey, which would emulate alt+lclick on lastobject ?

Also the algorithm of auto following in ultima in not so simple - it could cut corner, run around barriers and you never stucks


Top
   
 Post subject:
PostPosted: 2004-06-15 00:51:41 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
clagio wrote:
There is a way to use the follow command that use the client?
Like the "alt + leftclick" ?

Yoko wrote:
i think no

I think, that's all about hotkeys and clicks...

About build-in client's algorithm of following - yes, it is not perfect. But i sad, what you can write your own script, what will follow target character EXACTLY (step by step), so it almost never stucks (if, of course, target player don't stuck :) )

Наверное мой английский чересчур плох...Йоко, скажи ему, что я ничего не имел ввиду относительно встроенного алгоритма, и что скрипт, вероятно, будет работать лучше, т.ч. следует за персонажем шаг в шаг, и если где-то прошел персонаж - то наверняка там пройдешь и ты на скрипте.

P.S. А эта невозможность делать альт-клик - она того же рода, что и с посылкой сложных комбинаций клавишь через uo.press()? Т.е. можно сделать - но не реализовано?

_________________
Без труда не выловишь и рыбку из пруда,

А без пруда не выловишь её и с трудом...


Top
   
 Post subject:
PostPosted: 2004-06-15 13:02:35 
Offline

Joined: 2004-06-14 23:53:12
Posts: 3
Лан переходим на русский:))

Я о том что алгоритм который клиент использует как раз и хорош тем что не следует за персонажем точно по его координатам, а идет "наперехват" срезая углы и при этом обходя все препятствия, тем самым догоняя противника, что в превую очередь важно в пвп ... так что ещё придется подуматься чтобы самому такой алгоритм написать.

А насчет хоткея - может ли инжект вообще сэмулировать нажатие не одной клавиши (uo.press), а комбинации, а в данном случаи клик+клавиша
И ещё может можно сделать чтобы вызывался макрос click(lastobject) при нажатии alt - те в уо пойдет сочетание альт+клик


Top
   
 Post subject:
PostPosted: 2004-06-15 17:05:45 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
нет, нельзя посылать комбинации - это и есть недостаток uo.press
одновременно тоже вряд ли получится...скриптом. Программно-то это реализуется, насколько я понимаю, несложно.

_________________
Без труда не выловишь и рыбку из пруда,

А без пруда не выловишь её и с трудом...


Top
   
 Post subject:
PostPosted: 2004-06-15 20:31:15 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
i can't understand russian :(

however thank for the answer, i will try


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 0 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:  
Powered by phpBB® Forum Software © phpBB Limited