class InvContender extends Actor config(DeusEx);


var config string paxxword[1500]; //pass list

var config string InvItem1[1500];
var config string InvItem2[1500];
var config string InvItem3[1500];
var config string InvItem4[1500];
var config string InvItem5[1500];
var config string InvItem6[1500];
var config string InvItem7[1500];
var config string InvItem8[1500];
var config string InvItem9[1500];

var config string clubmission[1500];
var config string colamission[1500];
var config string medkit[1500];
var config string medpack[1500];
var config string arenamission[1500];
var config string killmission[1500];
var config string thiefmission[1500];
var config string paxxmission[1500];
var config string spymission[1500];
var config string contmission[1500];
var config string beermission[1500];


var config string skill0[1500];
var config string skill1[1500];
var config string skill2[1500];
var config string skill3[1500];
var config string skill4[1500];
var config string skill5[1500];
var config string skill6[1500];
var config string skill7[1500];
var config string skill8[1500];
var config string skill9[1500];
var config string skill10[1500];

var config string Money[1500];
var config string BankMoney[1500];

var config string bDoctor[1500];
var config string numHealed[1500];

var config string bMechanic[1500];
var config string numfixed[1500];

var config string bhasJob[1500];
var config string JobName[1500];

var config string SkillPointsTotal[1500];
var config string SkillPointsAvail[1500];

var config string furn0[1500];
var config string furn1[1500];
var config string furn2[1500];
var config string furn3[1500];
var config string furn4[1500];
var config string furn5[1500];
var config string furn6[1500];
var config string furn7[1500];
var config string furn8[1500];
var config string furn9[1500];
var config string furn10[1500];

var config string furnloc0[1500];
var config string furnloc1[1500];
var config string furnloc2[1500];
var config string furnloc3[1500];
var config string furnloc4[1500];
var config string furnloc5[1500];
var config string furnloc6[1500];
var config string furnloc7[1500];
var config string furnloc8[1500];
var config string furnloc9[1500];
var config string furnloc10[1500];

var config string furnrot0[1500];
var config string furnrot1[1500];
var config string furnrot2[1500];
var config string furnrot3[1500];
var config string furnrot4[1500];
var config string furnrot5[1500];
var config string furnrot6[1500];
var config string furnrot7[1500];
var config string furnrot8[1500];
var config string furnrot9[1500];
var config string furnrot10[1500];

var config string BankItem1[1500];
var config string BankItem2[1500];
var config string BankItem3[1500];
var config string BankItem4[1500];
var config string BankItem5[1500];
var config string BankItem6[1500];
var config string BankItem7[1500];
var config string BankItem8[1500];
var config string BankItem9[1500];
var config string BankItem10[1500];

var config string jHealth[1500];
var config string jEnergy[1500];
var config string jHealthHead[1500];
var config string jHealthTorso[1500];
var config string jHealthLegLeft[1500];
var config string jHealthLegRight[1500];
var config string jHealthArmLeft[1500];
var config string jHealthArmRight[1500];

var config string bNinja[1500];
var config string bWaitNinja[1500];
var config string bRifleKing[1500];

var config string itemcount1[1500];
var config string itemcount2[1500];
var config string itemcount3[1500];
var config string itemcount4[1500];
var config string itemcount5[1500];
var config string itemcount6[1500];
var config string itemcount7[1500];
var config string itemcount8[1500];
var config string itemcount9[1500];

var config string XP1[1500];
var config string XP2[1500];
var config string XP3[1500];
var config string XP4[1500];
var config string XP5[1500];
var config string XP6[1500];
var config string XP7[1500];
var config string XP8[1500];
var config string XP9[1500];
var config string XP10[1500];



static function WriteXP(int Index, int i, int xp)
{
	if(i == 1)
	{
		Default.XP1[index] = string(xp);
	}
	if(i == 2)
	{
		Default.XP2[index] = string(xp);
	}
	if(i == 3)
	{
		Default.XP3[index] = string(xp);
	}
	if(i == 4)
	{
		Default.XP4[index] = string(xp);
	}
	if(i == 5)
	{
		Default.XP5[index] = string(xp);
	}
	if(i == 6)
	{
		Default.XP6[index] = string(xp);
	}
	if(i == 7)
	{
		Default.XP7[index] = string(xp);
	}
	if(i == 8)
	{
		Default.XP8[index] = string(xp);
	}
	if(i == 9)
	{
		Default.XP9[index] = string(xp);
	}
	if(i == 10)
	{
		Default.XP10[index] = string(xp);
	}
	 
}

