Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ adding recall to mud code

adding recall to mud code

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by DarthOberon   (4 posts)  Bio
Date Fri 20 Sep 2013 11:21 PM (UTC)
Message
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.
Top

Posted by Llarn   (23 posts)  Bio
Date Reply #1 on Fri 11 Oct 2013 03:08 AM (UTC)
Message
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;
}
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


10,224 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.