Opywang

Member
Hi I am wanting to control how many monster spawn per level like for an example.

Level 1 - 200 kills
Level 2 - 100 kills
Level 3 - 50 kills
Level 4 - 25 kills
Level 5 - 12 kills

I found something in championspawn.cs, but it isn't making sense, and I am not sure if that is the right place to do it.

Code:
// Only really needed once.
                if (this.m_Kills > kills)
                    this.InvalidateProperties();

                double n = this.m_Kills / (double)this.MaxKills;
                int p = (int)(n * 100);

                if (p >= 90)
                    this.AdvanceLevel();
                else if (p > 0)
                    this.SetWhiteSkullCount(p / 20);

                if (DateTime.UtcNow >= this.m_ExpireTime)
                    this.Expire();

                this.Respawn();
            }
 
Last edited:
In ChampionSystem.cs you have
Code:
            m_MaxKill[0] = Config.Get("Champions.Rank1MaxKills", 256);
            m_MaxKill[1] = Config.Get("Champions.Rank2MaxKills", 128);
            m_MaxKill[2] = Config.Get("Champions.Rank3MaxKills", 64);
            m_MaxKill[3] = Config.Get("Champions.Rank4MaxKills", 32);
and in Champions.cfg you have
Code:
 Number of kills needed to advance from level to level while in rank 1
Rank1MaxKills=256

# Number of kills needed to advance from level to level while in rank 2
Rank2MaxKills=128

# Number of kills needed to advance from level to level while in rank 3
Rank3MaxKills=64

# Number of kills needed to advance from level to level while in rank 4
Rank4MaxKills=32
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back