MapleServer2
MapleServer2 copied to clipboard
Shops
Use this app https://github.com/AngeloTadeucci/PacketToSQL to sniff shops and create the seeding SQL files.
Shops done: 40~/??
Recv: Structure is: // [28 00] [04] [24 2D 31 01] [05 00 00 00] mode - byte (4 = buy, 5 = sell) if mode is 4, item id - int quantity - int if mode is 5 item sn - long quantity - int
Send: byte mode if (mode == 0): int npc id int 0x80 long time int shopCategory byte 0 bool 0 bool 0 bool 0 byte 0 bool 1 bool 0 bool 0 bool 0 string name if mode == 1: byte size for (int i = 0 to size) write item packet if mode == 6 short 0