[Help] Emme is asking for help?

11/09/2008 13:43 _Emme_#1
Hay guys. If you're noob, we press the Green <- Back button. Anyways, : This is really seldom I ask here for help,but anyways,someone of you might got an idea. Im going to code KOBoard in-game, like conquer has it,but not really sure how I would make it as a rank. Ive figured out a way to do it noobie style,but it looks kind of like this:

if (ThisKO > 1stKO)
{
ThisKO = 1stKO;

}
if (ThisKO > 2stKO && ThisKO != 1stKO)
{
ThisKO = 2stKO;

}


Well yeah,something like that,its really noobie,but I could figure out another way. Any ideas? Thanks in advice
11/09/2008 14:00 tanelipe#2
How many people can be on the KO board ? (If you do it CO style) I might have an idea how to do it.
11/09/2008 14:06 _Emme_#3
Like,250? dont think ive seen more than that. Tane, login msn and we'll talk about it there.
11/09/2008 14:34 tanelipe#4
Annnnd here's the code, you need to modify it a little bit so it'll work with what ever source you peeps using

Oh and this was just to test so it probably won't work on any pservers just like this; It's only there to give you some hints on how to do that.

Code:
  List<ushort> KOBoard = new List<ushort>(251);
            for (byte i = 0; i < 250; i++)
                KOBoard.Add((ushort)(i * 10));

            ushort KO_COUNT = 200;
            KOBoard.Add(KO_COUNT);
            KOBoard.Sort();
            KOBoard.RemoveAt(0);

            int Rank = 250 - KOBoard.FindIndex(delegate(ushort item)
            {
                return (item == KO_COUNT);
            });
If anyone has better method, feel free to share. :P