viewing paste Unknown #5766 | C (LoadRunner)

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
/// Notifies the client about the result of a request to take off an item (ZC_REQ_TAKEOFF_EQUIP_ACK).
/// 00ac <index>.W <equip location>.W <result>.B
/// 08d1 <index>.W <equip location>.W <result>.B
/// 099a <index>.W <equip location>.L <result>.B
/// result:
///     0 = failure
///     1 = success
void clif_unequipitemack(struct map_session_data *sd,int n,int pos,int ok)
{
    int fd;
    long pos_v5 = (long)pos;
 
    nullpo_retv(sd);
 
    fd=sd->fd;
#if PACKETVER < 20130000
    WFIFOHEAD(fd,packet_len(0xac));
#else
    WFIFOHEAD(fd,packet_len(0x99a));
#endif
    WFIFOW(fd,0)=0xac;
    WFIFOW(fd,2)=n+2;
#if PACKETVER < 20130000
    WFIFOW(fd,4)=pos;
    WFIFOB(fd,6)=ok;
    WFIFOSET(fd,packet_len(0xac));
#else
    WBUFL(fd,4)=pos_v5;
    WFIFOB(fd,8)=ok;
    WFIFOSET(fd,packet_len(0x99a));
#endif
}
Viewed 698 times, submitted by Guest.