|
#region Melee
#region Ranged
IncreaseExperience
public void IncreaseExperience(ServerSockets.Packet stream, double Experience, Enums.ExperienceEffect effect = Enums.ExperienceEffect.None)
{
if (Entity.CursedTimer > 2)
{
return;
}
if (Entity.Level < 140)
{
Experience *= Constants.ExtraExperienceRate;
Experience += Experience * Entity.Gems[3] / 100;
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);
}
}
static ulong[] levelExperience = new ulong
public static ulong LevelExperience(byte Level)
increaseexperience
public void increaseexperience(serversockets.packet stream, double experience, enums.experienceeffect effect = enums.experienceeffect.none)
{
if (entity.cursedtimer > 2)
{
return;
}
if (entity.level < 140)
{
experience *= constants.extraexperiencerate;
experience += experience * entity.gems[3] / 100;
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);
}
}
static ulong[] levelexperience = new ulong
public static ulong levelexperience(byte level)
static ulong[] levelExperience = new ulong[139] { 120, 180, 240, 360, 600, 960, 1200, 2400, 3600, 8400, 12000, 14400, 18000, 21600, 22646, 32203, 37433, 47556, 56609, 68772, 70515, 75936, 97733, 114836, 120853, 123981, 126720, 145878, 173436, 197646, 202451, 212160, 244190, 285823, 305986, 312864, 324480, 366168, 433959, 460590, 506738, 569994, 728527, 850829, 916479, 935118, 940800, 1076593, 1272780, 1357994, 1384861, 1478400, 1632438, 1903104, 2066042, 2104924, 1921085, 2417202, 2853462, 3054574, 3111217, 3225600, 3810962, 4437896, 4880605, 4970962, 5107200, 5652518, 6579162, 6877991, 7100700, 7157657, 9106860, 10596398, 11220549, 11409192, 11424000, 12882952, 15172807, 15896990, 16163799, 16800000, 19230280, 22365208, 23819312, 24219528, 24864000, 27200077, 32033165, 33723801, 34291317, 34944000, 39463523, 45878567, 48924236, 49729220, 51072000, 55808379, 64870058, 68391931, 69537026, 76422968, 96950789, 112676755, 120090482, 121798280, 127680000, 137446887, 193715970, 408832150, 454674685, 461125885, 469189885, 477253885, 480479485, 485317885, 493381885, 580580046, 717424987, 282274058, 338728870, 406474644, 487769572, 585323487, 702388184, 842865821, 1011438985, 1073741823, 1073741823, 8589134588, 25767403764, 77302211292, 231906633876, 347859950814, 447859950814, 447859950814,447859950814,447859950814,447859950814 };
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
مشكلة في سورس رايزو | محمودمحمدسالم | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2020-04-21 11:23 AM |
مش عارف اعدل اللفل اللي الشخصيه بتنزل بي من القاعده مش راضي سورس فايرس | magdy | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-03-15 09:35 PM |
مشكلة فى سورس رايزو | nova | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2019-11-22 02:11 PM |
مشكلة فى سورس رايزو | nova | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-11-22 01:53 PM |
مشكلة فى سورس رايزو | nova | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-11-22 01:48 PM |