|
المشاركات 32 |
+التقييم 0.03 |
تاريخ التسجيل Jul 2021 |
الاقامة |
نظام التشغيل |
رقم العضوية 3935 |
public void IncreaseExperience(ServerSockets.Packet stream, double Experience, Enums.ExperienceEffect effect = Enums.ExperienceEffect.None)
{
if (Entity.CursedTimer > 2)
{
return;
}
if (Entity.Level < 140)
{
Experience = this.ExpBall;
if (effect != Enums.ExperienceEffect.None)
{
//Entity.SendString(stream, Game.MsgServer.MsgStringPacket.StringID.Effect, true, new string[1] { effect.ToString() });
}
if (Entity.Level >= 130 && Entity.Level < 140)
Experience *= 10;
else if (Entity.Level >= 1 && Entity.Level < 130)
Experience *= 300;
Experience *= Constants.ExtraExperienceRate;
Experience += (uint)(Experience * 20 / 100);
Experience += Experience * Entity.Gems[3] / 300;
if (Entity.DoubleExperienceTime > 0)
Experience *= 2;
if (Entity.MapID == 1039)
Experience /= 100;
Entity.Experience += (ulong)Experience;
byte level = Entity.Level;
while (Entity.Experience >= Database.DataHolder.LevelExperience(Entity.Level) && Entity.Level < 140)
{
Entity.Experience -= Database.DataHolder.LevelExperience(Entity.Level);
level++;
if (level >= 140)
{
Entity.Experience = 0;
}
}
UpdateLevel(stream, level);
Entity.Level = level;
UpdateRebornLastLevel(stream);
Entity.SendUpdate(stream, (long)Entity.Experience, Game.MsgServer.MsgUpdate.DataType.Experience, false);
}
} public void IncreaseExperience(ServerSockets.Packet stream, double Experience, Enums.ExperienceEffect effect = Enums.ExperienceEffect.None)
{
if (Entity.CursedTimer > 2)
{
return;
}
if (Entity.Level < 140)
{
Experience = this.ExpBall;
if (effect != Enums.ExperienceEffect.None)
{
//Entity.SendString(stream, Game.MsgServer.MsgStringPacket.StringID.Effect, true, new string[1] { effect.ToString() });
}
if (Entity.Level >= 130 && Entity.Level < 140)
Experience *= 10;
else if (Entity.Level >= 1 && Entity.Level < 130)
Experience *= 300;
Experience *= Constants.ExtraExperienceRate;
Experience += (uint)(Experience * 20 / 100);
Experience += Experience * Entity.Gems[3] / 300;
if (Entity.DoubleExperienceTime > 0)
Experience *= 2;
if (Entity.MapID == 1039)
Experience /= 100;
Entity.Experience += (ulong)Experience;
byte level = Entity.Level;
while (Entity.Experience >= Database.DataHolder.LevelExperience(Entity.Level) && Entity.Level < 140)
{
Entity.Experience -= Database.DataHolder.LevelExperience(Entity.Level);
level++;
if (level >= 140)
{
Entity.Experience = 0;
}
}
UpdateLevel(stream, level);
Entity.Level = level;
UpdateRebornLastLevel(stream);
Entity.SendUpdate(stream, (long)Entity.Experience, Game.MsgServer.MsgUpdate.DataType.Experience, false);
}
}
public void IncreaseExperience(ServerSockets.Packet stream, double Experience, Enums.ExperienceEffect effect = Enums.ExperienceEffect.None)
{
if (Entity.CursedTimer > 2)
{
return;
}
if (Entity.Level < 140)
{
Experience = this.ExpBall;
if (effect != Enums.ExperienceEffect.None)
{
//Entity.SendString(stream, Game.MsgServer.MsgStringPacket.StringID.Effect, true, new string[1] { effect.ToString() });
}
if (Entity.Level >= 130 && Entity.Level < 140)
Experience *= 10;
else if (Entity.Level >= 1 && Entity.Level < 130)
Experience *= 300;
Experience *= Constants.ExtraExperienceRate;
Experience += (uint)(Experience * 20 / 100);
Experience += Experience * Entity.Gems[3] / 300;
if (Entity.DoubleExperienceTime > 0)
Experience *= 2;
if (Entity.MapID == 1039)
Experience /= 100;
Entity.Experience += (ulong)Experience;
byte level = Entity.Level;
while (Entity.Experience >= Database.DataHolder.LevelExperience(Entity.Level) && Entity.Level < 140)
{
Entity.Experience -= Database.DataHolder.LevelExperience(Entity.Level);
level++;
if (level >= 140)
{
Entity.Experience = 0;
}
}
UpdateLevel(stream, level);
Entity.Level = level;
UpdateRebornLastLevel(stream);
Entity.SendUpdate(stream, (long)Entity.Experience, Game.MsgServer.MsgUpdate.DataType.Experience, false);
}
} public void IncreaseExperience(ServerSockets.Packet stream, double Experience, Enums.ExperienceEffect effect = Enums.ExperienceEffect.None)
{
if (Entity.CursedTimer > 2)
{
return;
}
if (Entity.Level < 140)
{
Experience = this.ExpBall;
if (effect != Enums.ExperienceEffect.None)
{
//Entity.SendString(stream, Game.MsgServer.MsgStringPacket.StringID.Effect, true, new string[1] { effect.ToString() });
}
if (Entity.Level >= 130 && Entity.Level < 140)
Experience *= 10;
else if (Entity.Level >= 1 && Entity.Level < 130)
Experience *= 300;
Experience *= Constants.ExtraExperienceRate;
Experience += (uint)(Experience * 20 / 100);
Experience += Experience * Entity.Gems[3] / 300;
if (Entity.DoubleExperienceTime > 0)
Experience *= 2;
if (Entity.MapID == 1039)
Experience /= 100;
Entity.Experience += (ulong)Experience;
byte level = Entity.Level;
while (Entity.Experience >= Database.DataHolder.LevelExperience(Entity.Level) && Entity.Level < 140)
{
Entity.Experience -= Database.DataHolder.LevelExperience(Entity.Level);
level++;
if (level >= 140)
{
Entity.Experience = 0;
}
}
UpdateLevel(stream, level);
Entity.Level = level;
UpdateRebornLastLevel(stream);
Entity.SendUpdate(stream, (long)Entity.Experience, Game.MsgServer.MsgUpdate.DataType.Experience, false);
}
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
مشكلة في سورس رايزو v4 | hawary | مشكلات السيرفيرات كونكر الشخصيه | 6 | 2021-08-01 01:39 PM |
مشكلة في سورس رايزو | Avengers-Co | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2020-03-21 05:28 PM |
مشكلة فى سورس رايزو | nova | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-11-22 06:00 PM |
مشكلة فى سورس رايزو | nova | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-11-22 06:00 PM |
مشكلة في سورس رايزو | manshestar | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2019-07-27 03:43 PM |