hey nick, i'm not really understanding what your trying to say. this may sound stupid, but what do you mean by breakpoint? Greven, i'm not getting any errors. i'm not really sure what's going on. i'm going to have a hard look into it here in a second. i haven't had much time to look at it much.
THanks for all the help
here's the help file i used.
Quote:
1. To install this code:
Copy bank.c and bank.h to your src directory. Add bank.c, bank.h
and bank.o to the appropriate sections in your Makefile.
2. In mud.h, find the pc_data structure, and add the following to it:
int balance;
Find the following:
#define LEVEL_HIGOD LEVEL_GOD
and after it add: #include "bank.h"
find the ACT flags for mobiles, and define
ACT_BANKER using an available slot.
3. In save.c, function fwrite_char, find the following line:
fprintf( fp, "Favor %d\n", ch->pcdata->favor );
Add the following line below it:
fprintf( fp, "Balance %d\n", ch->pcdata->balance );
Locate function load_char_obj, find the following line:
ch->pcdata->wizinvis = 0;
Add the following line below it:
ch->pcdata->balance = 0;
Locate function fread_char, find the following line:
KEY( "Bamfin", ch->pcdata->bamfin, fread_string_nohash( fp ) );
Add the following line above it:
KEY( "Balance", ch->pcdata->balance, fread_number( fp ) );
4. In build.c, find the act_flags for mobs, and add "banker" in the
spot corresponding to the new ACT_BANKER flag you defined in mud.h.
5. Make the appropriate additions to tables.c for
do_balance, do_withdraw, and do_deposit.
6. Add the text from bank.help to your help.are file.
7. Make clean, then recompile.
8. Create commands for balance, deposit, and withdraw.
9. Set the banker flag on a mob of your choice.
|