Weapon Identification Snippet. Original Author: Joe Fabiano (rinthos@yahoo.com.) Ported to SmaugWiz by Zanthoris Installation Instructions ------------------------- 1. In magic.cpp, look for the spell_identify function and below that look for: case ITEM_WEAPON: ch_printf( ch, "Damage is %d to %d (average %d)%s\n\r", obj->value[1], obj->value[2], ( obj->value[1] + obj->value[2] ) / 2, IS_OBJ_STAT( obj, ITEM_POISONED) ? ", and is poisonous." : "." ); break; RIGHT BEFORE the break; add the following: /* Begin Weapon Identification Snippet by Joe Fabiano */ if (obj->value[3] == 0) ch->SendTextf("Weapon Type: Pugilism\n\r" ); else if (obj->value[3] == 1) ch->SendTextf("Weapon Type: Long Blade\n\r" ); else if (obj->value[3] == 2) ch->SendTextf("Weapon Type: Short Blade\n\r" ); else if (obj->value[3] == 3) ch->SendTextf("Weapon Type: Long Blade\n\r" ); else if (obj->value[3] == 4) ch->SendTextf("Weapon Type: Flexible Arm\n\r" ); else if (obj->value[3] == 5) ch->SendTextf("Weapon Type: Talonous Arm\n\r" ); else if (obj->value[3] == 6) ch->SendTextf("Weapon Type: Pugilism\n\r" ); else if (obj->value[3] == 7) ch->SendTextf("Weapon Type: Bludgeon\n\r" ); else if (obj->value[3] == 8) ch->SendTextf("Weapon Type: Bludgeon\n\r" ); else if (obj->value[3] == 9) ch->SendTextf("Weapon Type: Misc\n\r" ); /* What type would a v3 of 9 make it? Not sure-Joe*/ else if (obj->value[3] == 10) ch->SendTextf("Weapon Type: Pugilism\n\r" ); else if (obj->value[3] == 11) ch->SendTextf("Weapon Type: Short Blade\n\r" ); else if (obj->value[3] == 12) ch->SendTextf("Weapon Type: Pugilism\n\r" ); else if (obj->value[3] >= 13) ch->SendTextf("Weapon Type: Missile Weapon\n\r" ); /* that covers all of them -Joe */ 2. Make clean, then recompile. *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= This snippet was written for and tested on SmaugWiz version 2.01, I cannot guarantee that it will work in previous versions without some modification (though I expect it will). If you have problems with this snippet let me know! -=Zanthoris=- zanthoris@hotmail.com telnet:\\zanthoris.dhs.org:4000 http:\\zanthoris.home.dhs.org