diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-23 19:08:54 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-23 19:08:54 +0000 |
commit | ac96c8dbde939dc367afe734f3452590e154475c (patch) | |
tree | ad6b2ec838d199f6875ec331727b4a25249e0f9b /src/map/clif.c | |
parent | c45d93d9d873996f99829dfc506c7875ea13d24c (diff) | |
download | hercules-ac96c8dbde939dc367afe734f3452590e154475c.tar.gz hercules-ac96c8dbde939dc367afe734f3452590e154475c.tar.bz2 hercules-ac96c8dbde939dc367afe734f3452590e154475c.tar.xz hercules-ac96c8dbde939dc367afe734f3452590e154475c.zip |
- Completed Mercenary Create, Delete, Save. Tests OK.
- Incremented MAX_SKILL required for a proper load of Mercenary Skills.
- Some fixes.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13118 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 202828788..a82495aa0 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -7056,7 +7056,8 @@ int clif_charnameack (int fd, struct block_list *bl) WBUFW(buf,0) = cmd; WBUFL(buf,2) = bl->id; - switch(bl->type) { + switch( bl->type ) + { case BL_PC: { struct map_session_data *ssd = (struct map_session_data *)bl; @@ -7117,6 +7118,9 @@ int clif_charnameack (int fd, struct block_list *bl) case BL_HOM: memcpy(WBUFP(buf,6), ((TBL_HOM*)bl)->homunculus.name, NAME_LENGTH); break; + case BL_MER: + memcpy(WBUFP(buf,6), ((TBL_MER*)bl)->db->name, NAME_LENGTH); + break; case BL_PET: memcpy(WBUFP(buf,6), ((TBL_PET*)bl)->pet.name, NAME_LENGTH); break; @@ -12352,7 +12356,7 @@ void clif_mercenary_info(struct map_session_data *sd) fd = sd->fd; status = &md->battle_status; - WFIFOHEAD(fd,72); + WFIFOHEAD(fd,80); WFIFOW(fd,0) = 0x029b; WFIFOL(fd,2) = md->bl.id; WFIFOW(fd,6) = cap_value(status->rhw.atk2+status->batk, 0, SHRT_MAX); @@ -12369,10 +12373,12 @@ void clif_mercenary_info(struct map_session_data *sd) WFIFOL(fd,52) = status->max_hp; WFIFOL(fd,56) = status->sp; WFIFOL(fd,60) = status->max_sp; - WFIFOL(fd,64) = 0; // Expiration Time - WFIFOW(fd,68) = 0; // No documentation (Guild Rank?) - WFIFOW(fd,70) = 0; // Times Summoned - WFIFOSET(fd,72); + WFIFOL(fd,64) = 0; // Contract End + WFIFOW(fd,68) = 0; // Loyalty + WFIFOL(fd,70) = 0; // Summon Count + WFIFOL(fd,74) = 0; // Kill Counter + WFIFOW(fd,78) = 0; + WFIFOSET(fd,80); } void clif_mercenary_skillblock(struct map_session_data *sd) |