Page 3 of 3

Re: [guide/help] Macro usefulls

Posted: 03 Aug 2015, 23:01
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});
}

Re: [guide/help] Macro usefulls

Posted: 04 Jun 2016, 05:52
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?

Re: [guide/help] Macro usefulls

Posted: 06 Jul 2019, 01:52
by netrapradhan
Thanks for the information.

-

Posted: 10 Dec 2020, 16:37
by Thomaskek
What error shows up in the middle of your screen when you try the macro? Dont have a target? Also double check that you have 123, and dont have a duplicate.