Yoko

All sides of Injection
It is currently 2025-12-30 01:21:22

All times are UTC+02:00




Post new topic  Reply to topic  [ 13 posts ] 
Author Message
PostPosted: 2004-12-29 21:19:53 
Offline

Joined: 2004-07-20 00:14:10
Posts: 45
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


Top
   
 Post subject:
PostPosted: 2004-12-29 21:26:04 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
waittargetobject expects object, not waittargettile
i do not understand your question


Top
   
 Post subject: Dear Yoko
PostPosted: 2004-12-29 21:56:56 
Offline

Joined: 2004-07-20 00:14:10
Posts: 45
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


Top
   
 Post subject:
PostPosted: 2004-12-29 22:06:31 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
Var TARGET = '0x????????' ;Frag Serial
UO.CancelTarget()
UO.WaitTargetTile('0',STR(UO.GetX(TARGET)),STR(UO.GetY(TARGET)),STR(UO.GetZ(TARGET)))
UO.Cast('???')


Top
   
 Post subject:
PostPosted: 2004-12-29 22:30:34 
Offline

Joined: 2004-07-20 00:14:10
Posts: 45
thank you AGRS, i love you!
=@@@@ soo much


Last edited by paulinho4life on 2004-12-31 18:58:35, edited 1 time in total.

Top
   
 Post subject: Guys
PostPosted: 2004-12-30 02:02:35 
Offline

Joined: 2004-07-20 00:14:10
Posts: 45
is there any way to put something like lasttarget instead the serial ? Because i dont want to change everytime i start a PvP.


Top
   
 Post subject: Re: Guys
PostPosted: 2004-12-30 02:18:41 
Offline
User avatar

Joined: 2004-08-02 14:11:24
Posts: 8
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..


Top
   
 Post subject: Dear God
PostPosted: 2004-12-30 04:02:10 
Offline

Joined: 2004-07-20 00:14:10
Posts: 45
i tryied but it didnt work... I guess im doing something wrong.

Can you please show the modified script ?

sincerely
Paulinho.


Top
   
 Post subject:
PostPosted: 2004-12-30 19:39:27 
Offline

Joined: 2004-07-20 00:14:10
Posts: 45
i mean.. the modified code to lasttarget instead TARGET serial..


Top
   
 Post subject: Re: Dear God
PostPosted: 2004-12-30 23:15:23 
Offline
User avatar

Joined: 2004-08-02 14:11:24
Posts: 8
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('???')


Top
   
 Post subject: Re: Dear God
PostPosted: 2004-12-30 23:30:08 
Offline

Joined: 2004-07-20 00:14:10
Posts: 45
thank you god i love you!
=@@@@


Last edited by paulinho4life on 2004-12-31 18:58:07, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2004-12-31 12:59:56 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
"lasttarget", not lasttarget

lasttarget is a object pointer, not variable


Top
   
 Post subject: Thank You
PostPosted: 2004-12-31 18:57:12 
Offline

Joined: 2004-07-20 00:14:10
Posts: 45
thank you yoko, i love you!
=@@@@


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 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