|
@@ -97,7 +97,7 @@ Player::Player(){
|
|
|
guild = 0;
|
|
|
following = false;
|
|
|
combat_target = 0;
|
|
|
- InitXPTable();
|
|
|
+ //InitXPTable();
|
|
|
pending_deletion = false;
|
|
|
spawn_vis_struct = 0;
|
|
|
spawn_pos_struct = 0;
|
|
@@ -4091,9 +4091,9 @@ void Player::SetNeededXP(){
|
|
|
int16 level = GetLevel() + 1;
|
|
|
// If next level is beyond what we have in the map multiply the last value we have by how many levels we are over plus one
|
|
|
if (level > 95)
|
|
|
- SetNeededXP(m_levelXPReq[95] * ((level - 95) + 1));
|
|
|
+ SetNeededXP(database.GetMysqlExpCurve(95)* ((level - 95) + 1));
|
|
|
else
|
|
|
- SetNeededXP(m_levelXPReq[level]);
|
|
|
+ SetNeededXP(database.GetMysqlExpCurve(level));
|
|
|
}
|
|
|
|
|
|
void Player::SetXP(int32 val){
|
|
@@ -6404,100 +6404,11 @@ void Player::SaveHistory() {
|
|
|
}
|
|
|
|
|
|
void Player::InitXPTable() {
|
|
|
- m_levelXPReq[2] = 600;
|
|
|
- m_levelXPReq[3] = 800;
|
|
|
- m_levelXPReq[4] = 1000;
|
|
|
- m_levelXPReq[5] = 1400;
|
|
|
- m_levelXPReq[6] = 1800;
|
|
|
- m_levelXPReq[7] = 2200;
|
|
|
- m_levelXPReq[8] = 2600;
|
|
|
- m_levelXPReq[9] = 3000;
|
|
|
- m_levelXPReq[10] = 3400;
|
|
|
- m_levelXPReq[11] = 3800;
|
|
|
- m_levelXPReq[12] = 4200;
|
|
|
- m_levelXPReq[13] = 4600;
|
|
|
- m_levelXPReq[14] = 5000;
|
|
|
- m_levelXPReq[15] = 5500;
|
|
|
- m_levelXPReq[16] = 6000;
|
|
|
- m_levelXPReq[17] = 6500;
|
|
|
- m_levelXPReq[18] = 7000;
|
|
|
- m_levelXPReq[19] = 7500;
|
|
|
- m_levelXPReq[20] = 8000;
|
|
|
- m_levelXPReq[21] = 8500;
|
|
|
- m_levelXPReq[22] = 9000;
|
|
|
- m_levelXPReq[23] = 9500;
|
|
|
- m_levelXPReq[24] = 10000;
|
|
|
- m_levelXPReq[25] = 10500;
|
|
|
- m_levelXPReq[26] = 11000;
|
|
|
- m_levelXPReq[27] = 11750;
|
|
|
- m_levelXPReq[28] = 12500;
|
|
|
- m_levelXPReq[29] = 13250;
|
|
|
- m_levelXPReq[30] = 14000;
|
|
|
- m_levelXPReq[31] = 14750;
|
|
|
- m_levelXPReq[32] = 15500;
|
|
|
- m_levelXPReq[33] = 16250;
|
|
|
- m_levelXPReq[34] = 17000;
|
|
|
- m_levelXPReq[35] = 17750;
|
|
|
- m_levelXPReq[36] = 18500;
|
|
|
- m_levelXPReq[37] = 19250;
|
|
|
- m_levelXPReq[38] = 20000;
|
|
|
- m_levelXPReq[39] = 20750;
|
|
|
- m_levelXPReq[40] = 21500;
|
|
|
- m_levelXPReq[41] = 22250;
|
|
|
- m_levelXPReq[42] = 23000;
|
|
|
- m_levelXPReq[43] = 24000;
|
|
|
- m_levelXPReq[44] = 25000;
|
|
|
- m_levelXPReq[45] = 26000;
|
|
|
- m_levelXPReq[46] = 27000;
|
|
|
- m_levelXPReq[47] = 28000;
|
|
|
- m_levelXPReq[48] = 29250;
|
|
|
- m_levelXPReq[49] = 30500;
|
|
|
- m_levelXPReq[50] = 32000;
|
|
|
- m_levelXPReq[51] = 33750;
|
|
|
- m_levelXPReq[52] = 35750;
|
|
|
- m_levelXPReq[53] = 38000;
|
|
|
- m_levelXPReq[54] = 40500;
|
|
|
- m_levelXPReq[55] = 42500;
|
|
|
- m_levelXPReq[56] = 45500;
|
|
|
- m_levelXPReq[57] = 48500;
|
|
|
- m_levelXPReq[58] = 51500;
|
|
|
- m_levelXPReq[59] = 54500;
|
|
|
- m_levelXPReq[60] = 57500;
|
|
|
- m_levelXPReq[61] = 60500;
|
|
|
- m_levelXPReq[62] = 63500;
|
|
|
- m_levelXPReq[63] = 66500;
|
|
|
- m_levelXPReq[64] = 70000;
|
|
|
- m_levelXPReq[65] = 73500;
|
|
|
- m_levelXPReq[66] = 77000;
|
|
|
- m_levelXPReq[67] = 80500;
|
|
|
- m_levelXPReq[68] = 84000;
|
|
|
- m_levelXPReq[69] = 87500;
|
|
|
- m_levelXPReq[70] = 91000;
|
|
|
- m_levelXPReq[71] = 94500;
|
|
|
- m_levelXPReq[72] = 98000;
|
|
|
- m_levelXPReq[73] = 101500;
|
|
|
- m_levelXPReq[74] = 105000;
|
|
|
- m_levelXPReq[75] = 108500;
|
|
|
- m_levelXPReq[76] = 116500;
|
|
|
- m_levelXPReq[77] = 132500;
|
|
|
- m_levelXPReq[78] = 152500;
|
|
|
- m_levelXPReq[79] = 172500;
|
|
|
- m_levelXPReq[80] = 192500;
|
|
|
- m_levelXPReq[81] = 212500;
|
|
|
- m_levelXPReq[82] = 232500;
|
|
|
- m_levelXPReq[83] = 252500;
|
|
|
- m_levelXPReq[84] = 272500;
|
|
|
- m_levelXPReq[85] = 292500;
|
|
|
- m_levelXPReq[86] = 312500;
|
|
|
- m_levelXPReq[87] = 332500;
|
|
|
- m_levelXPReq[88] = 352500;
|
|
|
- m_levelXPReq[89] = 372500;
|
|
|
- m_levelXPReq[90] = 392500;
|
|
|
- m_levelXPReq[91] = 863550;
|
|
|
- m_levelXPReq[92] = 949905;
|
|
|
- m_levelXPReq[93] = 1044895;
|
|
|
- m_levelXPReq[94] = 1149385;
|
|
|
- m_levelXPReq[95] = 1264323;
|
|
|
+ int i = 2;
|
|
|
+ while (i >= 2 && i <= 95) {
|
|
|
+ m_levelXPReq[i] = database.GetMysqlExpCurve(i);
|
|
|
+ i++;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void Player::SendQuestRequiredSpawns(int32 quest_id){
|