--- deliantra/server/ext/reseller.ext 2008/09/22 01:33:09 1.14 +++ deliantra/server/ext/reseller.ext 2009/08/20 18:27:21 1.16 @@ -158,7 +158,6 @@ sub give_back { my ($who, $what) = @_; $who->insert ($what); - $who->esrv_send_item ($what); } sub give_back_with_message { @@ -222,6 +221,13 @@ return cf::override; } + if ($value > 100 ** 4) { # also for overflow prevention + give_back_with_message ($who, $what, + "The shopkeeper says: You can't sell something for such a high " + . "value. Please keep it below 100 royalty."); + return cf::override; + } + if ($value < 0) { give_back_with_message ($who, $what, "The shopkeeper says: You can't sell something for a negative value: $value.");