Godwars and autostance

Started by
0 comments, last by xanin 15 years, 10 months ago
i'm having a bit of a problem, trying to figure out how to get my autostance command to actually save to the pfile. I've searched through the code for anything that would look similar, but couldn't find any. Could someone point me in the right direction, give me a hint? thanks
Advertisement
You'd probably have better luck asking over on something like the MudConnector forums, but I'll try to answer this.
Assuming youre using this : http://www.mudmagic.com/codes/dl/1460/autostance.txt

(modify it as needbe if youre not..)

In save.c

Find the function fwrite_char(...

find:
fprintf( fp, "Sex %d\n", ch->sex );

duplicate that line, modify at such:
fprintf( fp, "AutoStance %d\n", ch->stance[AUTODROP]);


Next find the function fread_char(...

find:
KEY( "Armor", ch->armor, fread_number( fp ) );

duplicate it and modify accordingly:
KEY( "AutoStance", ch->stance[AUTODROP]);, fread_number( fp ) );

This topic is closed to new replies.

Advertisement