Well since many are asking for it here it is.
Credits to me and whoever helped me with this.
I forgot who it was >.<
Well first you are going to OldCODB and make a folder called Tops.
In the folder create ten text files and name them each this:
TopWarrior
TopNinja
TopTrojan
TopArcher
TopWater
TopFire
TopLeader
TopDeputy
PkMonth
PkWeek
Before anything else go to the TOP of datbase.cs and insert this:
Code:
using NewestCOServer.Game;
After that go to database.cs and search for
Code:
Features.QuizShow.AllQuestions.Clear();
Under that next } put this.
Code:
public static void LoadTopLeader(StatusEffectEn Value, Main.GameClient GC)
{
if (File.Exists(@"C:\OldCODB\Tops\TopLeader.txt"))
{
string[] AllLines = System.IO.File.ReadAllLines(@"C:\OldCODB\Tops\TopLeader.txt");
int TopLeader = AllLines.Length;
for (int x = 0; x < TopLeader; x++)
{
string[] TopGuildLeaderz = AllLines[x].Split('#');
string CharID = TopGuildLeaderz[0];
string GuildHalo = TopGuildLeaderz[1];
if (TopGuildLeaderz.Contains(GC.MyChar.EntityID.ToString()) && CharID.Contains(GC.MyChar.EntityID.ToString()))
{
Program.WriteLine(GuildHalo); // A check if it reads it right.
if (GuildHalo == "17179869184")
GC.MyChar.StatEff.Add(StatusEffectEn.TopGuildLeader);
}
}
}
}
public static void LoadTopDeputy(StatusEffectEn Value, Main.GameClient GC)
{
if (File.Exists(@"C:\OldCODB\Tops\TopDeputy.txt"))
{
string[] AllLines = System.IO.File.ReadAllLines(@"C:\OldCODB\Tops\TopDeputy.txt");
int TopDeputy = AllLines.Length;
for (int x = 0; x < TopDeputy; x++)
{
string[] TopGuildDeputyz = AllLines[x].Split('#');
string CharID = TopGuildDeputyz[0];
string DeputyHalo = TopGuildDeputyz[1];
if (TopGuildDeputyz.Contains(GC.MyChar.EntityID.ToString()) && CharID.Contains(GC.MyChar.EntityID.ToString()))
{
Program.WriteLine(DeputyHalo); // A check if it reads it right.
if (DeputyHalo == "34359738368")
GC.MyChar.StatEff.Add(StatusEffectEn.TopDeputyLeader);
}
}
}
}
public static void LoadPkWeek(StatusEffectEn Value, Main.GameClient GC)
{
if (File.Exists(@"C:\OldCODB\Tops\PkWeek.txt"))
{
string[] AllLines = System.IO.File.ReadAllLines(@"C:\OldCODB\Tops\PkWeek.txt");
int PkWeek = AllLines.Length;
for (int x = 0; x < PkWeek; x++)
{
string[] WeeklyPK = AllLines[x].Split('#');
string CharID = WeeklyPK[0];
string WeekHalo = WeeklyPK[1];
if (WeeklyPK.Contains(GC.MyChar.EntityID.ToString()) && CharID.Contains(GC.MyChar.EntityID.ToString()))
{
Program.WriteLine(WeekHalo); // A check if it reads it right.
if (WeekHalo == "137438953472")
GC.MyChar.StatEff.Add(StatusEffectEn.WeeklyPKChampion);
}
}
}
}
public static void LoadTopTrojan(StatusEffectEn Value, Main.GameClient GC)
{
if (File.Exists(@"C:\OldCODB\Tops\TopTrojan .txt"))
{
string[] AllLines = System.IO.File.ReadAllLines(@"C:\OldCODB\Tops\TopTrojan.txt");
int TopTrojan = AllLines.Length;
for (int x = 0; x < TopTrojan; x++)
{
string[] TopTro = AllLines[x].Split('#');
string CharID = TopTro[0];
string TroHalo = TopTro[1];
if (TopTro.Contains(GC.MyChar.EntityID.ToString()) && CharID.Contains(GC.MyChar.EntityID.ToString()))
{
Program.WriteLine(TroHalo); // A check if it reads it right.
if (TroHalo == "549755813888")
GC.MyChar.StatEff.Add(StatusEffectEn.TopTrojan);
}
}
}
}
public static void LoadTopWarrior(StatusEffectEn Value, Main.GameClient GC)
{
if (File.Exists(@"C:\OldCODB\Tops\TopWarrior.txt"))
{
string[] AllLines = System.IO.File.ReadAllLines(@"C:\OldCODB\Tops\TopWarrior.txt");
int TopWarrior = AllLines.Length;
for (int x = 0; x < TopWarrior; x++)
{
string[] TopWar = AllLines[x].Split('#');
string CharID = TopWar[0];
string WarHalo = TopWar[1];
if (TopWar.Contains(GC.MyChar.EntityID.ToString()) && CharID.Contains(GC.MyChar.EntityID.ToString()))
{
Program.WriteLine(WarHalo); // A check if it reads it right.
if (WarHalo == "274877906944")
GC.MyChar.StatEff.Add(StatusEffectEn.TopWarrior);
}
}
}
}
public static void LoadTopArcher(StatusEffectEn Value, Main.GameClient GC)
{
if (File.Exists(@"C:\OldCODB\Tops\TopArcher.txt"))
{
string[] AllLines = System.IO.File.ReadAllLines(@"C:\OldCODB\Tops\TopArcher.txt");
int TopArcher = AllLines.Length;
for (int x = 0; x < TopArcher; x++)
{
string[] TopArch = AllLines[x].Split('#');
string CharID = TopArch[0];
string ArchHalo = TopArch[1];
if (TopArch.Contains(GC.MyChar.EntityID.ToString()) && CharID.Contains(GC.MyChar.EntityID.ToString()))
{
Program.WriteLine(ArchHalo); // A check if it reads it right.
if (ArchHalo == "1099511627776")
GC.MyChar.StatEff.Add(StatusEffectEn.TopArcher);
}
}
}
}
public static void LoadTopNinja(StatusEffectEn Value, Main.GameClient GC)
{
if (File.Exists(@"C:\OldCODB\Tops\TopNinja.txt"))
{
string[] AllLines = System.IO.File.ReadAllLines(@"C:\OldCODB\Tops\TopNinja.txt");
int TopNinja = AllLines.Length;
for (int x = 0; x < TopNinja; x++)
{
string[] TopNin = AllLines[x].Split('#');
string CharID = TopNin[0];
string NinHalo = TopNin[1];
if (TopNin.Contains(GC.MyChar.EntityID.ToString()) && CharID.Contains(GC.MyChar.EntityID.ToString()))
{
Program.WriteLine(NinHalo); // A check if it reads it right.
if (NinHalo == "8796093022208")
GC.MyChar.StatEff.Add(StatusEffectEn.TopNinja);
}
}
}
}
public static void LoadTopFire(StatusEffectEn Value, Main.GameClient GC)
{
if (File.Exists(@"C:\OldCODB\Tops\TopFire.txt"))
{
string[] AllLines = System.IO.File.ReadAllLines(@"C:\OldCODB\Tops\TopFire.txt");
int TopFire = AllLines.Length;
for (int x = 0; x < TopFire; x++)
{
string[] TopFirez = AllLines[x].Split('#');
string CharID = TopFirez[0];
string FireHalo = TopFirez[1];
if (TopFirez.Contains(GC.MyChar.EntityID.ToString()) && CharID.Contains(GC.MyChar.EntityID.ToString()))
{
Program.WriteLine(FireHalo); // A check if it reads it right.
if (FireHalo == "4398046511104")
GC.MyChar.StatEff.Add(StatusEffectEn.TopFireTaoist);
}
}
}
}
public static void LoadTopWater(StatusEffectEn Value, Main.GameClient GC)
{
if (File.Exists(@"C:\OldCODB\Tops\TopWater.txt"))
{
string[] AllLines = System.IO.File.ReadAllLines(@"C:\OldCODB\Tops\TopWater.txt");
int TopWater = AllLines.Length;
for (int x = 0; x < TopWater; x++)
{
string[] TopWaterz = AllLines[x].Split('#');
string CharID = TopWaterz[0];
string WaterHalo = TopWaterz[1];
if (TopWaterz.Contains(GC.MyChar.EntityID.ToString()) && CharID.Contains(GC.MyChar.EntityID.ToString()))
{
Program.WriteLine(WaterHalo); // A check if it reads it right.
if (WaterHalo == "2199023255552")
GC.MyChar.StatEff.Add(StatusEffectEn.TopWaterTaoist);
}
}
}
}
it says the "StatusEffectEn" is incorrect, something like it.
-Second (telport.cs).. the lines to put above> if (Game.World.KOBoard[0].Name == GC.MyChar.Name)
here error too.. says some words on lines are incorrect(in all lines)
I created the folders and replaced the guild director code for urs and as far i tested its saving the top GL and GL halos (sure, DL only one saving)
Note: the source source i use isnt urs so thats can be the reason of the errors i listed cuz i noted in teleport.cs for example.. above that line is alredy a code with lines similars to urs.