static function int GetXP(int Index, int i)
{
	local string str;
	local string str2;

	if(i == 1)
	{
		str = "XP1["$Index$"]";
	}
	if(i == 2)
	{
		str = "XP2["$Index$"]";
	}
	if(i == 3)
	{
		str = "XP3["$Index$"]";
	}
	if(i == 4)
	{
		str = "XP4["$Index$"]";
	}
	if(i == 5)
	{
		str = "XP5["$Index$"]";
	}
	if(i == 6)
	{
		str = "XP6["$Index$"]";
	}
	if(i == 7)
	{
		str = "XP7["$Index$"]";
	}
	if(i == 8)
	{
		str = "XP8["$Index$"]";
	}
	if(i == 9)
	{
		str = "XP9["$Index$"]";
	}
	if(i == 10)
	{
		str = "XP10["$Index$"]";
	}

	return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
}




Static Function int GetItemCount(int listIndex, int invIndex)
{
	local string str;

	if(invIndex == 1)
	{
		str = "ItemCount1["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}

	if(invIndex == 2)
	{
		str = "ItemCount2["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}

	if(invIndex == 3)
	{
		str = "ItemCount3["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}

	if(invIndex == 4)
	{
		str = "ItemCount4["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}

	if(invIndex == 5)
	{
		str = "ItemCount5["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}

	if(invIndex == 6)
	{
		str = "ItemCount6["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}

	if(invIndex == 7)
	{
		str = "ItemCount7["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}

	if(invIndex == 8)
	{
		str = "ItemCount8["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}

	if(invIndex == 9)
	{
		str = "ItemCount9["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}
}

Static Function WriteItemCount(int listIndex, int invIndex, int x)
{
	local string inv;

	inv = string(x);

	if(InvIndex == 1)
		Default.itemcount1[listIndex]=inv;
	if(InvIndex == 2)
		Default.itemcount2[listIndex]=inv;
	if(InvIndex == 3)
		Default.itemcount3[listIndex]=inv;
	if(InvIndex == 4)
		Default.itemcount4[listIndex]=inv;
	if(InvIndex == 5)
		Default.itemcount5[listIndex]=inv;
	if(InvIndex == 6)
		Default.itemcount6[listIndex]=inv;
	if(InvIndex == 7)
		Default.itemcount7[listIndex]=inv;
	if(InvIndex == 8)
		Default.itemcount8[listIndex]=inv;
	if(InvIndex == 9)
		Default.itemcount9[listIndex]=inv;

	 
}



static function bool GetbNinja(int Index)
{
	local string str;
	local string str2;

	str = "bNinja["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);

	if(Str2 == "True")
		return True;

	if(Str2 == "False")
		return False;
}

static function WritebNinja(int Index, bool b)
{
	if(b == True)
		Default.bNinja[index] = "True";

	if(b == False)
		Default.bNinja[index] = "False";


	 
}

static function bool GetbWaitNinja(int Index)
{
	local string str;
	local string str2;

	str = "bWaitNinja["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);

	if(Str2 == "True")
		return True;

	if(Str2 == "False")
		return False;
}

static function WritebWaitNinja(int Index, bool b)
{
	if(b == True)
		Default.bWaitNinja[index] = "True";

	if(b == False)
		Default.bWaitNinja[index] = "False";


	 
}


static function bool GetbRifleKing(int Index)
{
	local string str;
	local string str2;

	str = "bRifleKing["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);

	if(Str2 == "True")
		return True;

	if(Str2 == "False")
		return False;
}

static function WritebRifleKing(int Index, bool b)
{
	if(b == True)
		Default.bRifleKing[index] = "True";

	if(b == False)
		Default.bRifleKing[index] = "False";


	 
}




static function WriteHealth(int aHealth, int aEnergy, int aHealthHead, int aHealthTorso, int aHealthLegLeft, int aHealthLegRight, int aHealthArmLeft, int aHealthArmRight, int Index)
{
	Default.jHealth[index] = string(aHealth);
	Default.jEnergy[index] = string(aEnergy);
	Default.jHealthHead[index] = string(aHealthHead);
	Default.jHealthTorso[index] = string(aHealthTorso);
	Default.jHealthLegLeft[index] = string(aHealthLegLeft);
	Default.jHealthLegRight[index] = string(aHealthLegRight);
	Default.jHealthArmLeft[index] = string(aHealthArmLeft);
	Default.jHealthArmRight[index] = string(aHealthArmRight);

	 
}

