mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-21 01:30:12 +01:00
Minor bug fixes and updates
This commit is contained in:
parent
2743ff82ec
commit
062a5d4eb4
4 changed files with 48 additions and 21 deletions
|
|
@ -38,8 +38,11 @@ Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist)
|
|||
[Nov 04 2010] - Jamdog
|
||||
Bug-Fix: Converted affect flags in struct affected_type from 32-bit to 128-bit
|
||||
Bug Fix: Players with too much gold now don't lose eq when renting
|
||||
Bug Fix: Cured SYSERR when selecting an unimplemented obj type in oedit (thanks Rumble)
|
||||
Bug Fix: Scan no longer shows the content of dark rooms (thanks Mirad)
|
||||
Removed conf.h fron the SVN, as this is created by the configure script
|
||||
Minor IBT system change for accurately finding who logged an IBT
|
||||
Minor IBT change to list 'in-progress' IBT's in yellow
|
||||
[Nov 01 2010] - Rumble
|
||||
Fixed do_scan crash due to exits to NOWHERE. (thanks Rhade)
|
||||
Changed do_score experience tnl to list only mortals since LVL_IMMORT showed negative EXP.
|
||||
|
|
|
|||
|
|
@ -2599,8 +2599,15 @@ ACMD(do_scan)
|
|||
if (world[scanned_room].dir_option[door] && world[scanned_room].dir_option[door]->to_room != NOWHERE &&
|
||||
!IS_SET(world[scanned_room].dir_option[door]->exit_info, EX_CLOSED)) {
|
||||
scanned_room = world[scanned_room].dir_option[door]->to_room;
|
||||
if (world[scanned_room].people)
|
||||
list_scanned_chars(world[scanned_room].people, ch, range - 1, door);
|
||||
if (IS_DARK(scanned_room) && !CAN_SEE_IN_DARK(ch)) {
|
||||
if (world[scanned_room].people)
|
||||
send_to_char(ch, "%s: It's too dark to see, but you can hear shuffling.\r\n", dirs[door]);
|
||||
else
|
||||
send_to_char(ch, "%s: It is too dark to see anything.\r\n", dirs[door]);
|
||||
} else {
|
||||
if (world[scanned_room].people)
|
||||
list_scanned_chars(world[scanned_room].people, ch, range - 1, door);
|
||||
}
|
||||
} // end of if
|
||||
else
|
||||
break;
|
||||
|
|
|
|||
43
src/ibt.c
43
src/ibt.c
|
|
@ -548,7 +548,34 @@ ACMD(do_ibt)
|
|||
else
|
||||
sprintf(imp, "%c", ' ');
|
||||
|
||||
if (!IBT_FLAGGED(ibtData, IBT_RESOLVED)) {
|
||||
if (IBT_FLAGGED(ibtData, IBT_RESOLVED)) {
|
||||
if (GET_LEVEL(ch) < LVL_IMMORT) {
|
||||
send_to_char(ch, "%s%s%3d|%s%s\r\n",
|
||||
imp, QGRN, i, ibtData->text, QNRM);
|
||||
} else {
|
||||
send_to_char(ch, "%s%s%3d%s|%s%-12s%s|%s%6d%s|%s%5d%s|%s%s%s\r\n",
|
||||
imp, QGRN, i, QGRN,
|
||||
QGRN, ibtData->name, QGRN,
|
||||
QGRN, ibtData->room, QGRN,
|
||||
QGRN, ibtData->level, QGRN,
|
||||
QGRN, ibtData->text, QNRM);
|
||||
}
|
||||
num_res++;
|
||||
} else if (IBT_FLAGGED(ibtData, IBT_INPROGRESS)) {
|
||||
if (GET_LEVEL(ch) < LVL_IMMORT) {
|
||||
send_to_char(ch, "%s%s%3d%s|%s%s%s\r\n",
|
||||
imp, QYEL, i, QGRN,
|
||||
QYEL, ibtData->text, QNRM);
|
||||
} else {
|
||||
send_to_char(ch, "%s%s%3d%s|%s%-12s%s|%s%6d%s|%s%5d%s|%s%s%s\r\n",
|
||||
imp, QYEL, i, QGRN,
|
||||
QYEL, ibtData->name, QGRN,
|
||||
QYEL, ibtData->room, QGRN,
|
||||
QYEL, ibtData->level, QGRN,
|
||||
QYEL, ibtData->text, QNRM);
|
||||
}
|
||||
num_unres++;
|
||||
} else {
|
||||
if (GET_LEVEL(ch) < LVL_IMMORT) {
|
||||
send_to_char(ch, "%s%s%3d%s|%s%s%s\r\n",
|
||||
imp, QRED, i, QGRN,
|
||||
|
|
@ -562,24 +589,12 @@ ACMD(do_ibt)
|
|||
QRED, ibtData->text, QNRM);
|
||||
}
|
||||
num_unres++;
|
||||
} else {
|
||||
if (GET_LEVEL(ch) < LVL_IMMORT) {
|
||||
send_to_char(ch, "%s%s%3d|%s%s\r\n",
|
||||
imp, QGRN, i, ibtData->text, QNRM);
|
||||
} else {
|
||||
send_to_char(ch, "%s%s%3d%s|%s%-12s%s|%s%6d%s|%s%5d%s|%s%s%s\r\n",
|
||||
imp, QGRN, i, QGRN,
|
||||
QGRN, ibtData->name, QGRN,
|
||||
QGRN, ibtData->room, QGRN,
|
||||
QGRN, ibtData->level, QGRN,
|
||||
QGRN, ibtData->text, QNRM);
|
||||
}
|
||||
num_res++;
|
||||
}
|
||||
}
|
||||
if ((num_res + num_unres) > 0) {
|
||||
send_to_char(ch,"\n\r%s%d %ss in file. %s%d%s resolved, %s%d%s unresolved%s\r\n",QCYN, i, CMD_NAME, QBGRN, num_res, QCYN, QBRED, num_unres, QCYN, QNRM);
|
||||
send_to_char(ch,"%s%ss in %sRED%s are unresolved %ss.\r\n", QCYN, ibt_types[subcmd], QRED, QCYN, CMD_NAME);
|
||||
send_to_char(ch,"%s%ss in %sYELLOW%s are in-progress %ss.\r\n", QCYN, ibt_types[subcmd], QYEL, QCYN, CMD_NAME);
|
||||
send_to_char(ch,"%s%ss in %sGREEN%s are resolved %ss.\r\n", QCYN, ibt_types[subcmd], QGRN, QCYN, CMD_NAME);
|
||||
} else {
|
||||
send_to_char(ch,"No %ss have been found that were reported by you!\r\n", CMD_NAME);
|
||||
|
|
|
|||
|
|
@ -443,6 +443,8 @@ static void oedit_disp_val1_menu(struct descriptor_data *d)
|
|||
case ITEM_KEY:
|
||||
case ITEM_PEN:
|
||||
case ITEM_BOAT:
|
||||
case ITEM_FREE: /* Not implemented, but should be handled here */
|
||||
case ITEM_FREE2: /* Not implemented, but should be handled here */
|
||||
oedit_disp_menu(d);
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue