public static SCharListEquip New(SItem [] Item) { SCharListEquip tmp = new SCharListEquip( ) { Slot = Item }; 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); }
public SItem [] Slot; // 0 a 127 = 128 // Atributos public static SCharListEquip New( ) { SCharListEquip tmp = new SCharListEquip { Slot = new SItem [16] }; for (int i = 0; i < tmp.Slot.Length; i++) { tmp.Slot [i] = SItem.New( ); } return(tmp); }