Re: [CODE] "Red Button" question

From: Rasdan (rasdan@PEAK.ORG)
Date: 04/19/98


> char_to_room(ch, number(0, top_of_world));  to
>
> char_to_room(ch, 12309); /* Teleport to room 12309 */

Change it to:

char_to_room(ch, real_room(12309));

Of course, this does no error checking to see if indeed the room does
exist, so you could modify it to:

if (real_room(12309) != NOWHERE)
  char_to_room(ch, real_room(12309));
else
  char_to_room(ch, r_mortal_start_room);

That way, if the room doesn't exist, then it just takes them to mortal
start point.

> But, that's just a guess. If I'm write, then I'd be surprising myself

You were almost there, nothing wrong with a surprise or two here and
there :)

Rasdan

                                  /   \
        _                 )      ((   ))     (
       (@)               /|\      ))_((     /|\                 _
       |-|`\            / | \    (/\|/\)   / | \               (@)
       | | ------------/--|-voV---\`|'/--Vov-|--\--------------|-|
       |-|                  '^`   (o o)  '^`                   | |
       | |  James C. Thomas Jr.   `\Y/'  Founder of Finality   |-|
       |-|            rasdan@finality.drachen.com              | |
       | |             finality.drachen.com 4000               |-|
       |_|_____________________________________________________| |
       (@)       l   /\ /         ( (       \ /\   l         `\|-|
                 l /   V           \ \       V   \ l           (@)
                 l/                _) )_          \I
                                   `\ /'
                                     `


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST