diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-07 05:09:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-15 20:36:21 +0300 |
commit | 3e04d41cc450f65f004a6e5a45c5ce6f700b82b1 (patch) | |
tree | 2fa6ed2e7d6e820dc12e89d12d1a4204d78c03bc /src/map/clif.c | |
parent | 0a7e3dee7e935254ae5bbc9ac4520f8b56dafb90 (diff) | |
download | hercules-3e04d41cc450f65f004a6e5a45c5ce6f700b82b1.tar.gz hercules-3e04d41cc450f65f004a6e5a45c5ce6f700b82b1.tar.bz2 hercules-3e04d41cc450f65f004a6e5a45c5ce6f700b82b1.tar.xz hercules-3e04d41cc450f65f004a6e5a45c5ce6f700b82b1.zip |
Update packet ZC_ACK_WEAPONREFINE.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index c279546b5..95184ed9f 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -6083,11 +6083,13 @@ static void clif_refine(int fd, int fail, int index, int val) /// 3 = "you lack the item %s to upgrade the weapon" MsgStringTable[914] in rgb(255,200,200) static void clif_upgrademessage(int fd, int result, int item_id) { - WFIFOHEAD(fd,packet_len(0x223)); - WFIFOW(fd,0)=0x223; - WFIFOL(fd,2)=result; - WFIFOW(fd,6)=item_id; - WFIFOSET(fd,packet_len(0x223)); + struct PACKET_ZC_ACK_WEAPONREFINE p; + WFIFOHEAD(fd, sizeof(p)); + p.packetType = 0x223; + p.result = result; + p.itemId = item_id; + memcpy(WFIFOP(fd, 0), &p, sizeof(p)); + WFIFOSET(fd, sizeof(p)); } /// Whisper is transmitted to the destination player (ZC_WHISPER). |