viewing paste Unknown #5719 | Diff

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -721,26 +721,31 @@
 
 /// Makes an item appear on the ground.
 /// 009e <id>.L <name id>.W <identified>.B <x>.W <y>.W <subX>.B <subY>.B <amount>.W (ZC_ITEM_FALL_ENTRY)
+/// 009e(2013) <id>.L <name id>.W <type>.W <identified>.B <x>.W <y>.W <subX>.B <subY>.B <amount>.W (ZC_ITEM_FALL_ENTRY)
 /// 084b (ZC_ITEM_FALL_ENTRY4)
 void clif_dropflooritem(struct flooritem_data* fitem)
 {
-   uint8 buf[17];
-   int view;
+   uint8 buf[19];
+   int view, offset=0;
 
    nullpo_retv(fitem);
 
    if (fitem->item_data.nameid <= 0)
        return;
 
-   WBUFW(buf, 0) = 0x9e;
-   WBUFL(buf, 2) = fitem->bl.id;
-   WBUFW(buf, 6) = ((view = itemdb_viewid(fitem->item_data.nameid)) > 0) ? view : fitem->item_data.nameid;
-   WBUFB(buf, 8) = fitem->item_data.identify;
-   WBUFW(buf, 9) = fitem->bl.x;
-   WBUFW(buf,11) = fitem->bl.y;
-   WBUFB(buf,13) = fitem->subx;
-   WBUFB(buf,14) = fitem->suby;
-   WBUFW(buf,15) = fitem->item_data.amount;
+   WBUFW(buf, offset+0) = 0x9e;
+   WBUFL(buf, offset+2) = fitem->bl.id;
+   WBUFW(buf, offset+6) = ((view = itemdb_viewid(fitem->item_data.nameid)) > 0) ? view : fitem->item_data.nameid;
+#ifdef PACKETVER > 20130000
+   WBUFW(buf, offset+8) = itemtype(itemdb_type(fitem->item_data.nameid));
+   offset +=2;
+#endif
+   WBUFB(buf, offset+8) = fitem->item_data.identify;
+   WBUFW(buf, offset+9) = fitem->bl.x;
+   WBUFW(buf, offset+11) = fitem->bl.y;
+   WBUFB(buf, offset+13) = fitem->subx;
+   WBUFB(buf, offset+14) = fitem->suby;
+   WBUFW(buf, offset+15) = fitem->item_data.amount;
 
    clif_send(buf, packet_len(0x9e), &fitem->bl, AREA);
 }
Viewed 1182 times, submitted by lighta.