AlanMorel / MapleServer2

MapleStory 2 Emulator
GNU General Public License v3.0
343 stars 157 forks source link

Shops #89

Open integralcoder95 opened 3 years ago

integralcoder95 commented 3 years ago

Use this app https://github.com/AngeloTadeucci/PacketToSQL to sniff shops and create the seeding SQL files.

Shops done: 40~/??

newgithubaccountlol commented 3 years ago

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

newgithubaccountlol commented 3 years ago

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