From 4a5524e601e8e3c9deffeca6952fd48ce47f439e Mon Sep 17 00:00:00 2001 From: "Gergely Polonkai (W00d5t0ck)" Date: Tue, 6 Mar 2012 15:14:06 +0100 Subject: [PATCH] Added the "arrived from" patch. Signed-off-by: Gergely Polonkai (W00d5t0ck) --- src/act.movement.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/act.movement.c b/src/act.movement.c index 2cb3d62..ccc8be9 100644 --- a/src/act.movement.c +++ b/src/act.movement.c @@ -164,8 +164,16 @@ int do_simple_move(struct char_data *ch, int dir, int need_specials_check) char_from_room(ch); char_to_room(ch, world[was_in].dir_option[dir]->to_room); - if (!AFF_FLAGGED(ch, AFF_SNEAK)) - act("$n has arrived.", TRUE, ch, 0, 0, TO_ROOM); + if (!AFF_FLAGGED(ch, AFF_SNEAK)) + { + char buf2[MAX_STRING_LENGTH]; + + snprintf(buf2, sizeof(buf2), "$n has arrived from %s%s.", + (((dir == UP) || (dir == DOWN)) ? "" : "the "), + (dir == UP ? "below": dir == DOWN ? "above" : dirs[rev_dir[dir]]) + ); + act(buf2, TRUE, ch, 0, 0, TO_ROOM); + } if (ch->desc != NULL) look_at_room(ch, 0);