Openkore.com

OpenKore Forums
It is currently 25 May 2018, 22:04

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: [guide/help] Macro usefulls
PostPosted: 03 Aug 2015, 23:01 
Offline
Plain Yogurt
Plain Yogurt

Joined: 19 Apr 2011, 23:26
Posts: 63
you should look at Globals.pm for the list of players on screen. And then loop for each player and compare the coordinates. that file also contains everything else you requested as well but it's easier with plugins imho since you can use functions like this one in Actors/Item.pm

# $ActorItem->equippedInSlot(slot)
# slot: slot to check
# Returns: wheter item is equipped in $slot
sub equippedInSlot {
my ($self, $slot) = @_;
return ($self->{equipped} & $equipSlot_rlut{$slot});
}


Top
 Profile  
 
 Post subject: Re: [guide/help] Macro usefulls
PostPosted: 04 Jun 2016, 05:52 
Offline
Plain Yogurt
Plain Yogurt

Joined: 20 May 2013, 02:00
Posts: 63
Mortimal wrote:
3. Check if cell is Walkable (and castable)
Code:
$i = @eval($::field->isWalkable(<any x>, <any y>))

$i - bool


How about additionally check if cell is occupied by monster/npc/player?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2, 3

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