public SCharList CharList; // 12 a 855 = 844 // Construtores public static P_112 New(Client client) { P_112 tmp = new P_112 { Header = SHeader.New(0x112, Marshal.SizeOf <P_112> ( ), client.ClientId), CharList = SCharList.New(client) }; return(tmp); }
public SCharList CharList; // 12 a 855 = 844 // Construtores public static P_110 New(Client client) { P_110 tmp = new P_110 { Header = SHeader.New(0x110, Marshal.SizeOf <P_110> ( ), 30001), CharList = SCharList.New(client) }; return(tmp); }
public ulong [] Exp; // 812 a 843 = 32 // Construtores public static SCharList New(Client client) { SCharList tmp = new SCharList { Unk1 = new byte [4] { 0, 0, 0, 0 }, PosX = new short [4], PosY = new short [4], Name = new SCharListName [4], Status = new SStatus [4], Equips = new SCharListEquip [4], Unk2 = new byte [8] { 0, 0, 0, 0, 0, 0, 0, 0 }, Gold = new int [4], Exp = new ulong [4] }; for (int i = 0; i < 4; i++) { if (client.Account.Characters [i] == null) { tmp.PosX [i] = 0; tmp.PosY [i] = 0; tmp.Name [i] = SCharListName.New(""); tmp.Status [i] = SStatus.New( ); tmp.Equips [i] = SCharListEquip.New( ); tmp.Gold [i] = 0; tmp.Exp [i] = 0; } else { SMob mob = client.Account.Characters [i].Mob; tmp.PosX [i] = mob.LastPosition.X; tmp.PosY [i] = mob.LastPosition.Y; tmp.Name [i] = SCharListName.New(mob.Name); tmp.Status [i] = mob.GameStatus; tmp.Equips [i] = SCharListEquip.New(mob.Equip); tmp.Gold [i] = mob.Gold; tmp.Exp [i] = mob.Exp; } } return(tmp); }