@packetfilter

I found this in src\map\packet_struct.h

struct PACKET_ZC_USE_ITEM_ACK {
int16 packetType;
int16 index;
#if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
uint32 itemId;
uint32 AID;
#elif PACKETVER >= 3
uint16 itemId;
uint32 AID;
#endif
int16 amount;
uint8 result;
} __attribute__((packed));


so client version 20181121 below uses `RBUFL(buf, 6)`, anything above use `RBUFL(buf, 8)`

1.0 - plugin

- introduce type [D], direction packet, and existing Dance/songs move to type `[M]usic`

- no longer use nested IF-ELSE, use switch statement on the packet header for faster read speed

- fix [I.]tem type throw nullpo error on 2018 client

- add Caution as a warning that certain packet filter wont work correctly

and I guess this is finally over

time to mention everyone that has PM me about this project

@raPalooza~

@Azhura

@freezing1

@xJhay

@Kuroyama

@fiction

@Skyzone

@cusco ? <-- from discord

 
if you want change some fields in packet, better use pointer to struct

Code:
PACKET_ZC_USE_ITEM_ACK
 
I found this in src\map\packet_struct.h

struct PACKET_ZC_USE_ITEM_ACK {
int16 packetType;
int16 index;
#if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
uint32 itemId;
uint32 AID;
#elif PACKETVER >= 3
uint16 itemId;
uint32 AID;
#endif
int16 amount;
uint8 result;
} __attribute__((packed));

struct PACKET_ZC_USE_ITEM_ACK {
int16 packetType;
int16 index;
#if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
uint32 itemId;
uint32 AID;
#elif PACKETVER >= 3
uint16 itemId;
uint32 AID;
#endif
int16 amount;
uint8 result;
} __attribute__((packed));


so client version 20181121 below uses `RBUFL(buf, 6)`, anything above use `RBUFL(buf, 8)`

1.0 - plugin

- introduce type [D], direction packet, and existing Dance/songs move to type `[M]usic`

- no longer use nested IF-ELSE, use switch statement on the packet header for faster read speed

- fix [I.]tem type throw nullpo error on 2018 client

- add Caution as a warning that certain packet filter wont work correctly

and I guess this is finally over

time to mention everyone that has PM me about this project

@raPalooza~

@Azhura

@freezing1

@xJhay

@Kuroyama

@fiction

@Skyzone

@cusco ? <-- from discord


if you want change some fields in packet, better use pointer to struct

PACKET_ZC_USE_ITEM_ACK

PACKET_ZC_USE_ITEM_ACK



@AnnieRuru @4144

Is it possible to include the announcements. map announce and global announce?

 
Hello,

First, I wanna thank you @AnnieRuru for creating this awesome plugin!

Does someone show us a video to demonstrate how each main flag works?

I'm currently testing, but I couldn't determine if there's something wrong or not.

Thanks!

 
Back
Top