I heard that you can change the text outputs like i.e i want to change 'You are too exhausted' to something else when i don't have any more mv. I opened fight.c and scrolled to the end of the file, changed 'You are too exhausted' to 'THIS IS A TEST' . saved it and make clean then make. Ran the mud, ran around room to room for about 2 minutes but after i lost all my mv it still shows You are too exhausted, someone help me please? Thanks
SmaugFUSS Fight.c help
Posted by Lt_noodle on Thu 09 Jun 2005 01:27 AM — 9 posts, 34,844 views.
okay to show you guys what i changed here's what i did.
if ( ch->move <= 0 ) {
send_to_char( "You are too exhausted!\n\r", ch );
return;
=============
now what i changed it to
if ( ch->move <= 0 ) {
send_to_char( "THIS IS A TEST!\n\r", ch );
return;
if ( ch->move <= 0 ) {
send_to_char( "You are too exhausted!\n\r", ch );
return;
=============
now what i changed it to
if ( ch->move <= 0 ) {
send_to_char( "THIS IS A TEST!\n\r", ch );
return;
Are you sure that once you recompiled you were actually running the new .exe file and not the old one? That's the first thing that comes to mind, but it's early so...
i gotta check that out
if your on windows, I'd suggest using Cygwin to run the MUD. I had a problem similar to that with wearloc issues, and if you make a copied version of the server, on remake, if you use the copied .exe, the effects won't take.
I do use cygwin. After i changed the .c files i did a make clean then make, ran the game and still the same.
Hmm.
Well without knowing the specifics of what you're doing and how, maybe something simpler can serve as verification.
Check the date of the executable you are using. Is it correct for the time you compiled it, or does it clearly predate the last time you supposedly recompiled it? If so, you're obviously not using the new file (for whatever reason).
Might be something worth checking. Again, just an idea off the top of my head.
Well without knowing the specifics of what you're doing and how, maybe something simpler can serve as verification.
Check the date of the executable you are using. Is it correct for the time you compiled it, or does it clearly predate the last time you supposedly recompiled it? If so, you're obviously not using the new file (for whatever reason).
Might be something worth checking. Again, just an idea off the top of my head.
Also may want to grep for the string to be sure that where its printing from is not else where in the file, as I've done this many a time.
The spot you edited is for movement drain during combat - not during normal movement. Your test message will show up if you get into a fight and manage to eat up your movement points. You just need to find the other spot in the code where normal movement is checked against reaching 0 and displays the message to you.