Sign in to follow this  

Godwars and autostance

This topic is 3489 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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 ) );

Share this post


Link to post
Share on other sites

This topic is 3489 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this