Re: [bpl11] [Code] Remorts again

From: Scorn (scorn@RMI.NET)
Date: 08/16/98


Thanks to all for the ideas and pointers but i now have it exactly the way
it will run on my mud.

ACMD(do_remort)
{
   struct char_data *vict;

   one_argument(argument, arg);

   if (GET_LEVEL(ch) == LVL_IMPL) {
    if (!*arg) {
      send_to_char("Remort who?\r\n", ch);
      return;
    }
   }
   if(*arg) {
     if(!(vict = get_char_vis(ch, arg))) {
        send_to_char("They don't seem to be here.\r\n", ch);
        return;
       }

     if(GET_LEVEL(ch) < LVL_IMPL && ch != vict) {
        send_to_char("You can't remort anyone but yourself!\r\n", ch);
        return;
       }
     }
   else
     vict = ch;
  if (!ok_to_remort(vict, ch))
    return;

  send_to_char("Okay.\r\n", ch);
  sprintf(buf, "***** %s has remorted! *****", GET_NAME(vict));
  mudlog(buf, BRF, MAX(LVL_IMMORT, GET_INVIS_LEV(vict)), TRUE);
  reset_char_stats(vict);
}
thanks for your help
Scorn
P.S. sorry bout the spam


     +------------------------------------------------------------+
     | 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