I tried using a snippet to restore char's when they level, here it is..
This is a very basic Auto-Restore code to be put in void gain_exp in update.c under the line that reads advance_level(ch,FALSE );
put this line:
affect_strip(ch,gsn_plague);
affect_strip(ch,gsn_poison);
affect_strip(ch,gsn_blindness);
affect_strip(ch,gsn_sleep);
affect_strip(ch,gsn_curse);
ch->hit = ch->max_hit;
ch->mana = ch->max_mana;
ch->move = ch->max_move;
update_pos( ch);
send_to_char( "<name of god> has give you the power to continue ", ch );
the problem is that my update.c doesn't have the line
advance_level(ch,FALSE );
Does anyone know what to do with this? Or know of another way that works?
Thanks for taking to time to read this
This is a very basic Auto-Restore code to be put in void gain_exp in update.c under the line that reads advance_level(ch,FALSE );
put this line:
affect_strip(ch,gsn_plague);
affect_strip(ch,gsn_poison);
affect_strip(ch,gsn_blindness);
affect_strip(ch,gsn_sleep);
affect_strip(ch,gsn_curse);
ch->hit = ch->max_hit;
ch->mana = ch->max_mana;
ch->move = ch->max_move;
update_pos( ch);
send_to_char( "<name of god> has give you the power to continue ", ch );
the problem is that my update.c doesn't have the line
advance_level(ch,FALSE );
Does anyone know what to do with this? Or know of another way that works?
Thanks for taking to time to read this