viewing paste Unknown #22415 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
void clif_cartdeco(struct map_session_data *sd)
{
#if PACKETVER >= 20150805
    int i = 0, fd;
 
    nullp_retv(sd);
 
    fd = sd->fd;
 
    WFIFOHEAD(fd, packet_len(0x97f));
    WFIFOW(fd, 0) = 0x97f;
    WFIFOW(fd, 2) = 8 + MAX_CART_DECO;
    WFIFOL(fd, 4) = sd->status.account_id;
 
    for (i = 0; i < MAX_CART_DECO; i++) {
        WFIFOB(fd, 8 + i) = 10 + i;
    }
    WFIFOSET(fd, packet_len(0x97f));
#endif
}
Viewed 954 times, submitted by Guest.