To Ben leibig Is this the message you were looking for? >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 > > ************************************************************************ GRATUITOUS HOME PAGE PLUG! * CHECK IT OUT AT www.europa.com/~spaz/ * ************************************************************************
This archive was generated by hypermail 2b30 : 12/07/00 PST