private void Append_CheatFile(int characterIndex, FFTCharacter recruit) { //stbCheatFile.Append(recruit.strSex + "\r\n string strLoc = SetHexPosition(characterIndex); stbCheatFile.Append(" \r\n"); stbCheatFile.Append("# " + recruit.strName + " No:" + characterIndex.ToString("D4") + "\r\n"); stbCheatFile.Append(recruit.strBrave + "\r\n"); stbCheatFile.Append(recruit.strFaith + "\r\n"); stbCheatFile.Append(recruit.strHPLow + "\r\n"); stbCheatFile.Append(recruit.strHPHigh + "\r\n"); stbCheatFile.Append(recruit.strMPLow + "\r\n"); stbCheatFile.Append(recruit.strMPHigh + "\r\n"); stbCheatFile.Append(recruit.strSpdLow + "\r\n"); stbCheatFile.Append(recruit.strSpdHigh + "\r\n"); stbCheatFile.Append(recruit.strPALow + "\r\n"); stbCheatFile.Append(recruit.strPAHigh + "\r\n"); stbCheatFile.Append(recruit.strMALow + "\r\n"); stbCheatFile.Append(recruit.strMAHigh + "\r\n"); stbCheatFile.Replace("qq", strLoc); }
private FFTCharacter FillRecruitStats(string name, string braveStat, string faithStat, string hpStat, string mpStat, string speedStat, string physAttackStat, string magicAttackStat) { FFTCharacter currentCharacter = new FFTCharacter(); if (CheckStatStrings(braveStat, faithStat, hpStat, mpStat, speedStat, physAttackStat, magicAttackStat)) { currentCharacter.strName = currentCharacter.strName.Replace("Nullo", name); currentCharacter.strBrave = currentCharacter.strBrave.Replace("xy", braveStat); currentCharacter.strFaith = currentCharacter.strFaith.Replace("xy", faithStat); //This is not consistent, it's just a temporary Hack //Need to hack back in Mid and a new LOW stat. //HP & MP work XY Z currentCharacter.strHPHigh = currentCharacter.strHPHigh.Replace("x", hpStat.Substring(0, 1)); currentCharacter.strHPHigh = currentCharacter.strHPHigh.Replace("y", hpStat.Substring(1, 1)); currentCharacter.strHPLow = currentCharacter.strHPLow.Replace("z", hpStat.Substring(2, 1)); currentCharacter.strMPHigh = currentCharacter.strMPHigh.Replace("x", mpStat.Substring(0, 1)); currentCharacter.strMPHigh = currentCharacter.strMPHigh.Replace("y", mpStat.Substring(1, 1)); currentCharacter.strMPLow = currentCharacter.strMPLow.Replace("z", mpStat.Substring(2, 1)); //Speed & Attacks work X YZ currentCharacter.strSpdHigh = currentCharacter.strSpdHigh.Replace("x", speedStat.Substring(0, 1)); currentCharacter.strSpdLow = currentCharacter.strSpdLow.Replace("y", speedStat.Substring(1, 1)); currentCharacter.strSpdLow = currentCharacter.strSpdLow.Replace("z", speedStat.Substring(2, 1)); currentCharacter.strPAHigh = currentCharacter.strPAHigh.Replace("x", physAttackStat.Substring(0, 1)); currentCharacter.strPALow = currentCharacter.strPALow.Replace("y", physAttackStat.Substring(1, 1)); currentCharacter.strPALow = currentCharacter.strPALow.Replace("z", physAttackStat.Substring(2, 1)); currentCharacter.strMAHigh = currentCharacter.strMAHigh.Replace("x", magicAttackStat.Substring(0, 1)); currentCharacter.strMALow = currentCharacter.strMALow.Replace("y", magicAttackStat.Substring(1, 1)); currentCharacter.strMALow = currentCharacter.strMALow.Replace("z", magicAttackStat.Substring(2, 1)); } return(currentCharacter); }
private int PeepCodes(int intCounter) { for (int i = 2; i <= 16; i++) { FFTCharacter recruit = new FFTCharacter(); //bach.ResetStrings(); string tempName = "CatNoir"; if (dctCBOPeeps[i].Contains(tempName)) { string strLoc = string.Empty; //good recruit = FillRecruitStats(tempName, "32", "50", "0B0", "178", "198", "180", "238"); recruit.strSex = recruit.strSex.Replace("m", "4"); intCounter++; Append_CheatFile(i, recruit); //dctCBOPeeps.Remove(i); } tempName = "Fred"; if (dctCBOPeeps[i].Contains(tempName)) { string strLoc = string.Empty; //good recruit = FillRecruitStats(tempName, "41", "32", "0D8", "0B0", "1F8", "1B0", "198"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Jamie"; if (dctCBOPeeps[i].Contains(tempName)) { //NO GOOD recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Hendo"; if (dctCBOPeeps[i].Contains(tempName)) { string strLoc = string.Empty; //Good recruit = FillRecruitStats(tempName, "46", "23", "130", "0B0", "1B0", "1C8", "1C8"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Justin"; if (dctCBOPeeps[i].Contains(tempName)) { string strLoc = string.Empty; //Good recruit = FillRecruitStats(tempName, "37", "28", "170", "090", "198", "1F8", "1B0"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Sobjack"; if (dctCBOPeeps[i].Contains(tempName)) { //NO GOOD recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Huntress"; if (dctCBOPeeps[i].Contains(tempName)) { //GOOD recruit = FillRecruitStats(tempName, "46", "32", "0B0", "130", "1C8", "198", "1F8"); recruit.strSex = recruit.strSex.Replace("m", "4"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Ina"; if (dctCBOPeeps[i].Contains(tempName)) { //NO GOOD recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Kouri"; if (dctCBOPeeps[i].Contains(tempName)) { //NO GOOD recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Shane"; if (dctCBOPeeps[i].Contains(tempName)) { //NO GOOD recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Drew"; if (dctCBOPeeps[i].Contains(tempName)) { //NO GOOD recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Chuck"; if (dctCBOPeeps[i].Contains(tempName)) { //Good recruit = FillRecruitStats(tempName, "55", "46", "090", "0F0", "1E0", "198", "1B0"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Hippie"; if (dctCBOPeeps[i].Contains(tempName)) { //Good recruit = FillRecruitStats(tempName, "46", "37", "0D0", "0F0", "1C8", "1B0", "1C8"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Eric"; if (dctCBOPeeps[i].Contains(tempName)) { //NO GOOD recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Ambrozy"; if (dctCBOPeeps[i].Contains(tempName)) { //NO GOOD recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Marz"; if (dctCBOPeeps[i].Contains(tempName)) { //NO GOOD recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Irwin"; if (dctCBOPeeps[i].Contains(tempName)) { //NO GOOD recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } if (dctCBOPeeps[i].Contains("Billy")) { //NO GOOD recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } if (dctCBOPeeps[i].Contains("Bersche")) { //NO GOOD recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Brandon"; if (dctCBOPeeps[i].Contains(tempName)) { //Good recruit = FillRecruitStats(tempName, "32", "32", "150", "0D0", "1B0", "1E0", "198"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } if (dctCBOPeeps[i].Contains("Tom")) { //NO GOOD recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Inertia"; if (dctCBOPeeps[i].Contains(tempName)) { //Good recruit = FillRecruitStats(tempName, "46", "50", "0B0", "0D0", "1C8", "180", "230"); recruit.strSex = recruit.strSex.Replace("m", "4"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Thieme"; if (dctCBOPeeps[i].Contains(tempName)) { //GOOD recruit = FillRecruitStats(tempName, "37", "37", "150", "0F0", "198", "1C8", "1C8"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Constant"; if (dctCBOPeeps[i].Contains(tempName)) { //NO GOOD recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Satan"; if (dctCBOPeeps[i].Contains(tempName)) { //GOOD recruit = FillRecruitStats(tempName, "41", "41", "0D0", "0D0", "1E0", "168", "1C8"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } if (dctCBOPeeps[i].Contains("Jon")) { //No Good recruit.strSex = recruit.strSex.Replace("m", "8"); recruit = FillRecruitStats(tempName, "00", "00", "000", "000", "000", "000", "000"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Liam"; if (dctCBOPeeps[i].Contains(tempName)) { //Good recruit = FillRecruitStats(tempName, "55", "19", "130", "050", "218", "1E0", "150"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Fallout"; if (dctCBOPeeps[i].Contains(tempName)) { //Good recruit = FillRecruitStats(tempName, "46", "19", "0F0", "050", "230", "1C8", "150"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Chappy"; if (dctCBOPeeps[i].Contains(tempName)) { //Good recruit = FillRecruitStats(tempName, "50", "37", "130", "110", "180", "1C8", "1C8"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } tempName = "Stench"; if (dctCBOPeeps[i].Contains(tempName)) { //Good recruit = FillRecruitStats(tempName, "50", "37", "130", "110", "180", "1C8", "1C8"); recruit.strSex = recruit.strSex.Replace("m", "8"); intCounter++; Append_CheatFile(i, recruit); } } return(intCounter); }