Pet Recall Bug Fix 1.0 for EmberMUD By Kyle Boyd Previously, having a pet recall during fighting would crash the mud. To fix: In act_move.c, in the do_recall function, replace: lose = 0.05 * exp_per_level(ch, ch->pcdata->points); gain_exp( ch, 0 - lose ); check_improve(ch,gsn_recall,TRUE,4); sprintf( buf, "You recall from combat! You lose %d exps.\n\r", lose ); send_to_char( buf, ch ); stop_fighting( ch, TRUE ); } with: if(!IS_NPC(ch)) { lose = 0.05 * exp_per_level(ch, ch->pcdata->points); gain_exp( ch, 0 - lose ); check_improve(ch,gsn_recall,TRUE,4); sprintf( buf, "You recall from combat! You lose %d exps.\n\r", lose ); send_to_char( buf, ch ); } stop_fighting( ch, TRUE ); } Kyle Boyd ============================================================================= / ______ _______ ____ _____ ___ __ _ ______ ____ ____ _____ / \ | ____|__ __| _ \ / ____\ / _ \| \ / | ____| / __ \| _ \ / ____\ \ / | |__ | | | |_| | | | |_| | |\/| | |___ | | | | |_| | | / / | ___| | | | ___/| | __| _ | | | | ____| | | | | __/| | ___ \ \ | | | | | | | |___| | | | | | | | |____ | |__| | |\ \| |___| | / / |_| |_| |_| o \_____/|_| |_|_| |_|______|o \____/|_| \_|\_____/ \ \ / ============================================================================ ------------------------------------------------------------------------------ ftp://ftp.game.org/pub/mud FTP.GAME.ORG http://www.game.org/ftpsite/ ------------------------------------------------------------------------------ This file came from FTP.GAME.ORG, the ultimate source for MUD resources. ------------------------------------------------------------------------------