using (ScriptAPI)
{
	AddUShort("randomid");
	count = AddByte("charcount");
	for(i=0; i<count; i++)
	{
		StartNode("Char" + i);
		AddUInt("ID");
		AddField("Name", 20);    
		AddUShort("Level");
		AddByte("Slot");
		AddField("Mapname", 12);

		StartNode("DeleteInfo");
		AddByte("Year");
		AddByte("Month");
		AddByte("Day");
		AddByte("Hour");
		AddByte("Min");			
		EndNode(0);
 					   
		AddByte("JobGender");
		AddByte("Hair");
		AddByte("Haircolor");
		AddByte("Face");    
			
		StartNode("Equip");  
		AddUShort("Equ_Head");
		AddUShort("Equ_Mouth");
		AddUShort("Equ_RightHand");
		AddUShort("Equ_Body");
		AddUShort("Equ_LeftHand");
		AddUShort("Equ_Pant");
		AddUShort("Equ_Boot");
		AddUShort("Equ_AccBoot");
		AddUShort("Equ_AccPant");	
		AddUShort("Equ_AccBody");
		AddUShort("Equ_AccHeadA");
		AddUShort("Equ_MiniMon_R");
		AddUShort("Equ_Eye");
		AddUShort("Equ_AccLeftHand");
		AddUShort("Equ_AccRightHand");
		AddUShort("Equ_AccBack");      
		AddUShort("Equ_CosEff");
		AddUShort("Equ_AccHip"); 
		AddUShort("Equ_Minimon");
		AddUShort("Equ_AccShield");	
		EndNode(0);
			 
		AddUInt("KQHandle");
			 				
		AddField("Mapname",12);  
		AddUInt("Pos X");
		AddUInt("Pos Y");
			
		StartNode("KQDate");
		AddByte("Unk");
		AddByte("Unk");
		AddByte("Unk");
		AddByte("Unk");
		EndNode(0);
			
		AddByte("NeedChangeID");
		AddByte("Init");				
		AddUInt("RowNo");
				
		AddByte("TutorialState");
		AddByte("TutorialStep");
		EndNode(0);	
		}
}