--- deliantra/server/ext/nimbus.ext 2006/12/15 19:29:18 1.1 +++ deliantra/server/ext/nimbus.ext 2006/12/21 22:41:34 1.2 @@ -53,7 +53,7 @@ # called when the player will likely die (modulo explore mode) # but before any stats/exp is changed -cf::attach_to_players +cf::player->attach ( on_death => sub { my ($pl) = @_; my $ob = $pl->ob; @@ -87,7 +87,7 @@ $pl->savebed ($path, 24, 12); } }, -; +); sub teleport { my ($pl, $map, $x, $y) = @_; @@ -107,7 +107,7 @@ $portal->destroy; } -cf::register_attachment nimbus_exit => +cf::object::attachment nimbus_exit => on_trigger => sub { my ($self, $ob) = @_;