I'm wanting to make it so that players don't have to wait for authorization in order to start leveling, but also for them to pass through newgate.are in order to get the starting equipment and choose whether they'll pkill. In order to do this, here's what I've done.
Waitforauth changed to 1
Added a room prog at 122 (where you pull the rope) to transfer the player to 10300 (academy start). In order to get the room prog to work I had to comment out the following in transfer_char:
I also changed a line in get_waiting_desc:
(added the NOT_AUTHED statement)
When auth is given to players before they pass through the gates, everything works great. If players pass through before auth is given they show on the waiting for auth list but authorizing at that point does not remove the unauth flag. The message is sent to both imm and player that they're authorized, but the flag still stays. Any ideas on what would fix this?
Waitforauth changed to 1
Added a room prog at 122 (where you pull the rope) to transfer the player to 10300 (academy start). In order to get the room prog to work I had to comment out the following in transfer_char:
if( IS_NPC( ch ) && NOT_AUTHED( victim ) && location->area != victim->in_room->area )
{
char buf[MAX_STRING_LENGTH];
snprintf( buf, MAX_STRING_LENGTH, "Mptransfer - unauthed char (%s)", victim->name );
progbug( buf, ch );
return;
}
I also changed a line in get_waiting_desc:
for( d = first_descriptor; d; d = d->next )
{
if( d->character && ( !str_prefix( name, d->character->name ) )
&& ( IS_WAITING_FOR_AUTH( d->character ) || NOT_AUTHED( d->character ) ) )
{
if( ++number_of_hits > 1 )
{
ch_printf( ch, "%s does not uniquely identify a char.\r\n", name );
return NULL;
}
ret_char = d->character; /* return current char on exit */
}
}
(added the NOT_AUTHED statement)
When auth is given to players before they pass through the gates, everything works great. If players pass through before auth is given they show on the waiting for auth list but authorizing at that point does not remove the unauth flag. The message is sent to both imm and player that they're authorized, but the flag still stays. Any ideas on what would fix this?