From 255c7299b075907125c2542671a7ac25c33e916b Mon Sep 17 00:00:00 2001 From: Euph Date: Mon, 17 Jul 2006 07:49:28 +0000 Subject: atcommand_follow is now more verbose. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7711 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 5c84d0d9b..4f1fb2a68 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -7075,15 +7075,21 @@ atcommand_follow(const int fd, struct map_session_data* sd, return -1; pc_stop_following (sd); - clif_displaymessage(fd, "Stop following"); + clif_displaymessage(fd, "Follow mode OFF."); return 0; } if ((pl_sd = map_nick2sd((char *) message)) != NULL) { - if (sd->followtarget == pl_sd->bl.id) + if (sd->followtarget == pl_sd->bl.id) { pc_stop_following (sd); - else + clif_displaymessage(fd, "Follow mode OFF."); + } else { pc_follow(sd, pl_sd->bl.id); + clif_displaymessage(fd, "Follow mode ON."); + } return 0; + } else { + clif_displaymessage(fd, "Character not found."); + return -1; } return 1; -- cgit v1.2.3-60-g2f50