Cheron's Clan OLC Asc 2.0 patch

From: Abraham Dizon (soldier2003@hotmail.com)
Date: 05/08/02


Has anyone ever used Cheron's Clan_OLC_ASC_2.0.patch? I tried hand patching
it into Del's Bundle18b but some things don't work so good. This is what I
used in oasis.c because I had to improvise hehe.

  } else if (!isdigit(*buf1)) {
    if (str_cmp("save", buf1) == 0) {
       save = TRUE;
      if (subcmd == SCMD_OASIS_HEDIT || subcmd == SCMD_OASIS_AEDIT || subcmd
== SCMD_OASIS_CEDIT)
           number = 0;
      else
      if ((number = (*buf2 ? atoi(buf2) : (GET_OLC_ZONE(ch) ?
GET_OLC_ZONE(ch) : -1)) * 100) < 0 ) {
        send_to_char("Save which zone?\r\n", ch);
        return;
      }
    }
    else if (subcmd == SCMD_OASIS_HEDIT || subcmd == SCMD_OASIS_AEDIT ||
subcmd == SCMD_OASIS_CEDIT)
       number = 0;
    else if (subcmd == SCMD_OASIS_ZEDIT && GET_LEVEL(ch) >= LVL_IMPL) {
      if (str_cmp("new", buf1) == 0 && *buf2 && (number = atoi(buf2)) >= 0)
        zedit_new_zone(ch, number);
      else
        send_to_char("Specify a new zone number.\r\n", ch);
      return;
    } else {
      send_to_char("Yikes!  Stop that, someone will get hurt!\r\n", ch);
      return;
    }
  }

Also in this:
  /*
   * Find the zone.
   */
   if (subcmd == SCMD_OASIS_HEDIT && !save)
     OLC_ZNUM(d) = find_help_rnum(buf1);
   else
   if ((OLC_ZNUM(d) = real_zone_by_thing(number)) == -1 && subcmd !=
SCMD_OASIS_AEDIT && subcmd != SCMD_OASIS_CEDIT) {
     send_to_char("Sorry, there is no zone for that number!\r\n", ch);
     free(d->olc);
     d->olc = NULL;
     return;
    }

And this other thing:
     } else if (subcmd == SCMD_OASIS_CEDIT) {
      send_to_char("Saving clans.\r\n",ch);
      sprintf(buf, "OLC: %s saves clans.", GET_NAME(ch));
      mudlog(buf, CMP, MAX(LVL_BUILDER, GET_INVIS_LEV(ch)), TRUE);
     } else {
      sprintf(buf, "Saving all %ss in zone %d.\r\n", type,
zone_table[OLC_ZNUM(d)].number);
      send_to_char(buf, ch);

The problem I have is with saving and having the - Clans display on the olc
function. It says - rooms for zone 0
                      - rooms for zone 30

I saved those things. Its just when I typed cedit save those things appear
in olc listing instead of - Clans. Everything else was hand patched
correctly. IT was just these 3 things I think might be conflicting it. Also
if they can be fixed better, reply back showing how to fix them. Any help is
greatly appreciated!

- Hero

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT