viewing paste Unknown #5083 | Plain text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/// Opens the search store window (ZC_OPEN_SEARCH_STORE_INFO).
/// 083a <type>.W <remaining uses>.B
/// type:
///     0 = Search Stores
///     1 = Search Stores (Cash), asks for confirmation, when clicking a store
void clif_open_search_store_info(struct map_session_data* sd)
{
        int fd = sd->fd;
 
        WFIFOHEAD(fd,packet_len(0x83a));
        WFIFOW(fd,0) = 0x83a;
        WFIFOW(fd,2) = sd->searchstore.effect;
#if PACKETVER > 20100701
        WFIFOB(fd,4) = (unsigned char)min(sd->searchstore.uses, UINT8_MAX);
#endif
        WFIFOSET(fd,packet_len(0x83a));
}
Viewed 308 times, submitted by unknown.