From 21bf66af4b73583909d45e07dfc189017d70a542 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 20 Apr 2017 02:10:30 +0300 Subject: Not allow send packet 0x84b (drop item packet). Also removing blocking this packet from clif_send. --- src/emap/clif.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/emap/clif.c') diff --git a/src/emap/clif.c b/src/emap/clif.c index e6b6f17..eed6c49 100644 --- a/src/emap/clif.c +++ b/src/emap/clif.c @@ -527,7 +527,6 @@ int eclif_send_actual_pre(int *fd, { const int packet = RBUFW (buf, 0); if (packet == 0x1d7 || - packet == 0x84b || packet == 0x2dd) { // not sending old packets to new clients @@ -919,7 +918,10 @@ void eclif_dropflooritem_pre(struct flooritem_data **fitemPtr) struct flooritem_data *fitem = *fitemPtr; if (!fitem) + { + hookStop(); return; + } struct ItemdExt *itemData = itemd_get_by_item(&fitem->item_data); if (itemData) { @@ -951,6 +953,7 @@ void eclif_dropflooritem_pre(struct flooritem_data **fitemPtr) WBUFB(buf, 27) = fitem->suby; clif->send(&buf, 28, &fitem->bl, AREA); + hookStop(); } void eclif_sendbgemblem_area_pre(struct map_session_data **sdPtr) -- cgit v1.2.3-60-g2f50