Hello all,
Im all do like in this thread http://coderx.ru/showthread.php?t=11604
all work fine, i get packets from server, but how send it back?
example here:
Цитата:
int __fastcall new_AddNetworkQueue(unsigned int This, unsigned int EDX, TNetworkPacket *NetworkPacket)
{
if (NetworkPacket->subid == 0xFFFF)
{
switch (NetworkPacket->id)
{
case 0x2E:
decodeKey(NetworkPacket->data + 1);
break;
case 0x74:
// reply ?
Logger("Get from server.");
break;
default:
Logger("Get from server other");
break;
}
}
Yes, i use 68.
I receive packets and etc, but now i want send packet to server from this place:
Цитата:
int __fastcall new_AddNetworkQueue(unsigned int This, unsigned int EDX, TNetworkPacket *NetworkPacket)
{
if ((*(unsigned int*) (KiUserExceptDispADR + 10) + KiUserExceptDispADR < hNtDllStart) || (*(unsigned int*) (KiUserExceptDispADR + 10) + KiUserExceptDispADR > hNtDllEnd))
ErrorExit("Bot Program Detected #0!");
unsigned int retAddr = *((unsigned int*) &NetworkPacket - 1);
if ((retAddr < hEngineStart) || (retAddr > hEngineEnd))
ErrorExit("Bot Program Detected #1!");
if (NetworkPacket->subid == 0xFFFF)
{
switch (NetworkPacket->id)
{
case 0x2E:
decodeKey(NetworkPacket->data + 1);
break;
case 0x74:
// this place send packet..?
break;
}
}
Thanks you!!!!!! work perfect
and this
SendPacket
im set as int SendPacket = NULL; is good or no? but it work and with it.
Добавлено через 22 часа 10 минут
Now i want send string to server.
im use:
_sendPacket(_clientSocket, "cs", 0xF9,"Test");
in l2j i use:
ReadS();
and i get in log this error:
Too many buffer underflow exceptions.
How to send text?
Последний раз редактировалось wongerlt, 27.08.2016 в 19:13.
Причина: Добавлено сообщение