From 217c2be1cd48fba3b327931526a8d1a070583cf0 Mon Sep 17 00:00:00 2001 From: eathenabot Date: Thu, 31 May 2012 05:36:21 +0000 Subject: * Merged changes up to eAthena 15112. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16176 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 16 +++++++++++++++- src/map/clif.h | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/clif.c b/src/map/clif.c index 56f1deb6d..cc1e26fed 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -5800,6 +5800,20 @@ void clif_item_repaireffect(struct map_session_data *sd,int nameid,int flag) } +/// Displays a message, that an equipment got damaged (ZC_EQUIPITEM_DAMAGED). +/// 02bb .W .L +void clif_item_damaged(struct map_session_data* sd, unsigned short position) +{ + int fd = sd->fd; + + WFIFOHEAD(fd,packet_len(0x2bb)); + WFIFOW(fd,0) = 0x2bb; + WFIFOW(fd,2) = position; + WFIFOL(fd,4) = sd->bl.id; // TODO: the packet seems to be sent to other people as well, probably party and/or guild. + WFIFOSET(fd,packet_len(0x2bb)); +} + + /// Presents a list of weapon items that can be refined [Taken from jAthena] (ZC_NOTIFY_WEAPONITEMLIST). /// 0221 .W { .W .W .B .W .W .W .W }* void clif_item_refine_list(struct map_session_data *sd) @@ -16256,7 +16270,7 @@ static int packetdb_readdb(void) #endif 0, 4, 0, 70, 10, 0, 0, 0, 8, 6, 27, 80, 0, -1, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 85, -1, -1,107, 6, -1, 7, 7, 22,191, 0, 0, 0, 0, 0, 0, + 85, -1, -1,107, 6, -1, 7, 7, 22,191, 0, 8, 0, 0, 0, 0, //#0x02C0 0, -1, 0, 0, 0, 30, 30, 0, 0, 3, 0, 65, 4, 71, 10, 0, -1, -1, -1, 0, 29, 0, 6, -1, 10, 10, 3, 0, -1, 32, 6, 36, diff --git a/src/map/clif.h b/src/map/clif.h index 9ef748ecb..51e5f934c 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -470,6 +470,7 @@ void clif_item_identify_list(struct map_session_data *sd); void clif_item_identified(struct map_session_data *sd,int idx,int flag); void clif_item_repair_list(struct map_session_data *sd, struct map_session_data *dstsd); void clif_item_repaireffect(struct map_session_data *sd, int nameid, int flag); +void clif_item_damaged(struct map_session_data* sd, unsigned short position); void clif_item_refine_list(struct map_session_data *sd); void clif_item_skill(struct map_session_data *sd,int skillid,int skilllv); -- cgit v1.2.3-70-g09d2