Yoko
http://forum.yoko.com.ua/

could you make waittargettile to expect an obj's serial inst
http://forum.yoko.com.ua/viewtopic.php?f=1&t=2405
Page 1 of 1

Author:  paulinho4life [ 2004-12-29 21:19:53 ]
Post subject:  could you make waittargettile to expect an obj's serial inst

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

Author:  Yoko [ 2004-12-29 21:26:04 ]
Post subject: 

waittargetobject expects object, not waittargettile
i do not understand your question

Author:  paulinho4life [ 2004-12-29 21:56:56 ]
Post subject:  Dear Yoko

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

Author:  AGRS [ 2004-12-29 22:06:31 ]
Post subject: 

Var TARGET = '0x????????' ;Frag Serial
UO.CancelTarget()
UO.WaitTargetTile('0',STR(UO.GetX(TARGET)),STR(UO.GetY(TARGET)),STR(UO.GetZ(TARGET)))
UO.Cast('???')

Author:  paulinho4life [ 2004-12-29 22:30:34 ]
Post subject: 

thank you AGRS, i love you!
=@@@@ soo much

Author:  paulinho4life [ 2004-12-30 02:02:35 ]
Post subject:  Guys

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

Author:  god [ 2004-12-30 02:18:41 ]
Post subject:  Re: Guys

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..

Author:  paulinho4life [ 2004-12-30 04:02:10 ]
Post subject:  Dear God

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

Can you please show the modified script ?

sincerely
Paulinho.

Author:  paulinho4life [ 2004-12-30 19:39:27 ]
Post subject: 

i mean.. the modified code to lasttarget instead TARGET serial..

Author:  god [ 2004-12-30 23:15:23 ]
Post subject:  Re: Dear 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:
;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('???')

Author:  paulinho4life [ 2004-12-30 23:30:08 ]
Post subject:  Re: Dear God

thank you god i love you!
=@@@@

Author:  Yoko [ 2004-12-31 12:59:56 ]
Post subject: 

"lasttarget", not lasttarget

lasttarget is a object pointer, not variable

Author:  paulinho4life [ 2004-12-31 18:57:12 ]
Post subject:  Thank You

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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/