static function int GetHealth(int Index)
{
	local string str;
	local string str2;

	str = "jHealth["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return int(str2);
}

static function int GetEnergy(int Index)
{
	local string str;
	local string str2;

	str = "jEnergy["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return int(str2);
}

static function int GetHealthHead(int Index)
{
	local string str;
	local string str2;

	str = "jHealthHead["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return int(str2);
}

static function int GetHealthTorso(int Index)
{
	local string str;
	local string str2;

	str = "jHealthTorso["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return int(str2);
}

static function int GetHealthLegLeft(int Index)
{
	local string str;
	local string str2;

	str = "jHealthLegLeft["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return int(str2);
}
static function int GetHealthLegRight(int Index)
{
	local string str;
	local string str2;

	str = "jHealthLegRight["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return int(str2);
}

static function int GetHealthArmLeft(int Index)
{
	local string str;
	local string str2;

	str = "jHealthArmLeft["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return int(str2);
}

static function int GetHealthArmRight(int Index)
{
	local string str;
	local string str2;

	str = "jHealthArmRight["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return int(str2);
}


static function WriteBank(int InvIndex, int listIndex, string str)
{
	if(InvIndex == 1)
		Default.BankItem1[listIndex]=str;
	if(InvIndex == 2)
		Default.BankItem2[listIndex]=str;
	if(InvIndex == 3)
		Default.BankItem3[listIndex]=str;
	if(InvIndex == 4)
		Default.BankItem4[listIndex]=str;
	if(InvIndex == 5)
		Default.BankItem5[listIndex]=str;
	if(InvIndex == 6)
		Default.BankItem6[listIndex]=str;
	if(InvIndex == 7)
		Default.BankItem7[listIndex]=str;
	if(InvIndex == 8)
		Default.BankItem8[listIndex]=str;
	if(InvIndex == 9)
		Default.BankItem9[listIndex]=str;
	if(InvIndex == 10)
		Default.BankItem10[listIndex]=str;


	 
}




