Consulta ?

#1
alguien me dice para que sirve este comando ?

Code: Select all

		if (memcmp(cp, "/setpf ", 7) == 0) {
			
			SetPlayerProfile(iClientH, cp, dwMsgSize - 21);
			return;
		}

Code: Select all

void CGame::SetPlayerProfile(int iClientH, char * pMsg, DWORD dwMsgSize) {
 char cTemp[256];
 register int i;
	if (m_pClientList[iClientH] == NULL) return;
	if ((dwMsgSize - 7) <= 0) return;
	ZeroMemory(cTemp, sizeof(cTemp));
	memcpy(cTemp, (pMsg + 7), dwMsgSize - 7);
	for (i = 0; i < 256; i++)
		if (cTemp[i] == ' ') cTemp[i] = '_';
	cTemp[255] = NULL;
	ZeroMemory(m_pClientList[iClientH]->m_cProfile, sizeof(m_pClientList[iClientH]->m_cProfile));
	strcpy(m_pClientList[iClientH]->m_cProfile, cTemp);
}

Re: Consulta ?

#2
This is a command to set a profile for a certain character. Normally this command is for TXT files. Open any of your character files and you can see the below.

character-profile =__________
character-location = NONE
character-guild-name = NONE
character-guild-GUID = -1
character-guild-rank = -1
character-loc-map = elvine
character-loc-x = 190
character-loc-y = 122

So the characetr-profile is what you put in /setpf, so for example if i put /setpf I'm LifeX then ->

character-profile = I'm_LifeX

Then when you go in game with a different character, you can type -> /pf LifeX then it will come out that TXT -> I'm LifeX

That's all.
LifeX

www.hblegends.net

Who is online

Users browsing this forum: No registered users and 1 guest

cron