followTarget's coordinate

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

setsunaseiei
Human
Human
Posts: 38
Joined: 17 May 2011, 07:09
Noob?: No

followTarget's coordinate

#1 Post by setsunaseiei »

How do I get kore's followTarget's x and y coordinates through macro?
I started with

Code: Select all

@eval($::char->{party}{users}{$master{id}}{pos}{x})
オペンコレ!
PowerStrike
Noob
Noob
Posts: 9
Joined: 11 May 2011, 22:16
Noob?: Yes

Re: followTarget's coordinate

#2 Post by PowerStrike »

Try this:

Code: Select all

    $x = @eval(return $::char->{party}{users}{$::partyUsersID[PARTYMEMBERID]}{pos}{x})
    $y = @eval(return $::char->{party}{users}{$::partyUsersID[PARTYMEMBERID]}{pos}{y})
where PARTYMEMBERID ranges from 0 to PARTYSIZE - 1 ( obviously depending on your party´s size ).


Thanks to Mushroom on Brazilian forum for helping with this.