ACMD(do_ostat) { struct obj_data *obj; int number, r_num; one_argument(argument, buf); if(*buf) { if (!isdigit(*buf)) { send_to_char("Usage: ostat [vnum]\r\n", ch); return; } if ((number = atoi(buf)) < 0) { send_to_char("A NEGATIVE number??\r\n", ch); return; } if ((r_num = real_object(number)) < 0) { send_to_char("There is no object with that number.\r\n", ch); return; } obj = read_object(r_num, REAL); do_stat_object(ch, obj); extract_o[Bbj(obj); } else if (!OBJ_NEW(ch)) { send_to_char("There is no default object to stat.\r\n", ch); return; } else { do_stat_object(ch, OBJ_NEW(ch)); } } /* meditmod */ ACMD(do_mstat) { struct char_data *mob; int number, r_num; one_argument(argument, buf); if(*buf) { if (!isdigit(*buf)) { send_to_char("Usage: mstat [vnum]\r\n", ch); return; } if ((number = atoi(buf)) < 0) { send_to_char("A NEGATIVE number??\r\n", ch); return; } if ((r_num = real_mobile(number)) < 0) { send_to_char("There is no mob with that number.\r\n", ch); return; } mob = read_mobile(r_num, REAL); char_to_room(mob, 0); GET_MAX_HIT(mob) = dice(mob->points.hit, mob->points.mana) + mob->points.move; GET_HIT(mob) = GET_MAX_HIT(mob); do_stat_character(ch, mob); extract_char(mob); } else if (!MOB_NEW(ch)) { send_to_char("There is no default mob to stat.\r\n", ch); return; } else { if(!MOB_NEW(ch)) { send_to_char("No mob in the edit buffer.\r\n", ch); return; } do_stat_character(ch, MOB_NEW(ch)); } }
This archive was generated by hypermail 2b30 : 12/07/00 PST