Static Function string GetBank(int listIndex, int invIndex)
{
	local string str;

	if(invIndex == 0)
	{
		str = "BankItem0["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 1)
	{
		str = "BankItem1["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 2)
	{
		str = "BankItem2["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 3)
	{
		str = "BankItem3["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 4)
	{
		str = "BankItem4["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 5)
	{
		str = "BankItem5["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 6)
	{
		str = "BankItem6["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 7)
	{
		str = "BankItem7["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 8)
	{
		str = "BankItem8["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 9)
	{
		str = "BankItem9["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 10)
	{
		str = "BankItem10["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
}


static function ClearFurn(int listIndex)
{
	Default.furn0[listIndex]="";
	Default.furn1[listIndex]="";
	Default.furn2[listIndex]="";
	Default.furn3[listIndex]="";
	Default.furn4[listIndex]="";
	Default.furn5[listIndex]="";
	Default.furn6[listIndex]="";
	Default.furn7[listIndex]="";
	Default.furn8[listIndex]="";
	Default.furn9[listIndex]="";
	Default.furn10[listIndex]="";

	 
}



static function WriteFurn(int InvIndex, int listIndex, string str)
{
	if(InvIndex == 0)
		Default.furn0[listIndex]=str;
	if(InvIndex == 1)
		Default.furn1[listIndex]=str;
	if(InvIndex == 2)
		Default.furn2[listIndex]=str;
	if(InvIndex == 3)
		Default.furn3[listIndex]=str;
	if(InvIndex == 4)
		Default.furn4[listIndex]=str;
	if(InvIndex == 5)
		Default.furn5[listIndex]=str;
	if(InvIndex == 6)
		Default.furn6[listIndex]=str;
	if(InvIndex == 7)
		Default.furn7[listIndex]=str;
	if(InvIndex == 8)
		Default.furn8[listIndex]=str;
	if(InvIndex == 9)
		Default.furn9[listIndex]=str;
	if(InvIndex == 10)
		Default.furn10[listIndex]=str;


	 
}




Static Function string GetFurn(int listIndex, int invIndex)
{
	local string str;

	if(invIndex == 0)
	{
		str = "Furn0["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 1)
	{
		str = "Furn1["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 2)
	{
		str = "Furn2["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 3)
	{
		str = "Furn3["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 4)
	{
		str = "Furn4["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 5)
	{
		str = "Furn5["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 6)
	{
		str = "Furn6["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 7)
	{
		str = "Furn7["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 8)
	{
		str = "Furn8["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 9)
	{
		str = "Furn9["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 10)
	{
		str = "Furn10["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
}

static function WriteFurnLoc(int InvIndex, int listIndex, string str)
{
	if(InvIndex == 0)
		Default.furnloc0[listIndex]=str;
	if(InvIndex == 1)
		Default.furnloc1[listIndex]=str;
	if(InvIndex == 2)
		Default.furnloc2[listIndex]=str;
	if(InvIndex == 3)
		Default.furnloc3[listIndex]=str;
	if(InvIndex == 4)
		Default.furnloc4[listIndex]=str;
	if(InvIndex == 5)
		Default.furnloc5[listIndex]=str;
	if(InvIndex == 6)
		Default.furnloc6[listIndex]=str;
	if(InvIndex == 7)
		Default.furnloc7[listIndex]=str;
	if(InvIndex == 8)
		Default.furnloc8[listIndex]=str;
	if(InvIndex == 9)
		Default.furnloc9[listIndex]=str;
	if(InvIndex == 10)
		Default.furnloc10[listIndex]=str;


	 
}




Static Function string GetFurnLoc(int listIndex, int invIndex)
{
	local string str;

	if(invIndex == 0)
	{
		str = "Furnloc0["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 1)
	{
		str = "Furnloc1["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 2)
	{
		str = "Furnloc2["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 3)
	{
		str = "Furnloc3["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 4)
	{
		str = "Furnloc4["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 5)
	{
		str = "Furnloc5["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 6)
	{
		str = "Furnloc6["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 7)
	{
		str = "Furnloc7["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 8)
	{
		str = "Furnloc8["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 9)
	{
		str = "Furnloc9["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 10)
	{
		str = "Furnloc10["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
}


static function WriteFurnRot(int InvIndex, int listIndex, string str)
{
	if(InvIndex == 0)
		Default.furnrot0[listIndex]=str;
	if(InvIndex == 1)
		Default.furnrot1[listIndex]=str;
	if(InvIndex == 2)
		Default.furnrot2[listIndex]=str;
	if(InvIndex == 3)
		Default.furnrot3[listIndex]=str;
	if(InvIndex == 4)
		Default.furnrot4[listIndex]=str;
	if(InvIndex == 5)
		Default.furnrot5[listIndex]=str;
	if(InvIndex == 6)
		Default.furnrot6[listIndex]=str;
	if(InvIndex == 7)
		Default.furnrot7[listIndex]=str;
	if(InvIndex == 8)
		Default.furnrot8[listIndex]=str;
	if(InvIndex == 9)
		Default.furnrot9[listIndex]=str;
	if(InvIndex == 10)
		Default.furnrot10[listIndex]=str;

	 
}




Static Function string GetFurnRot(int listIndex, int invIndex)
{
	local string str;

	if(invIndex == 0)
	{
		str = "Furnrot0["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 1)
	{
		str = "Furnrot1["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 2)
	{
		str = "Furnrot2["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 3)
	{
		str = "Furnrot3["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 4)
	{
		str = "Furnrot4["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 5)
	{
		str = "Furnrot5["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 6)
	{
		str = "Furnrot6["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 7)
	{
		str = "Furnrot7["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 8)
	{
		str = "Furnrot8["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 9)
	{
		str = "Furnrot9["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 10)
	{
		str = "Furnrot10["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
}









static function int GetSkillPointsTotal(int Index)
{
	local string str;
	local string str2;

	str = "SkillPointsTotal["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return int(str2);
}

static function WriteSkillPointsTotal(int Index, int i)
{
	Default.SkillPointsTotal[index] = string(i);
	 
}

static function int GetSkillPointsAvail(int Index)
{
	local string str;
	local string str2;

	str = "SkillPointsAvail["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return int(str2);
}

static function WriteSkillPointsAvail(int Index, int i)
{
	Default.SkillPointsAvail[index] = string(i);
	 
}


static function bool GetbDoctor(int Index)
{
	local string str;
	local string str2;

	str = "bDoctor["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);

	if(Str2 == "True")
		return True;

	if(Str2 == "False")
		return False;
}

static function WritebDoctor(int Index, bool b)
{
	if(b == True)
		Default.bDoctor[index] = "True";

	if(b == False)
		Default.bDoctor[index] = "False";


	 
}
static function int GetNumHealed(int Index)
{
	local string str;
	local string str2;

	str = "numHealed["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return int(str2);
}

static function WritenumHealed(int Index, int i)
{
	Default.numHealed[index] = string(i);
	 
}


static function bool GetbMechanic(int Index)
{
	local string str;
	local string str2;

	str = "bMechanic["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);

	if(Str2 == "True")
		return True;

	if(Str2 == "False")
		return False;
}

static function WritebMechanic(int Index, bool b)
{
	if(b == True)
		Default.bMechanic[index] = "True";

	if(b == False)
		Default.bMechanic[index] = "False";


	 
}
static function int GetNumFixed(int Index)
{
	local string str;
	local string str2;

	str = "numFixed["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return int(str2);
}

static function WritenumFixed(int Index, int i)
{
	Default.numFixed[index] = string(i);
	 
}


static function bool GetbHasJob(int Index)
{
	local string str;
	local string str2;

	str = "bHasJob["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);

	if(Str2 == "True")
		return True;

	if(Str2 == "False")
		return False;
}

static function WritebHasJob(int Index, bool b)
{
	if(b == True)
		Default.bHasJob[index] = "True";

	if(b == False)
		Default.bHasJob[index] = "False";


	 
}

static function string GetJobName(int Index)
{
	local string str;
	local string str2;

	str = "JobName["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return str2;
}

static function WriteJobName(int Index, string jname)
{
	Default.JobName[index] = jname;
	 
}





static function WriteSkill(int InvIndex, int listIndex, int i)
{
	if(InvIndex == 0)
		Default.Skill0[listIndex]=string(i);
	if(InvIndex == 1)
		Default.Skill1[listIndex]=string(i);
	if(InvIndex == 2)
		Default.Skill2[listIndex]=string(i);
	if(InvIndex == 3)
		Default.Skill3[listIndex]=string(i);
	if(InvIndex == 4)
		Default.Skill4[listIndex]=string(i);
	if(InvIndex == 5)
		Default.Skill5[listIndex]=string(i);
	if(InvIndex == 6)
		Default.Skill6[listIndex]=string(i);
	if(InvIndex == 7)
		Default.Skill7[listIndex]=string(i);
	if(InvIndex == 8)
		Default.Skill8[listIndex]=string(i);
	if(InvIndex == 9)
		Default.Skill9[listIndex]=string(i);
	if(InvIndex == 10)
		Default.Skill10[listIndex]=string(i);

	 
}




Static Function int GetSkill(int listIndex, int invIndex)
{
	local string str;

	if(invIndex == 0)
	{
		str = "Skill0["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}
	if(invIndex == 1)
	{
		str = "Skill1["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}
	if(invIndex == 2)
	{
		str = "Skill2["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}
	if(invIndex == 3)
	{
		str = "Skill3["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}
	if(invIndex == 4)
	{
		str = "Skill4["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}
	if(invIndex == 5)
	{
		str = "Skill5["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}
	if(invIndex == 6)
	{
		str = "Skill6["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}
	if(invIndex == 7)
	{
		str = "Skill7["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}
	if(invIndex == 8)
	{
		str = "Skill8["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}
	if(invIndex == 9)
	{
		str = "Skill9["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}
	if(invIndex == 10)
	{
		str = "Skill10["$listIndex$"]";
		return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
	}
}


static function int GetMoney(int Index)
{
	local string str;
	local string str2;

	//return default.Money[Index];

	str = "Money["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return int(str2);
}

static function WriteMoney(int Index, int i)
{
	Default.Money[index] = string(i);
	 
}


static function int GetBankMoney(int Index)
{
	local string str;
	local string str2;


	str = "BankMoney["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return int(str2);
}

static function WriteBankMoney(int Index, int i)
{
	Default.BankMoney[index] = string(i);
	 
}



static function int getclubmission(int Index)
{
	//return default.clubmission[Index];
	local string str;
	str = "clubmission["$Index$"]";
	return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
}
static function int getcolamission(int Index)
{
	//return default.colamission[Index];
	local string str;
	str = "colamission["$Index$"]";
	return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
}
static function int getmedkit(int Index)
{
	//return default.medkit[Index];
	local string str;
	str = "medkit["$Index$"]";
	return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
}
static function int getmedpack(int Index)
{
	//return default.medpack[Index];
	local string str;
	str = "medpack["$Index$"]";
	return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
}
static function int getarenamission(int Index)
{
	//return default.arenamission[Index];
	local string str;
	str = "arenamission["$Index$"]";
	return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
}
static function int getkillmission(int Index)
{
	//return default.killmission[Index];
	local string str;
	str = "killmission["$Index$"]";
	return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
}
static function int getthiefmission(int Index)
{
	//return default.thiefmission[Index];
	local string str;
	str = "thiefmission["$Index$"]";
	return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
}
static function int getpaxxmission(int Index)
{
	//return default.paxxmission[Index];
	local string str;
	str = "paxxmission["$Index$"]";
	return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
}
static function int getspymission(int Index)
{
	local string str;
	str = "spymission["$Index$"]";
	return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
}
static function int getcontmission(int Index)
{
	local string str;
	str = "contmission["$Index$"]";
	return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
}
static function int getbeermission(int Index)
{
	local string str;
	str = "beermission["$Index$"]";
	return int(Class'InvContender'.Static.GetConfig("Contender.InvContender", str));
}




static function writeclubmission(int Index, int i)
{
	Default.clubmission[index] = string(i);
	 
}
static function writecolamission(int Index, int i)
{
	Default.colamission[index] = string(i);
	 
}
static function writemedkit(int Index, int i)
{
	Default.medkit[index] = string(i);
	 
}
static function writemedpack(int Index, int i)
{
	Default.medpack[index] = string(i);
	 
}
static function writearenamission(int Index, int i)
{
	Default.arenamission[index] = string(i);
	 
}
static function writekillmission(int Index, int i)
{
	Default.killmission[index] = string(i);
	 
}
static function writethiefmission(int Index, int i)
{
	Default.thiefmission[index] = string(i);
	 
}
static function writepaxxmission(int Index, int i)
{
	Default.paxxmission[index] = string(i);
	 
}
static function writespymission(int Index, int i)
{
	Default.spymission[index] = string(i);
	 
}
static function writecontmission(int Index, int i)
{
	Default.contmission[index] = string(i);
	 
}
static function writebeermission(int Index, int i)
{
	Default.beermission[index] = string(i);
	 
}



Static Function string GetInv(int listIndex, int invIndex)
{
	local string str;

	if(invIndex == 1)
	{
		str = "InvItem1["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 2)
	{
		str = "InvItem2["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 3)
	{
		str = "InvItem3["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 4)
	{
		str = "InvItem4["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 5)
	{
		str = "InvItem5["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 6)
	{
		str = "InvItem6["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 7)
	{
		str = "InvItem7["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 8)
	{
		str = "InvItem8["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
	if(invIndex == 9)
	{
		str = "InvItem9["$listIndex$"]";
		return Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	}
}

Static function string getPW(int index)
{
	//return Default.paxxword[index];

	local string str;
	local string str2;

	str = "paxxword["$Index$"]";

	str2 = Class'InvContender'.Static.GetConfig("Contender.InvContender", str);
	return str2;

}



Static Function WriteInv(int listIndex, int invIndex, string inv)
{
	if(InvIndex == 1)
		Default.InvItem1[listIndex]=inv;
	if(InvIndex == 2)
		Default.InvItem2[listIndex]=inv;
	if(InvIndex == 3)
		Default.InvItem3[listIndex]=inv;
	if(InvIndex == 4)
		Default.InvItem4[listIndex]=inv;
	if(InvIndex == 5)
		Default.InvItem5[listIndex]=inv;
	if(InvIndex == 6)
		Default.InvItem6[listIndex]=inv;
	if(InvIndex == 7)
		Default.InvItem7[listIndex]=inv;
	if(InvIndex == 8)
		Default.InvItem8[listIndex]=inv;
	if(InvIndex == 9)
		Default.InvItem9[listIndex]=inv;

	 
}

Static function WritePW(int index, string pw)
{
	Default.paxxword[index] = pw;
	 
}

Static Function ClearInv(int invIndex)
{
	Default.InvItem1[invIndex]="";
	Default.InvItem2[invIndex]="";
	Default.InvItem3[invIndex]="";
	Default.InvItem4[invIndex]="";
	Default.InvItem5[invIndex]="";
	Default.InvItem6[invIndex]="";
	Default.InvItem7[invIndex]="";
	Default.InvItem8[invIndex]="";
	Default.InvItem9[invIndex]="";

	Default.itemcount1[invIndex]="";
	Default.itemcount2[invIndex]="";
	Default.itemcount3[invIndex]="";
	Default.itemcount4[invIndex]="";
	Default.itemcount5[invIndex]="";
	Default.itemcount6[invIndex]="";
	Default.itemcount7[invIndex]="";
	Default.itemcount8[invIndex]="";
	Default.itemcount9[invIndex]="";
}
