I am running DBSC 2.5 codebase as the basis of my mud. I was hoping someone can help me as I have searched and come up empty handed with a way to code recall as a type of command for all players to use to return them to Center Of Universe. I've kind of hit dead ends everywhere I look.
adding recall to mud code
Posted by DarthOberon on Fri 20 Sep 2013 11:21 PM — 2 posts, 12,837 views.
I'm not familiar with star wars code, but if it's like smaug...
Something like this should work
void do_recall( CHAR_DATA *ch ) {
int center;
center = 1234; // whatever the center is.
act prog to_char
act prog to_room // whatever messages you want.
char_from_room(ch );
char_to_room( ch, get_room_index( center ) );
return;
}
Something like this should work
void do_recall( CHAR_DATA *ch ) {
int center;
center = 1234; // whatever the center is.
act prog to_char
act prog to_room // whatever messages you want.
char_from_room(ch );
char_to_room( ch, get_room_index( center ) );
return;
}