[ERRORS] Patching clan.patch (part 2 of 2)

From: Tharin2002 (Tharin2002@AOL.COM)
Date: 04/03/98


Ok, here is the code for lines 1280 - 1380


 *snip*

 1280> }
 1281>    else
 1282>    {
 1283>      roomaffect_allowed = 1;
 1284>      sprintf(buf, "[SYS: %s allows room affect spells to hurt other
players]\
 1285>      send_to_imms(buf);
 1286>    }
 1287>  }
 1288>  else
 1289>  {
 1290>    send_to_char("[Current world status:]\r\n", ch);
 1291>    if (pk_allowed == 1) send_to_char("Pkilling allowed,\r\n", ch);
 1292>    if (pk_allowed == 0) send_to_char("Pkilling not allowed,\r\n", ch);
 1293>    if (sleep_allowed == 1) send_to_char("Casting sleep on other players
allowed, 1294>\r\n", ch);
 1295>    if (sleep_allowed == 0) send_to_char("Casting sleep on other players
not 1296>allowed, \r\n", ch);
 1297>    if (summon_allowed == 1) send_to_char("Summoning other players
allowed,\r\n", 1298>ch);
 1299>    if (summon_allowed == 0) send_to_char("Summoning other players not
allowed, 1300>\r\n", ch);
 1301>    if (charm_allowed == 1) send_to_char("Charming other players
allowed,\r\n", ch);
 1302>    if (charm_allowed == 0) send_to_char("Charming other players not
allowed,\r\n", 1303>ch);
 1304>    if (roomaffect_allowed == 1) send_to_char("Room affect spells will
hurt other 1305>players.\r\n", ch):
 1306>    if (roomaffect_allowed == 0) send_to_char("Room affect spells will
not hurt other 1307>players.\r\n", ch);
 1308>  }
 1309>}
 1310>
 1311>
 1312>
 1313>
 1314>ACMD(do_advance)
 1315>{
 1316>  struct char_data *victim;
 1317>  char *name = arg, *level = buf2;
 1318>  int newlevel, oldlevel;
 1319>  void do_start(struct char_data *ch);
 1320>
 1321>  void gain_exp(struct char_data * ch, int gain);
 1322>
 1323>  two_arguments(argument, name, level);
 1324>
 1325>  if (*name) {
 1326>    if (!(victim = get_char_vis(ch, name))) {
 1327>      send_to_char("That player is not here.\r\n", ch);
 1328>      return;
 1329>    }
 1330>  } else {
 1331>    send_to_char("Advance who?\r\n", ch);
 1332>    return;
 1333>  }
 1334>
 1335>  if (GET_LEVEL(ch) <= GET_LEVEL(victim)) {
 1336>    send_to_char("Maybe that's not such a great idea.\r\n", ch);
 1337>    return;
 1338>  }
 1339>  if (IS_NPC(victim)) {
 1340>    send_to_char("NO!  Not on NPC's.\r\n", ch);
 1341>    return;
 1342>  }
 1343>  if (!*level || (newlevel = atoi(level)) <= 0) {
 1344>    send_to_char("That's not a level!\r\n", ch);
 1345>    return;
 1346>  }
 1347>  if (newlevel > LVL_IMPL) {
 1348>    sprintf(buf, "%d is the highest possible level.\r\n", LVL_IMPL);
 1349>    send_to_char(buf, ch);
 1350>    return;
 1351>  }
 1352>  if (newlevel > GET_LEVEL(ch)) {
 1353>    send_to_char("Yeah, right.\r\n", ch);
 1354>    return;
 1355>  }
 1356>  if (newlevel == GET_LEVEL(victim)) {
 1357>    send_to_char("They are already at that level.\r\n", ch);
 1358>    return;
 1359>  }
 1360>  oldlevel = GET_LEVEL(victim);
 1361>  if (newlevel < GET_LEVEL(victim)) {
 1362>    do_start(victim);
 1363>    GET_LEVEL(victim) = newlevel;
 1364>    send_to_char("You are momentarily enveloped by darkness!\r\n"
 1365>           "You feel somewhat diminished.\r\n", victim);
 1366>  } else {
 1367>    act("$n makes some strange gestures.\r\n"
 1368>  "A strange feeling comes upon you,\r\n"
 1369>  "Like a giant hand, light comes down\r\n"
 1370>  "from above, grabbing your body, that\r\n"
 1371>  "begins to pulse with colored lights\r\n"
 1372>  "from inside.\r\n\r\n"
 1373>  "Your head seems to be filled with demons\r\n"
 1374>  "from another plane as your body dissolves\r\n"
 1375>  "to the elements of time and space itself.\r\n"
 1376>  "Suddenly a silent explosion of light\r\n"
 1377>  "snaps you back to reality.\r\n\r\n"
 1378>  "You feel slightly different.", FALSE, ch, 0, victim, TO_VICT);
 1379>  }
 1380>

 *snip*

 Ok, once again, sorry for the spam. If any of you have ANY insight on this,
it would be greatly appreciated, I've been sick the past 3 days and still have
a huge headache so please do yell at me to do it myself :) I'll soon have an
active coder so this might be my last post, please help me on this :) Thanks.

 Tharin
 Knights of the 5th Dimension


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