Thanks for your help, Greven. I have tried to get this put in, but I get the following errors:
this code is in build.c, in function do_rset.
if ( !argument || argument[0] == '\0' )
{
send_to_char( "Set the vnum of the room to teleport to.\n\r", ch );
send_to_char( "Usage: redit televnum <vnum>\n\r", ch );
return;
}
location->tele_vnum = atoi( argument );
send_to_char( "Done.\n\r", ch );
return;
}
/* added to for rsize */
if ( !str_cmp( arg, "rsize" ) )
{
argument = one_argument( argument, xcoord);
argument = one_argument( argument, ycoord);
argument = one_argument( argument, zcoord);
room->x = atoi(xcoord);
room->y = atoi(ycoord);
room->z = atoi(zcoord);
ch_printf(ch, "Room size set to:\n\r\tWidth: %d\n\r\tLength %d\n\r\tHeight %d\n\r", room->x, room->y, room->z);
if ( !argument || argument[0] == '\0' )
{
send_to_char( "Set the room size: width, length, height.\n\r", ch );
send_to_char( "Usage: redit rsize <value> <value> <value>\n\r", ch );
return;
}
return;
}
/* end of rsize addition */
if ( !str_cmp( arg, "sector" ) )
{
if ( !argu
The error is that xcoord, ycoord and zcoord are not declared.
The second error I get is also in build.c, in function fold_area. The error is structure has no member named xcoord, ycoord, and zcoord.
Here is a section showing my additions to that part:
fprintf( fpout, "#%d\n", vnum );
fprintf( fpout, "%s~\n", room->name );
fprintf( fpout, "%s~\n", strip_cr( room->description ) );
if ( (room->tele_delay > 0 && room->tele_vnum > 0) || room->tunnel > 0 )
fprintf( fpout, "0 %d %d %d %d %d %d %d %d\n", room->room_flags,
room->sector_type,
room->xcoord,
room->ycoord,
room->zcoord,
room->tele_delay,
room->tele_vnum,
room->tunnel );
else
fprintf( fpout, "0 %d %d %d %d %d\n", room->room_flags,
room->sector_type, room->xcoord, room->ycoord, room->zcoord );
for ( xit = room->first_exit; xit; xit = xit->next )
{
if ( IS_SET(xit->exit_info, EX_PORTAL) ) /* don't fold portals */
continue;
fprintf( fpout, "D%d\n", xit->vdir );
fprintf( fpout, "%s~\n", strip_cr( xit->description ) );
fprintf( fpout, "%s~\n", strip_cr( xit->keyword ) );
if ( xit->distance > 1 || xit->pull )
fprintf( fpout, "%d %d %d %d %d %d\n",
|