--- deliantra/server/ext/reseller.ext 2007/06/11 21:38:13 1.7 +++ deliantra/server/ext/reseller.ext 2007/09/30 16:24:30 1.8 @@ -121,7 +121,7 @@ audit_log ($who, 'removes', ob2info ($item)); $item->flag (cf::FLAG_UNPAID, 0); $item->remove; - $item->insert_ob_in_ob ($who); + $who->insert ($item); next; } @@ -173,13 +173,13 @@ if ($what->type == cf::MONEY) { $who->message ("The shopkeeper says: Sorry, you can't sell money here.", cf::NDI_BROWN); - $what->insert_ob_in_ob ($who); + $who->insert ($what); return cf::override; } if (!$what->flag (cf::FLAG_IDENTIFIED) && $what->need_identify) { $who->message ("The shopkeeper says: Sorry, you can't sell unidentified stuff here.", cf::NDI_BROWN); - $what->insert_ob_in_ob ($who); + $who->insert ($what); return cf::override; } @@ -189,7 +189,7 @@ if ($name =~ m/\S/) { unless ($name =~ m/\d+\s*\S+/) { $who->message ("The shopkeeper says: Sorry, I don't recognize '$name' as currency. Please name your item like '10 royalty' or '10 platinum 2 silver'", cf::NDI_BROWN); - $what->insert_ob_in_ob ($who); + $who->insert ($what); return cf::override; } @@ -197,7 +197,7 @@ if ($aliases{lc $2} or $unit{lc $2}) { $value += $1 * ($unit{lc $2} ? $unit{lc $2} : $unit{$aliases{lc $2}}); } else { - $what->insert_ob_in_ob ($who); + $who->insert ($what); $who->message ("The shopkeeper says: I don't know the currency '$2'", cf::NDI_BROWN); return cf::override; } @@ -207,7 +207,7 @@ } if ($value < 0) { - $what->insert_ob_in_ob ($who); + $who->insert ($what); $who->message ("The shopkeeper says: You can't sell something for a negative value: $value", cf::NDI_BROWN); return cf::override; } @@ -219,7 +219,7 @@ "The shopkeeper says: You need " . cf::cost_string_from_value ($fee) . " to pay the 1% fee for this item", cf::NDI_BROWN ); - $what->insert_ob_in_ob ($who); + $who->insert ($what); return cf::override; } else { $who->message (