summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorJônatas Andreta <jonataandretta@hotmail.com>2018-03-14 23:08:06 -0300
committerJônatas Andreta <jonataandretta@hotmail.com>2018-03-14 23:08:59 -0300
commit6518dd8702421c0ff614ae3f771f56950269a77b (patch)
treec03bd6130c693366e9bc97e464d90a655bbedea4 /src/map/guild.c
parentea964c75ac213eab98e22cce938d8bf141071179 (diff)
downloadhercules-6518dd8702421c0ff614ae3f771f56950269a77b.tar.gz
hercules-6518dd8702421c0ff614ae3f771f56950269a77b.tar.bz2
hercules-6518dd8702421c0ff614ae3f771f56950269a77b.tar.xz
hercules-6518dd8702421c0ff614ae3f771f56950269a77b.zip
- Implemented login date for guild members.
Signed-off-by: Megasantos <jonataandretta@hotmail.com>
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 11609ec81..d33df5e08 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -275,6 +275,7 @@ void guild_makemember(struct guild_member *m,struct map_session_data *sd)
m->online = 1;
m->position = MAX_GUILDPOSITION-1;
memcpy(m->name,sd->status.name,NAME_LENGTH);
+ m->last_login = (uint32)time(NULL); // When player create or join a guild the date is updated
return;
}
@@ -1001,7 +1002,7 @@ int guild_send_memberinfoshort(struct map_session_data *sd,int online)
return 0;
}
-int guild_recv_memberinfoshort(int guild_id, int account_id, int char_id, int online, int lv, int16 class)
+int guild_recv_memberinfoshort(int guild_id, int account_id, int char_id, int online, int lv, int16 class, uint32 last_login)
{ // cleaned up [LuzZza]
int i, alv, c, idx = INDEX_NOT_FOUND, om = 0, oldonline = -1;
struct guild *g = guild->search(guild_id);
@@ -1017,6 +1018,7 @@ int guild_recv_memberinfoshort(int guild_id, int account_id, int char_id, int on
m->online=online;
m->lv=lv;
m->class = class;
+ m->last_login = last_login;
idx=i;
}
alv+=m->lv;