public static void CREATE_CHAR(MapleClient c, InPacket p) { var name = p.ReadMapleString(); var job = p.ReadInt(); var face = p.ReadInt(); var hair = p.ReadInt(); var hairColor = 0; byte skinColor; if (job == 0) { skinColor = 10; } else if (job == 2) { skinColor = 11; } else { skinColor = 0; } var top = p.ReadInt(); var bottom = p.ReadInt(); var shoes = p.ReadInt(); var weapon = p.ReadInt(); var newchar = new MapleCharacter(); newchar.Create(c, job, top, bottom, shoes, weapon); if (c.Account.IsGm) { newchar.GmLevel = 1; } //newchar.WorldId = c.WorldId; newchar.Face = face; newchar.Hair = hair + hairColor; newchar.Gender = c.Account.Gender ?? false; newchar.Name = name; newchar.Skin = MapleSkinColor.GetByColorId(skinColor); newchar.Save(); c.Send(LoginPacket.AddNewCharEntry(newchar, true)); }