Openkore.com
http://forums.openkore.com/

Character Position
http://forums.openkore.com/viewtopic.php?f=37&t=14847
Page 1 of 1

Author:  setsunaseiei [ 21 May 2011, 10:41 ]
Post subject:  Character Position

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.

Author:  EternalHarvest [ 21 May 2011, 17:25 ]
Post subject:  Re: Character Position

Actor.pm:
Code:
##
# 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.

Author:  barakuda [ 15 Jul 2011, 18:46 ]
Post subject:  Re: Character Position

EternalHarvest wrote:
Actor.pm:
Code:
##
# 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?

Author:  ever_boy_ [ 06 Aug 2012, 17:23 ]
Post subject:  Re: Character Position

barakuda wrote:
EternalHarvest wrote:
Actor.pm:
Code:
##
# 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:
$x = @eval ($::players{$::playersID[$.lastMatch3]}->{pos_to}{x})
$y = @eval ($::players{$::playersID[$.lastMatch3]}->{pos_to}{y})

Author:  barakuda [ 22 Jan 2013, 06:53 ]
Post subject:  Re: Character Position

Quote:
$x = @eval ($::players{$::playersID[$.lastMatch3]}->{pos_to}{x})
$y = @eval ($::players{$::playersID[$.lastMatch3]}->{pos_to}{y})


Not working

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/