Quote:
Originally Posted by nookie <3
could u post the first codes for 1 shopping flag? i code the rest myself the 200 other flags lol
|
It's the same code for all flags. If you put the right type to the flags, when you will start vending, the client will send 3F2 packet with subtype 111. After you just have to handle items and wait for the destroy packet. For LOTF, it can be something like this. I don't have a version for LOTF.
Code:
case 111: //Start Vending
{
User.Direction = Data[20];
if (Shop.Create(User))
Client.SendPacket(CoServer.MyPackets.GeneralData(User, User.MyShop.GetId(), 111));
break;
}