--- deliantra/server/ext/nimbus.ext 2006/12/15 19:29:18 1.1 +++ deliantra/server/ext/nimbus.ext 2006/12/30 10:16:10 1.3 @@ -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; @@ -80,14 +80,14 @@ cf::localdir, cf::playerdir, $ob->name, "nimbus"; if ($ob->map->path ne $path) { - my $nimbus = cf::map::find "/schmorp/nimbus"; + my $nimbus = cf::map::find_map "/schmorp/nimbus"; $nimbus->path ($path); $nimbus->unique (1); $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) = @_;