Re: converting into golds and silvers

From: MUD (mud@rsl.park.tartu.ee)
Date: 02/22/96


I would have made a routine that returns a pointer to a string, containing
the coins converted into amound of gold, silver and coppers, so you 
can use it like sprintf(buf, "Ok, hand over %s.\r\n", convert_gold(amount));
and send_to_char(buf); So, you can also use it when displaying gold one
carries, as sprintf(buf, "You have %s.", convert_gold(ch->gold /* was there
a member like gold in struct char_data? */ ) );
Of course, the convert_gold() routine is to be implemented first :)


regards,
margus



This archive was generated by hypermail 2b30 : 12/07/00 PST