Esempio n. 1
0
// Request the value of all registries.
int mapif_parse_RegistryRequest(int fd)
{
	//Load Char Registry
	if (RFIFOB(fd,12)) mapif_account_reg_reply(fd,RFIFOL(fd,2),RFIFOL(fd,6),3);
	//Load Account Registry
	if (RFIFOB(fd,11)) mapif_account_reg_reply(fd,RFIFOL(fd,2),RFIFOL(fd,6),2);
	//Ask Login Server for Account2 values.
	if (RFIFOB(fd,10)) request_accreg2(RFIFOL(fd,2),RFIFOL(fd,6));
	return 1;
}
Esempio n. 2
0
File: inter.cpp Progetto: mrktj/tmwa
RecvResult mapif_parse_AccRegRequest(Session *s)
{
    Packet_Fixed<0x3005> fixed;
    RecvResult rv = recv_fpacket<0x3005, 6>(s, fixed);
    if (rv != RecvResult::Complete)
        return rv;

    mapif_account_reg_reply(s, fixed.account_id);

    return rv;
}
Esempio n. 3
0
// アカウント変数送信要求
static
void mapif_parse_AccRegRequest(int fd)
{
    mapif_account_reg_reply(fd, RFIFOL(fd, 2));
}
Esempio n. 4
0
// Request the value of account_reg
int mapif_parse_AccRegRequest(int fd)
{
//	printf("mapif: accreg request\n");
	return mapif_account_reg_reply(fd,RFIFOL(fd,2));
}