Re: Remort coding [CODE]

From: Scorn (scorn@RMI.NET)
Date: 09/10/98


if all you want is an idea i just got done coding a remort with arguments
here it is(note this is only the remort i set a reset char() at the end so
that part is up to you.  Any questions dial scorn@rmi.net

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 %s *****",
  GET_NAME(ch), GET_NAME(vict));
  mudlog(buf, BRF, MAX(LVL_IMMORT, GET_INVIS_LEV(vict)), TRUE);
  reset_char_stats(vict);
}


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