Page 1 of 1
could you make waittargettile to expect an obj's serial inst
Posted: 2004-12-29 21:19:53
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
Posted: 2004-12-29 21:26:04
by Yoko
waittargetobject expects object, not waittargettile
i do not understand your question
Dear Yoko
Posted: 2004-12-29 21:56:56
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
Posted: 2004-12-29 22:06:31
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('???')
Posted: 2004-12-29 22:30:34
by paulinho4life
thank you AGRS, i love you!
=@@@@ soo much
Guys
Posted: 2004-12-30 02:02:35
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.
Re: Guys
Posted: 2004-12-30 02:18:41
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..
Dear God
Posted: 2004-12-30 04:02:10
by paulinho4life
i tryied but it didnt work... I guess im doing something wrong.
Can you please show the modified script ?
sincerely
Paulinho.
Posted: 2004-12-30 19:39:27
by paulinho4life
i mean.. the modified code to lasttarget instead TARGET serial..
Re: Dear God
Posted: 2004-12-30 23:15:23
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('???')
Re: Dear God
Posted: 2004-12-30 23:30:08
by paulinho4life
thank you god i love you!
=@@@@
Posted: 2004-12-31 12:59:56
by Yoko
"lasttarget", not lasttarget
lasttarget is a object pointer, not variable
Thank You
Posted: 2004-12-31 18:57:12
by paulinho4life
thank you yoko, i love you!
=@@@@