--- deliantra/server/ext/jeweler.ext 2006/12/15 19:29:18 1.1 +++ deliantra/server/ext/jeweler.ext 2006/12/21 22:41:34 1.2 @@ -83,7 +83,9 @@ $chdl->put ($ring->to_object); } -cf::attach_to_type cf::SKILL, cf::SK_JEWELER, +cf::object->attach ( + type => cf::SKILL, + subtype => cf::SK_JEWELER, on_use_skill => sub { my ($sk, $ob, $part, $dir, $msg) = @_; my $pl = $ob; @@ -94,7 +96,6 @@ my $rv = 1; eval { - Jeweler::read_config ($ENV{CROSSFIRE_LIBDIR} . '/jeweler.yaml'); $DEBUG = 1; my $player = $ob->contr; @@ -186,5 +187,6 @@ }; $@ and warn "ERROR: $@\n"; } -; +); +Jeweler::read_config (cf::datadir . '/jeweler.yaml');