laststatus / attacklast

Materials, references, tutorials

Moderators: Murderator+, Murderator

Post Reply
Dr.Doom
Posts: 3
Joined: 2012-04-03 04:18:32

laststatus / attacklast

Post by Dr.Doom »

Я пытаюсь выяснить, как один делает быстро цель автоматически, поэтому вам не придется вручную цель людей, сделать их своей последней цели. Не могу целевой кто-нибудь бегает достаточно быстро. Я использую 5.0.1h клиента. Я в настоящее время пытается получить следующий макрос цель в игре с ней работать.

sub target()
uo.press (115) # F4
wait (100)
UO.Set ('lasttarget', 'laststatus)
endsub


F4 является следующая цель в игре.

Это похоже на работу, но не так, это будет ошибка, время от времени, это привычка помнить что-то lasttarget. Есть ли что-то я пропавших без вести с этим? Или есть более простой для сборки цели следующая работа с впрыском?
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Re: laststatus / attacklast

Post by Destruction »

Do ask in English please.
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Re: laststatus / attacklast

Post by Nmy »

did you mean if the target disappeared from the screen use next target?
Dr.Doom
Posts: 3
Joined: 2012-04-03 04:18:32

Re: laststatus / lasttarget

Post by Dr.Doom »

Well, I'm trying to figure out a way to be able to use nexttarget inside UO to set laststatus as lasttarget with injection. I tried using laststatus as my target like this uo.exec("cast 'Mind Blast' laststatus") but it seems really buggy.

sub target()
uo.press(115) #F4 (nexttarget)
wait (100)
UO.Set('lasttarget','laststatus')
endsub

Now if bind that to a key, and use uo.exec("cast 'Flame Strike' lasttarget"), it will say "that is too far away". Main reason I'm trying to figure this is out, is because I've been having a hard time manuel clicking people in pvp, and it I pvped with razor i always used nextarget to set people as my lasttarget and it worked fine. Am I missing something, or is there a easier way to do this?
DracoX
Posts: 14
Joined: 2012-09-10 20:18:54

Re: laststatus / attacklast

Post by DracoX »

For getting target from you UO Client I use a script without attacking the target, so I may target it without the need to show him that!

diferently from you I use the client to call for Injection script using ,exec command.

In UO Client I got a hoteky set with:

NextTarget (or SelectNext ... whatever you have on your client)
Say ",exec mark_target"

In Injection I got:

Code: Select all

Sub mark_target()
Wait(100) ; Actually here I use a Ping comand so I'm sure UO client has updated the 'laststatus' info for injection
UO.AddObject('lasttarget','laststatus')
End Sub


This is just an example of the process I use, usually I don't use 'lasttarget' because injection changes it's value, so I prefer using 'mytarget' or something like that and checking the value of 'laststatus' before replacing 'mytarget' with empty values or with non human targets
Post Reply