Gain Level Displays 1.0 Code by Dennis Reichel (dennis@starlifter.reichel.net) Notes: I found this code on the ROM Mailing list, and since it appears to fit almost perfectly into Ember, I thought I'd put it up on the site for all to enjoy. I HAVE NOT tested this to see if it works yet, though I intend to soon. If it helps you make your decision, the older code that is used to show where this should be placed is IDENTICLE to the code in the function void do_groups. Install Notes: The functions do_gain and do_groups can both be found in the file SKILLS.C. The new code is marked with "++" signs, so REMEMBER TO REMOVE THE ++ SIGNS and any other NON-ESSENTIAL CODE before installing. This appears to be a pretty easy install. -= Rindar (clogar@concentric.net) * * * * If you are weary from players complaining they spent 20 trains to gain skills they can't use until they are level 900 :) You can add something like this to do_gain and do_groups, and it will display the levels that char's class can use the skills in that group: send_to_char( "Type 'groups all' or 'info all' for a full listing.\n\r",ch); return; } for (sn = 0; sn < MAX_IN_GROUP; sn++) { if (group_table[gn].spells[sn] == NULL) break; ++ sprintf(buf,"[%2d] %-20s ", (skill_lookup(group_table[gn].spells[sn]) < 0 ) ? 0 : ++ skill_table[skill_lookup(group_table[gn].spells[sn])].skill_level[ch->class], ++ group_table[gn].spells[sn]); send_to_char(buf,ch); if (++col % 3 == 0) send_to_char("\n\r",ch); } if ( col % 3 != 0 ) send_to_char( "\n\r", ch ); } /* checks for skill improvement */ As always, if there is a cleaner way to do this, I'd appreciate knowing it. Dennis ============================================================================= / ______ _______ ____ _____ ___ __ _ ______ ____ ____ _____ / \ | ____|__ __| _ \ / ____\ / _ \| \ / | ____| / __ \| _ \ / ____\ \ / | |__ | | | |_| | | | |_| | |\/| | |___ | | | | |_| | | / / | ___| | | | ___/| | __| _ | | | | ____| | | | | __/| | ___ \ \ | | | | | | | |___| | | | | | | | |____ | |__| | |\ \| |___| | / / |_| |_| |_| 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. ------------------------------------------------------------------------------