--- deliantra/server/ext/rent.ext 2006/12/15 19:29:18 1.1 +++ deliantra/server/ext/rent.ext 2006/12/21 22:41:34 1.2 @@ -150,7 +150,8 @@ $pl->ob->reply (undef, "I am sorry to hear that, we will immediately stop charging you for your apartment, of course."); }; -cf::attach_to_players prio => 100, +cf::player->attach ( + prio => 100, on_login => sub { my ($pl) = @_; @@ -165,9 +166,10 @@ } update_balance $pl; - }; + }, +); -cf::register_map_attachment rent => +cf::map::attachment rent => on_enter => sub { my ($map, $pl, $x, $y) = @_;