… | |
… | |
47 | |
47 | |
48 | my $name = $who->name; |
48 | my $name = $who->name; |
49 | |
49 | |
50 | if ($args ne "" && $name ne $args) { |
50 | if ($args ne "" && $name ne $args) { |
51 | if (my $other = cf::player::find_active $args) { |
51 | if (my $other = cf::player::find_active $args) { |
52 | if ($other->ob->map eq $who->map |
52 | if ($other->ob->map == $who->map |
53 | && abs ($other->ob->x - $who->x) <= 1 |
53 | && abs ($other->ob->x - $who->x) <= 1 |
54 | && abs ($other->ob->y - $who->y) <= 1) { |
54 | && abs ($other->ob->y - $who->y) <= 1) { |
55 | $who->message ("Following player '$args', to stop, type: 'follow"); |
55 | $who->message ("Following player '$args', to stop, type: 'follow"); |
56 | $other->ob->message ("$name is now following your every step..."); |
56 | $other->ob->message ("$name is now following your every step..."); |
57 | $follow{$name} = [ |
57 | $follow{$name} = [ |