Recall Snippet [by The Ready *2* Die? Staff]
Snippet Posted Wednesday, August 12th @ 11:34:55 PM, by George Greer in the Commands dept.
Added Jul 6, 1998. Click the link below to read it or download it.

From: The Ready *2* Die? Staff <bosstone1@earthling.net>
Subject: Recall Snippet

/******************************************************************************
* do_recall
By:The staff of Reday *2* Die? MUD r2d.dyn.ml.org:4050        *
*act.other.c interpreter.c  Here ya go! a new recall snipp.                   *
******************************************************************************/

This snippet is for Free recall for players. It gives you a messga ewhen
you recall. You can change the ones below if you like. Here are the
directions.

/* Insert in act.other.c */

ACMD(do_recall)
{
  extern sh_int r_mortal_start_room[NUM_STARTROOMS +1];
  int who;
  if (ROOM_FLAGGED(ch->in_room,ROOM_ARENA))
     return;
  who=number(1,3);
  switch(who) {
   case 1:
    send_to_char("\r\nBosstone snaps his fingers and returns you to your home!\
r\n",ch);
    send_to_char("You feel a great warmth as Bosstone looks over you!\r\n\r\n",
ch);
    break;
   case 2:
    send_to_char("\r\nQuick snags you up and runs you quickly home!\r\n",ch);
    send_to_char("You sure feel dizzy!\r\n\r\n",ch);
    break;
   case 3:
    send_to_char("\r\nEmbler whistles softly as the crystal dragon scoops you\r
\n",ch);
    send_to_char("up.  He takes you to safety and flies away!\r\n\r\n",ch);
    break;
  }
  act("$n disappears in a puff of smoke!", TRUE, ch, 0, 0, TO_ROOM);
  char_from_room(ch);
  char_to_room(ch,r_mortal_start_room[GET_HOME(ch)]);
  act("$n appears in the middle of the room.", TRUE, ch, 0, 0, TO_ROOM);
  look_at_room(ch, 0);
}

/* Insert in interpreter.c */

ACMD(do_recall);

and also

{ "recall"     , POS_STANDING, do_recall   ,0, },


       Well thats it. so have fun with it.
                  -The Ready *2* Die? MUD Staff
                      (Bosstone, Embler, Quick, CyberMan)



<< Recall Command [by Quinn] | Reply | View as text | Threaded | Recall To Player Houses [by Admin] >>

 


Related Links
  download
Related Articles
More by greerga
 
 

CircleMUD Snippets
 
Note: Not all of these snippets will work perfectly with your version of code, so be prepared to fix one or two bugs that may arise, and please let me know what you needed to do to fix it. Sending a corrected version is always welcome.
Finally, if you wish to use any of the snippets from this page, you are more than welcome, just mention the authors in your credits. If you wish to release any of these snippets to the public on another site, contact me FIRST.