Jump to content
  • Advertisement
Sign in to follow this  
Gutlan

Godwars and autostance

This topic is 3797 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
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 ) );

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!