Openkore.com

OpenKore Forums
It is currently 18 Nov 2018, 15:14

All times are UTC - 5 hours [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Character Position
PostPosted: 21 May 2011, 10:41 
Offline
Human
Human

Joined: 17 May 2011, 07:09
Posts: 38
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.

_________________
オペンコレ!


Top
 Profile  
 
 Post subject: Re: Character Position
PostPosted: 21 May 2011, 17:25 
Offline
Developers
Developers

Joined: 05 Dec 2008, 05:42
Posts: 1811
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.


Top
 Profile  
 
 Post subject: Re: Character Position
PostPosted: 15 Jul 2011, 18:46 
Offline
Noob
Noob

Joined: 25 Jun 2008, 21:23
Posts: 15
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?


Top
 Profile  
 
 Post subject: Re: Character Position
PostPosted: 06 Aug 2012, 17:23 
Offline
Developers
Developers

Joined: 06 Jul 2012, 13:44
Posts: 310
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})


Top
 Profile  
 
 Post subject: Re: Character Position
PostPosted: 22 Jan 2013, 06:53 
Offline
Noob
Noob

Joined: 25 Jun 2008, 21:23
Posts: 15
Quote:
$x = @eval ($::players{$::playersID[$.lastMatch3]}->{pos_to}{x})
$y = @eval ($::players{$::playersID[$.lastMatch3]}->{pos_to}{y})


Not working


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 © 2000, 2002, 2005, 2007 phpBB Group