Quote:
Originally Posted by MorganO
how i can sell ALL from my last backpack ?
|
You can't.
At least not with one packet.
to sell something from your inventory you use wurstbrot123's code:
Code:
void sellitem(BYTE page, BYTE place, BYTE count)
{
char *sellpacket = new char[5];
memcpy(sellpacket, "\x03\x07", 2);
memcpy(sellpacket+2, &page, 1);
memcpy(sellpacket+3, &place, 1);
memcpy(sellpacket+4, &count, 1);
injectcts(sellpacket, 5);
delete []sellpacket;
}
as you can see from the code you need to specify which
page/bag the item is, what
place in the bag and
count/how many to sell from that stack.
You could however make a little loop and loop through every item in your last bag.