1) you never assign tch, thus it is a NULL pointer, thus you get core. 2) RTFC. check out the guild guard. 3) when a command is run ch = the person running the command 4) all those specials in spec_procs.c that use ch for the calling char 1st check to see if there is no command. still, they SHOULDN'T be using this variable. they SHOULD be type casting *me into a char_data pointer and using that. silly diku. 5) pick 1 or 2 [thingies] for your subject. having 5 should just be shortened to [TWINK] --Angus ______________________________ Forward Header __________________________________ Subject: [Code][MobProc][Help][Question] Banker Proc Author: INTERNET:lethalaccess@deathsdoor.com at CSERVE Date: 3/18/98 3:53 PM SPECIAL(banker) { struct char_data *tch; int amount; if (!AWAKE(ch) || FIGHTING(ch)) return FALSE; if (CMD_IS("balance")) { sprintf(buf, "|R%s tells you|W: '|R", GET_NAME(ch)); if (GET_BANK_GOLD(tch) > 0) { sprintf(buf, "%sYour current balance is %d coins.|W'|n\r\n", buf, GET_BANK_GOLD(tch)); } else { . . . +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST