Page 1 of 1
Character Position
Posted: 21 May 2011, 10:41
by setsunaseiei
DevTeam,
How do you obtain a characters coordinates?
For example, if I use macro plugin, I could easily get it by using the $.pos variable.
However, in the case of different player's coordinates, I really don't know or haven't read yet.
I think it would be analogous to kore's following algo.
So I have two cases,
one : following master, how does kore find his master through party?
two : a player went near me (player coordinates are displayed in pl) but how to obtain via functions?
Thanks, DevTeam. I'm still learning both Kore and Perl on Win32.
Re: Character Position
Posted: 21 May 2011, 17:25
by EternalHarvest
Actor.pm:
Code: Select all
##
# Hash* $Actor->{pos}
#
# The position where this actor was, before its last movement.
# This is a reference to a hash, containing the items 'x' and 'y'.
##
# Hash* $Actor->{pos_to}
#
# The position where this actor is moving to, or (if the actor has finished moving),
# where it currently is. This is a reference to a hash, containing the items 'x' and 'y'.
Information on players is stored in instances of Actor::Player class.
Re: Character Position
Posted: 15 Jul 2011, 18:46
by barakuda
EternalHarvest wrote:Actor.pm:
Code: Select all
##
# Hash* $Actor->{pos}
#
# The position where this actor was, before its last movement.
# This is a reference to a hash, containing the items 'x' and 'y'.
##
# Hash* $Actor->{pos_to}
#
# The position where this actor is moving to, or (if the actor has finished moving),
# where it currently is. This is a reference to a hash, containing the items 'x' and 'y'.
Information on players is stored in instances of Actor::Player class.
What is the possible codes for that?
Re: Character Position
Posted: 06 Aug 2012, 17:23
by ever_boy_
barakuda wrote:EternalHarvest wrote:Actor.pm:
Code: Select all
##
# Hash* $Actor->{pos}
#
# The position where this actor was, before its last movement.
# This is a reference to a hash, containing the items 'x' and 'y'.
##
# Hash* $Actor->{pos_to}
#
# The position where this actor is moving to, or (if the actor has finished moving),
# where it currently is. This is a reference to a hash, containing the items 'x' and 'y'.
Information on players is stored in instances of Actor::Player class.
What is the possible codes for that?
Code: Select all
$x = @eval ($::players{$::playersID[$.lastMatch3]}->{pos_to}{x})
$y = @eval ($::players{$::playersID[$.lastMatch3]}->{pos_to}{y})
Re: Character Position
Posted: 22 Jan 2013, 06:53
by barakuda
$x = @eval ($::players{$::playersID[$.lastMatch3]}->{pos_to}{x})
$y = @eval ($::players{$::playersID[$.lastMatch3]}->{pos_to}{y})
Not working