[guide/help] Macro usefulls

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

Moderator: Moderators

Message
Author
vitriol
Plain Yogurt
Plain Yogurt
Posts: 61
Joined: 19 Apr 2011, 23:26
Noob?: No

Re: [guide/help] Macro usefulls

#21 Post by vitriol »

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});
}

Liposo
Plain Yogurt
Plain Yogurt
Posts: 59
Joined: 20 May 2013, 02:00
Noob?: No

Re: [guide/help] Macro usefulls

#22 Post by Liposo »

Mortimal wrote: 3. Check if cell is Walkable (and castable)

Code: Select all

$i = @eval($::field->isWalkable(<any x>, <any y>))
$i - bool
How about additionally check if cell is occupied by monster/npc/player?

netrapradhan
Noob
Noob
Posts: 1
Joined: 06 Jul 2019, 01:29
Noob?: No

Re: [guide/help] Macro usefulls

#23 Post by netrapradhan »

Thanks for the information.

Post Reply