[ BUG ] Another bug in mobprogs for Oasis?

From: David Klasinc (bigwhale@CAPYBARA.SK-PTTSC.LJ.EDUS.SI)
Date: 08/21/97


Banzai!

 I've noticed that assigning mob prog triggers in OLC doesn't work like it
should... Maybe it's just my version, but here is the solution:

 in medit.c change find these lines:

/*-------------------------------------------------------------------*/
/*. Numerical responses .*/

  case MEDIT_MPROG_TYPE:

and change whole MEDIT_MPROG_TYPE: to this...

  case MEDIT_MPROG_TYPE:
    switch (atoi(arg)) {
      case 0:
        OLC_MPROG(d)->type = 0;
      break;
      case 1:
        OLC_MPROG(d)->type = 1;
      break;
      case 2:
        OLC_MPROG(d)->type = 2;
      break;
      case 3:
        OLC_MPROG(d)->type = 4;
      break;
      case 4:
        OLC_MPROG(d)->type = 8;
      break;
      case 5:
        OLC_MPROG(d)->type = 16;
      break;
      case 6:
        OLC_MPROG(d)->type = 32;
      break;
      case 7:
        OLC_MPROG(d)->type = 64;
      break;
      case 8:
        OLC_MPROG(d)->type = 128;
      break;
      case 9:
        OLC_MPROG(d)->type = 256;
      break;
      case 10:
        OLC_MPROG(d)->type = 512;
      break;
      case 11:
        OLC_MPROG(d)->type = 1024;
      break;
      default:
        OLC_MPROG(d)->type = -1;
      break;
    }
    OLC_VAL(d) = 1;
    medit_change_mprog(d);
    return;



I know that looks a bit wormish, but it works for me... :)

David!


     +------------------------------------------------------------+
     | 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/08/00 PST