const char *off_bit_name( int vector )
{
static char buf[512] = "\0\0\0\0\0\0\0";
if ( vector & OFF_AREA_ATTACK )
strcat( buf, " area attack" );
if ( vector & OFF_BACKSTAB )
strcat( buf, " backstab" );
…
diff -ur old/act_info.c new/act_info.c
— old/act_info.c Mon Sep 14 17:46:16 1998
+++ new/act_info.c Mon Sep 14 17:46:53 1998
@@ -1027,7 +1027,8 @@
*/
ch_printf( ch, "%s", ch->in_room->name );
- if ( IS_IMMORTAL( ch ) && ( IS_NPC( ch ) || IS_SET( ch->act, PLR_HOLYLIGHT ) ) )
+ if ( (IS_IMMORTAL(ch) && (IS_NPC(ch) || IS_SET(ch->act,PLR_HOLYLIGHT)))
+ || IS_BUILDER(ch, ch->in_room->area) )
{
ch_printf( ch, " [Room %d]", ch->in_room->vnum );
}
@@ -2551,7 +2594,10 @@
*( ++point ) = '\0';
buf[0] = UPPER( buf[0] );
+ if ( to->desc != NULL )
write_to_buffer( to->desc, buf, point - buf );
+ else if ( MOBtrigger )
+ mp_act_trigger( buf, to, ch, arg1, arg2, TRIG_ACT );
if ( ( type == TO_VICT ) || ( type == TO_CHAR ) )
return;
Once you've got things compiling to your liking, just do a "make dep" and replace everything below the comment with what it spits out.
Sounds like you're making good progress! Let me know how you'd like to go from here… probably the easiest way is to give you a branch directory to play with. Alternately, you can upload your changes to the file area and I can snag them from there. Whatever works, I'm easy.
Also, if you haven't used any C++ specific things, the same changes will probably apply to both Fire and Ice, since Fire hasn't really taken off yet (mostly planning work, little actual code).