You can give me thanks, but also give pro4never thanks too if he posts here(even though I know he will post here lol).
Find in Mob.cs:
Code:
if (MyMath.ChanceSuccess(100))
{
Replace it with this:
Code:
if (MyMath.ChanceSuccess(100))
{
string acc = "";
int cpDroprate = 10;//rate of cp for server
int cpLow = 1;//min cp drop
int cpHigh = 25;// max cp drop
int cpMultiplyer = 5;// cp drop multiplier
double cpMobDropRate = (Convert.ToDouble(MobTarget.Level) / Convert.ToDouble(Char.Level)) * cpDroprate;
if (MyMath.ChanceSuccess(cpMobDropRate))
{
Random rand = new Random();
int cpBaseReward = rand.Next(cpLow, cpHigh);
int cpToAdd = cpBaseReward * cpMultiplyer;
Char.CPs += Convert.ToUInt32(cpToAdd);
Char.MyClient.LocalMessage(2005, "[CPs] You have gained: " + cpToAdd + " CPs for killing a(n) " + MobTarget.Name);
Database.SaveCharacter(Char, acc);
}
}






