ok i did a back trace and here is what i got:
char *one_argument( char *argument, char *arg_first )
{
char cEnd;
sh_int count;
count = 0;
HERE--->while ( isspace(*argument) )
argument++;
cEnd = ' ';
if ( *argument == '\'' || *argument == '"' )
cEnd = *argument++;
Then it went to handler.c and this is what it has:
bool is_name( const char *str, char *namelist )
{
HERE--->char name[MAX_INPUT_LENGTH];
for ( ; ; )
{
namelist = one_argument( namelist, name );
if ( name[0] == '\0' )
return FALSE;
if ( !str_cmp( str, name ) )
return TRUE;
}
}
Then it went to do showbeacons
void do_showbeacons( CHAR_DATA *ch, char *argument )
{
SHIP_DATA *ship;
SHIP_DATA *ship2;
char buf[MAX_STRING_LENGTH];
char buf2[MAX_STRING_LENGTH];
char buf3[MAX_STRING_LENGTH];
int count = 0;
if(IS_NPC(ch)) return;
if (number_percent() > ch->pcdata->learned[gsn_showbeacons])
{
send_to_char("You can't figure out what to do.\n\r", ch);
learn_from_failure(ch,gsn_showbeacons);
return;
}
send_to_char("\n\r",ch);
send_to_char("&zRequesting response from active locator beacons...\n\r", ch);
send_to_char("&w__________________________________________________\n\r\n\r",ch);
for ( ship = first_ship; ship; ship = ship->next )
{
HERE--->if(is_name(ch->name, ship->pbeacon))
{
if(!ship->in_room && ship->shipstate != SHIP_HYPERSPACE)
sprintf(buf3, "&w%.0f&z, &w%.0f&z, &w%.0f", ship->vx, ship->vy, ship->vz);
if(ship->shipstate == SHIP_HYPERSPACE)
sprintf(buf3, "In Hyperspace");
for(ship2 = first_ship; ship2; ship2 = ship2->next)
{
if(ship->in_room)
{
if(ship->in_room->vnum == ship2->hanger1)
{
sprintf(buf, "%s", ship2->name);
sprintf(buf2, "%s", ship->in_room->name);
break;
}
if(ship->in_room->vnum == ship2->hanger2)
{
sprintf(buf, "%s", ship2->name);
sprintf(buf2, "%s", ship->in_room->name);
break;
}
if(ship->in_room->vnum == ship2->hanger3)
{
sprintf(buf, "%s", ship2->name);
sprintf(buf2, "%s", ship->in_room->name);
break;
}
if(ship->in_room->vnum == ship2->hanger4)
{
sprintf(buf, "%s", ship2->name);
sprintf(buf2, "%s", ship->in_room->name);
break;
}
}
}
ch_printf(ch,"^g&xACTIVE^x&z: &w%-15.15s&z Location:&w %s &z(&w%s&z)&w\n\r", ship->name,
(ship->in_room && ship->in_room->area->planet) ?
ship->in_room->area->planet->name :
(ship->in_room && !ship->in_room->area->planet) ?
buf :
(!ship->in_room && ship->starsystem) ? ship->starsystem->name :
ship->shipstate == SHIP_HYPERSPACE ? "Unknown" : "Unknown",
(ship->in_room && ship->in_room->area->planet) ?
ship->in_room->name :
(ship->in_room && !ship->in_room->area->planet) ?
buf2 :
ship->shipstate == SHIP_HYPERSPACE ? "In Hyperspace" :
(!ship->in_room) ? buf3 : "Unknown");
count++;
}
}
if(count == 0)
send_to_char(" &zNo active beacons found.\n\r", ch);
learn_from_success(ch,gsn_showbeacons);
}
THEN IT WENT TO intrep.c and it is:
/*
* Look for command in skill and socials table.
*/
if ( !found )
{
HERE--->( !check_skill( ch, command, argument )
&& !check_social( ch, command, argument ) )
{
EXIT_DATA *pexit;
/* check for an auto-matic exit command */
if ( (pexit = find_door( ch, command, TRUE )) != NULL
&& IS_SET( pexit->exit_info, EX_xAUTO ))
{
if ( IS_SET(pexit->exit_info, EX_CLOSED)
&& (!IS_AFFECTED(ch, AFF_PASS_DOOR)
|| IS_SET(pexit->exit_info, EX_NOPASSDOOR)) )
{
if ( !IS_SET( pexit->exit_info, EX_SECRET ) )
act( AT_PLAIN, "The $d is closed.", ch, NULL, pexit->keyword, TO_CHAR );
else
send_to_char( "You cannot do that here.\n\r", ch );
return;
}
move_char( ch, pexit, 0 );
return;
}
send_to_char( "Huh?\n\r", ch );
}
return;
}
then it went to comm.c and i got:
|