Hi ! > I need to know how would I go about converting the number ASTERISK(ch) > would come up with into that many *'s, without massive amounts of saying > if (ASTERISK(ch) == 50) blah blah > if (ASTERISK(ch) == 49) blah blah > if (ASTERISK(ch) == 48) blah blah etc.......? > > If anyone understands what I'm trying to say please help :~( Try this: <blah> char *tmp; /* You could also use 51, but this way we are on the safe side (sometimes the current hits are the higher ones) */ int i; <blah> for (i = 0; i < 64; i++) tmp[i] = '*'; tmp[ASTERISK(ch)] = 0; /* ASTERISK(ch)+1 ??? */ sprintf(buf,"[ %s ]\n\r", tmp); send_to_char(buf, ch); <blah> Hope this helps :) Alexander. From firstname.lastname@example.org Tue, 23 Jul 96 13:42:59 EDT X-SystemInfo: MyE-Mail: EMail X-Message-No: 2854 (database) From: goamkows <email@example.com> To: circle <firstname.lastname@example.org> Subject: patched up stock Date: Tue, 23 Jul 96 13:42:01 Message-ID: <CMM.email@example.com> Reply-To: firstname.lastname@example.org (goamkows) X-POP3-Rcpt: lk4150@per Return-Path: email@example.com Received: from flipper.pvv.ntnu.no (firstname.lastname@example.org [188.8.131.52]) by per.cybercity.dk (8.6.12/8.6.12) with ESMTP id TAA15847 for <email@example.com>; Tue, 23 Jul 1996 19:27:53 +0200 Received: (from majordomo@localhost) by flipper.pvv.ntnu.no (8.7.5/8.6.12) id TAA03246 for circle-outgoing; Tue, 23 Jul 1996 19:38:51 +0200 Received: from otis.cla.sc.edu (otis.cla.sc.edu [184.108.40.206]) by flipper.pvv.ntnu.no (8.7.5/8.6.12) with SMTP id TAA03227 for <firstname.lastname@example.org>; Tue, 23 Jul 1996 19:38:27 +0200 Received: from kirk.geog.sc.edu by otis.cla.sc.edu (4.1/SMI-4.1)id AA08105; Tue, 23 Jul 96 13:38:22 EDT Received: from janeway.geog.sc.edu by kirk.geog.sc.edu (4.1/SMI-4.1)id AA00265; Tue, 23 Jul 96 12:33:28 EDT Sender: email@example.com Precedence: bulk ok, ready to go, except for one problem... (see the end of this letter) here's what with it - if you don't like something, comment it out :P from the ftp site (ftp2.circlemud.org) : * alias (be sure to create the /lib/plralias subdir - i included the readme file for aliases, so read it! :) * autoeq.pl11 * cleric.c * do_scan.c * ident * new.do_who * newbie_eq * portal spell (using object 31 as the portal - see the portal.spell file included with this distribution) * relocate spell * wpn.w.spell from the snippets page (http://cspo.queensu.ca/~fletcher/Circle/Snippet/) : * abbreviations * autolooting from me: * Fly spell. * Immorts can drop cursed eq. * Immorts can cast spells in no-magic rooms. * Immune_fear bit (for those kender lovers out there :) * New directions (nw, ne, sw, se, in and out - the latter two being intended for 4 dimensional areas, but can be used for other things if you prefer ;) * Primitive language support - basically, only the say command is really language specific. You will need to tinker with do_lang_gsay in act.comm.c, as well as create a do_speaking command (or something to let the player change the language they are currently speaking). Also, you will probably want to set it so that they get says in the clear if the know the language at all, not just if they are currently speaking it. Like i said - *primitive* language support ;P from the mailing list: * Newbie flag for eq which junks newbie eq when it is dropped. from malcor: * grouping multiple objects (e.g. ( 4) A pair of wings is sitting here.) from Phoenix MUD: * autosplit from "Franco" (on the circle mud mailing list) * fear spell bug fixes: * in do_advance, the message when reducing a charcter's level now goes to the victim, not the person doing the advancing. * immortals were allowed to find invisible immortals by doing a where obj then stating any obj that was carried or worn by someone. * the time was off for the amount of time a person has played in the stat command. i'll root out the specific credits and include them in the README file, and tell people to put them in their credits file on their mud. don't ask about oasis or other OLC utilities - you'll have to put them in yourself :P otherwise, this is the last call for stuff to see in this patched up stock... the minor bug i mentioned is that memory fault problem i posted about the other day. i tried increasing MAX_SKILLS but appearently missed some stuff that goes along with this. haven't figured out what all has to be done to accomodate this, but as soon as i do, i'll put it in and upload it :) =============================================================================== the count | "There is no mistake, | | there has been no mistake, | firstname.lastname@example.org | and there shall be no mistake." | No, my mail reader cannot handle MIME stuff| -Duke of Wellington (1769-1852) | so please don't send me any MIME stuff :P | | ------------------------------------------------------------------------------- "The best way to keep one's word is not to give it" - Napoleon | ------------------------------------------------------------------------------- Please, please provide me with my daily helping of preposterous and prentitious platitudes.. waiter.
This archive was generated by hypermail 2b30 : 12/07/00 PST