Buy by packets

01/22/2012 12:18 nokia999#1
Hi all
I wana buy item by packets....

Sniff send :
TYPE : 0x15
FORMAT : m

'm' - if i'm correct is array of bytes

But how long is this array ?
all time sniffed send is like :
5c 0a xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx 01 xx .....

first two all time same , 01 - amount of items but rest i dont know :/

if i try send
byte array[xx];
sendfunc(0x15,"m",array);
got engine err read from memory.

Any one can help, or make thing a bit more clear ? xD


Thx.
01/22/2012 13:02 katze123#2
you need the other send function in the engine. the place you're sniffing atm at is the wrong place and you wont have success...
01/22/2012 13:03 bloodx#3
CSend::SendKoemV2(0x18,"dbbww",NPC ID,Tax Rate,1,Item Index,Item Amount);

0x18 = Private Server
0x15 = int Server
01/22/2012 15:36 thekingisback#4
can u upload any working packet sender?
01/22/2012 16:28 Roronoa Z.#5
:o but then there's no more work for you...that would be bad..
01/22/2012 23:28 nokia999#6
Quote:
Originally Posted by katze123 View Post
you need the other send function in the engine. the place you're sniffing atm at is the wrong place and you wont have success...
hmm ok i got it to work ;)

btw i sniffed at correct place just i need to chage read metod.
case 'm':
{
char *sPtr = va_arg(va, char *);
int size = va_arg(va, int);
memcpy(sniffBuffer, sPtr, size);
printf("the size is : %d\n", size);
for(byte c=0; c< size; c++)
printf("%0.2x ",sniffBuffer[c]);
printf("\n");
testSkill = false;
}

most important is that you need to remember about big-endian / little -endian swap on this data;)

thx and gl all.

Can be closed.
01/29/2012 20:18 Sansiba110#7
can someone explain me how buy by packets work?? :)
01/29/2012 20:34 MoepMeep#8
bloodx posted it, lol.