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});
}
[guide/help] Macro usefulls
Moderator: Moderators
Re: [guide/help] Macro usefulls
How about additionally check if cell is occupied by monster/npc/player?Mortimal wrote: 3. Check if cell is Walkable (and castable)$i - boolCode: Select all
$i = @eval($::field->isWalkable(<any x>, <any y>))
-
- Noob
- Posts: 1
- Joined: 06 Jul 2019, 01:29
- Noob?: No
Re: [guide/help] Macro usefulls
Thanks for the information.
-
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.