could you make waittargettile to expect an obj's serial inst

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

could you make waittargettile to expect an obj's serial inst

Post by paulinho4life »

could you make waittargettile to expect an obj's serial instead of a XYZ and grab the XYZ of that obj?"

necr0potence told me to ask that, because we are trying to do a macro, to cast "X" of wall stone.

Best Regards,
Paulinho
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

waittargetobject expects object, not waittargettile
i do not understand your question
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

Dear Yoko

Post by paulinho4life »

i'll try to explain...

In sphere we can kill people using wall of stone. First we must cast it over the character, and cast another wall to close the character in one X. The character stays in the middle of the X, and then we can cast fire wall, killing him.

But we cant target the character because its impossible "Can't target fields directly on a character" so we have to cast the spell on a tile above the other character feet.

Is there any way to script a macro with that function ? to cast always on a tile above the lasttarget/lastattack

Best rergards
AGRS
Expert!
Posts: 1007
Joined: 2004-04-04 21:40:09
Contact:

Post by AGRS »

Var TARGET = '0x????????' ;Frag Serial
UO.CancelTarget()
UO.WaitTargetTile('0',STR(UO.GetX(TARGET)),STR(UO.GetY(TARGET)),STR(UO.GetZ(TARGET)))
UO.Cast('???')
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

Post by paulinho4life »

thank you AGRS, i love you!
=@@@@ soo much
Last edited by paulinho4life on 2004-12-31 18:58:35, edited 1 time in total.
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

Guys

Post by paulinho4life »

is there any way to put something like lasttarget instead the serial ? Because i dont want to change everytime i start a PvP.
god
Posts: 8
Joined: 2004-08-02 14:11:24
Contact:

Re: Guys

Post by god »

paulinho4life wrote:is there any way to put something like lasttarget instead the serial ? Because i dont want to change everytime i start a PvP.


Don't be silly :)

lasttarget or lastcorpse or lastcontainer and similar points to an object.

You can use your own object like example above or use lasttarget instead of var TARGET.. It's same ...

When you use lasttarget I'm really sure You don't need change your script everytime you start PVP ... Just only target you opponent and he will be stored in lasttarget... and you your macro..
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

Dear God

Post by paulinho4life »

i tryied but it didnt work... I guess im doing something wrong.

Can you please show the modified script ?

sincerely
Paulinho.
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

Post by paulinho4life »

i mean.. the modified code to lasttarget instead TARGET serial..
god
Posts: 8
Joined: 2004-08-02 14:11:24
Contact:

Re: Dear God

Post by god »

paulinho4life wrote:i tryied but it didnt work... I guess im doing something wrong.

Can you please show the modified script ?

sincerely
Paulinho.

Code: Select all

;don't need anymore
;Var TARGET = '0x????????' ;Frag Serial
;not good idea :) Rather not cancel last target :-)
;UO.CancelTarget()
;*lasttarget* points to lasttarget in game and *self* points to you sofirst you can check it with self
UO.WaitTargetTile('0',STR(UO.GetX(lasttarget)),STR(UO.GetY(lasttarget)),STR(UO.GetZ(lasttarget)))
UO.Cast('???')
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

Re: Dear God

Post by paulinho4life »

thank you god i love you!
=@@@@
Last edited by paulinho4life on 2004-12-31 18:58:07, edited 1 time in total.
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

"lasttarget", not lasttarget

lasttarget is a object pointer, not variable
paulinho4life
Posts: 45
Joined: 2004-07-20 00:14:10

Thank You

Post by paulinho4life »

thank you yoko, i love you!
=@@@@
Post Reply