On Thu, 1 Aug 1996, Brian Williams - Nashak wrote: Well look at your code, and ask yourself questions. vict is dangling..pointing to the moon. ...use vict = get_char_vis...etc...check the code..its all over the place. Hint: always -look- at existing code that is somewhat similar. > here is whole do_guild: > ACMD(do_guild) > { > struct char_data *vict; > *buf = '\0'; > > if (!IS_NPC(vict) && !PRF_FLAGGED(vict, PRF_GUILD)) { > sprintf(buf, "$N is now a guild member."); > send_to_char(buf, ch); > send_to_char("You are now a guild member.", vict); > SET_BIT(PRF_FLAGS(vict), PRF_GUILD); > } else { > send_to_char("They are already in a guild.", ch); > return; > } > } > > thanks in advance > > > Nashak Brian Williams The Realms of Luminari > nashak@darkstr.com bmw@efn.org darkstr.com 6969 > > > > +-----------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | > +-----------------------------------------------------------+ > _/_/_/_/_/_/_/_/_/_/ _/ Classic@Cloud9.net _/ tpedersen@kraft.com _/ http://www.cloud9.net/~classic _/_/_/_/_/_/_/_/_/_/ +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/07/00 PST