--- deliantra/server/ext/reseller.ext 2008/05/03 11:14:50 1.12 +++ deliantra/server/ext/reseller.ext 2008/08/31 08:54:19 1.13 @@ -50,13 +50,16 @@ return 0; } - $who->reply ($npc, "You sold:\n", cf::NDI_BROWN); + my $reply = "You sold:\n\n"; + for (keys %$hissells) { my $n = $_; $n =~ s/\s*\(unpaid\)//g; - $who->reply ($npc, "$n for " . cf::cost_string_from_value ($hissells->{$_}), cf::NDI_BROWN); + $reply .= " B<$n> (for " . cf::cost_string_from_value ($hissells->{$_}) . ")\n"; } + $who->reply ($npc, $reply); + 0 }; @@ -75,7 +78,7 @@ $sum += $_ for values %$hissells; $who->pay_player ($sum); - $who->reply ($npc, "Here are the " . cf::cost_string_from_value ($sum) . " for your sales"); + $who->reply ($npc, "Here are the " . cf::cost_string_from_value ($sum) . " for your sales."); audit_log ($who, 'collects', "$sum silver"); @@ -190,7 +193,7 @@ unless ($name =~ m/\d+\s*\S+/) { give_back_with_message ($who, $what, "The shopkeeper says: Sorry, I don't recognize '$name' as currency. " - . "Please name your item like '17 platinum' or '10 gold 8 silver'"); + . "Please name your item like '17 platinum' or '10 gold 8 silver.'"); return cf::override; } @@ -213,15 +216,15 @@ give_back_with_message ($who, $what, "Sorry, you can't just sell stuff without assigning a price to it! " . "Please name your item like '17 platinum' or '10 gold 8 silver' " - . "and drop it again. (To rename the item use the 'rename' " - . "context menu item in the inventory)." + . "and drop it again. (To rename the item use the B " + . "entry in the inventory item popup menu)." ); 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"); + "The shopkeeper says: You can't sell something for a negative value: $value."); return cf::override; } @@ -230,12 +233,12 @@ unless ($who->pay_amount ($fee)) { give_back_with_message ($who, $what, "The shopkeeper says: You need " . cf::cost_string_from_value ($fee) - . " to pay the 1% fee for this item"); + . " to pay the 1% fee for this item."); return cf::override; } else { $who->message ( "The shopkeeper says: Ok, got the fee of " . cf::cost_string_from_value ($fee) - . " for the item", + . " for the item.", cf::NDI_BROWN ); }