تيم اكسور5 تيم اكسور5
بلوجر

آخر الأخبار

بلوجر
random
جاري التحميل ...
random

لكل من يعانى من مشكله تسيف الاسكلات والان مع الحل النهائى

لكل من يعانى من مشكله تسيف الاسكلات فى بعض السورسات مثل تروزينا وغيره 
اليك الان الحل النهائى لهذه المشكله 

الشرح بالكامل


وهذا الخطا هوا ترتيب الاكواد فقط فى السورس
قم بالبحث عن 


public static void LoadEntity(GameClient client
وتبدل اللود كله بهذا اللود

public static void LoadEntity(GameClient client)
{
try
{
client.ReadyToPlay();
if (Database.EntityTable.LoadEntity(client))
{
if (client.Entity.FullyLoaded)
{
if (ItemPosition(client.BackupArmorLook) == ConquerItem.Garment) client.BackupArmorLook = 0;
if (ItemPosition(client.ArmorLook) == ConquerItem.Garment) client.ArmorLook = 0;
if (client.BackupArmorLook != 0) client.SetNewArmorLook(client.BackupArmorLook);
client.SetNewHeadgearLook(client.HeadgearLook);
client.BackupArmorLook = 0;
client.LoadData();
Database.EntityTable.TryReset(client);
if (client.Entity.GuildID != 0)
{
client.Entity.GuildBattlePower = client.Guild.GetSharedBattlepower(client.Entity.GuildRank);
}
client.ReviewMentor();
if (client.JustCreated)
{
client.JustCreated = false;
client.ItemGive = true;
SetLocation(new Data(true) { UID = client.Entity.UID }, client);
}
client.Send(new Message("Enjoy Conquer Online!", System.Drawing.Color.Yellow, Message.Talk));
}
else
{
client.Send(new Message("Error Loading Your Character!", "ALLUSERS", System.Drawing.Color.Orange, GamePackets.Message.Dialog));
client.Disconnect(false);
}
}
else
{
client.Send(new Message("Error Loading Your Character!", "ALLUSERS", System.Drawing.Color.Orange, GamePackets.Message.Dialog));
client.Disconnect(false);
}
client.Send(new Message("ANSWER_OK", "ALLUSERS", System.Drawing.Color.Orange, GamePackets.Message.Dialog));
#region Top By MokshA
if (client.Map.BaseID == 1844 || client.Entity.MapID == 8527
|| client.Entity.MapID == 8523 || client.Entity.MapID == 8526
|| client.Entity.MapID == 8512 || client.Entity.MapID == 8518
|| client.Entity.MapID == 8514 || client.Entity.MapID == 8511
|| client.Entity.MapID == 8522 || client.Entity.MapID == 8510
|| client.Entity.MapID == 8516 || client.Entity.MapID == 8525
|| client.Entity.MapID == 8519 || client.Entity.MapID == 8524
|| client.Entity.MapID == 8521 || client.Entity.MapID == 1508
|| client.Entity.MapID == 8520 || client.Entity.MapID == 1707
|| client.Entity.MapID == 8515 || client.Entity.MapID == 1458
|| client.Entity.MapID == 1459 || client.Entity.MapID == 1460
|| client.Entity.MapID == 4444 || client.Entity.MapID == 20000
|| client.Entity.MapID == 3825 || client.Entity.MapID == 1617
|| client.Entity.MapID == 1035 || client.Entity.MapID == 1615
|| client.Entity.MapID == 1099 || client.Entity.MapID == 4573
|| client.Entity.MapID == 4574 || client.Entity.MapID == 4575
|| client.Entity.MapID == 4576 || client.Entity.MapID == 4577
|| client.Entity.MapID == 4578 || client.Entity.MapID == 4825
|| client.Entity.MapID == 1601 || client.Entity.MapID == 10550)
client.Entity.Teleport(1002, 300, 279);//mokshamap
#endregion
Program.World.Register(client);
Kernel.GamePool[client.Account.EntityID] = client;
Database.EntityTable.UpdateOnlineStatus(client, true);
#region Character Information
client.Send(new GamePackets.CharacterInfo(client));
#endregion
client.Account.Save(client);
if (!client.LoggedIn)
{
Program.UpdateConsoleTitle();
client.LoggedIn = true;
client.Action = 2;
}
#region Revive If The Player Dead
if (client.Entity.Hitpoints == 0)
client.Entity.Hitpoints = 1;
#endregion
#region ServerTime Packet
DateTime Now64 = DateTime.Now;
DateTime now = DateTime.Now;
ServerTime time = new ServerTime();
time.Year = (uint)DateTime.Now.Year;
time.Month = (uint)DateTime.Now.Month;
time.DayOfYear = (uint)DateTime.Now.DayOfYear;
time.DayOfMonth = (uint)DateTime.Now.Day;
time.Hour = (uint)DateTime.Now.Hour;
time.Minute = (uint)DateTime.Now.Minute;
time.Second = (uint)DateTime.Now.Second;
client.Send(time);
#endregion
#region Load Items And Equipment
foreach (ConquerItem item in client.Inventory.Objects)
item.Send(client);

foreach (ConquerItem item in client.Equipment.Objects)
{
if (item != null)
{
if (Database.ConquerItemInformation.BaseInformations.ContainsKey(item.ID))
{
item.Send(client);
}
else
{
client.Equipment.DestroyArrow(item.Position);
}
}
}
client.LoadItemStats();
if (!client.Equipment.Free(5))
{
if (IsArrow(client.Equipment.TryGetItem(5).ID))
{
if (client.Equipment.Free(4))
client.Equipment.DestroyArrow(5);
else
{
if (client.Equipment.TryGetItem(4).ID / 1000 != 500)
client.Equipment.DestroyArrow(5);
}
}
}
client.GemAlgorithm();
client.CalculateStatBonus();
client.CalculateHPBonus();
client.Equipment.UpdateEntityPacket();
#endregion
#region SecondaryPassword

if (client.WarehousePW != 0 && client.ForgetWHPass == false)
{
WareHousePassword whp = new WareHousePassword(true);
whp.type = WareHousePassword.PasswordCorrect;
whp.OldPassword = 0x1;
client.Send(whp);
}
else if (client.WarehousePW != 0 && client.ForgetWHPass == true)
{
WareHousePassword whp = new WareHousePassword(true);
whp.type = WareHousePassword.Termination;
whp.OldPassword = 0x1;
whp.NewPassword = client.ForgetWHPassDate;
client.Send(whp);
}
#endregion
#region Chi
client.Send(new ChiPowers(true).Query(client));
SendChiRankings(new GenericRanking(true) { Mode = GenericRanking.QueryCount }, client);
#endregion
#region Achivement
client.Entity.MyAchievement.Send();
#endregion
#region Nobility
NobilityInfo update = new NobilityInfo(true);
update.Type = NobilityInfo.Icon;
update.dwParam = client.NobilityInformation.EntityUID;
update.UpdateString(client.NobilityInformation);
client.Send(update);
#endregion
#region MentorInformation
if (client.Mentor != null)
{
if (client.Mentor.IsOnline)
{
MentorInformation Information = new MentorInformation(true);
Information.Mentor_Type = 1;
Information.Mentor_ID = client.Mentor.Client.Entity.UID;
Information.Apprentice_ID = client.Entity.UID;
Information.Enrole_Date = client.Mentor.EnroleDate;
Information.Mentor_Level = client.Mentor.Client.Entity.Level;
Information.Mentor_Class = client.Mentor.Client.Entity.Class;
Information.Mentor_PkPoints = client.Mentor.Client.Entity.PKPoints;
Information.Mentor_Mesh = client.Mentor.Client.Entity.Mesh;
Information.Mentor_Online = true;
Information.Shared_Battle_Power = client.Entity.BattlePowerFrom(client.Mentor.Client.Entity);
Information.String_Count = 3;
Information.Mentor_Name = client.Mentor.Client.Entity.Name;
Information.Apprentice_Name = client.Entity.Name;
Information.Mentor_Spouse_Name = client.Mentor.Client.Entity.Spouse;
client.ReviewMentor();
client.Send(Information);

ApprenticeInformation AppInfo = new ApprenticeInformation();
AppInfo.Apprentice_ID = client.Entity.UID;
AppInfo.Apprentice_Level = client.Entity.Level;
AppInfo.Apprentice_Class = client.Entity.Class;
AppInfo.Apprentice_PkPoints = client.Entity.PKPoints;
AppInfo.Apprentice_Experience = client.AsApprentice.Actual_Experience;
AppInfo.Apprentice_Composing = client.AsApprentice.Actual_Plus;
AppInfo.Apprentice_Blessing = client.AsApprentice.Actual_HeavenBlessing;
AppInfo.Apprentice_Name = client.Entity.Name;
AppInfo.Apprentice_Online = true;
AppInfo.Apprentice_Spouse_Name = client.Entity.Spouse;
AppInfo.Enrole_date = client.Mentor.EnroleDate;
AppInfo.Mentor_ID = client.Mentor.ID;
AppInfo.Mentor_Mesh = client.Mentor.Client.Entity.Mesh;
AppInfo.Mentor_Name = client.Mentor.Name;
AppInfo.Type = 2;
client.Mentor.Client.Send(AppInfo);
}
else
{
MentorInformation Information = new MentorInformation(true);
Information.Mentor_Type = 1;
Information.Mentor_ID = client.Mentor.ID;
Information.Apprentice_ID = client.Entity.UID;
Information.Enrole_Date = client.Mentor.EnroleDate;
Information.Mentor_Online = false;
Information.String_Count = 2;
Information.Mentor_Name = client.Mentor.Name;
Information.Apprentice_Name = client.Entity.Name;
client.Send(Information);
}
}
#endregion
#region Appearance
ChangeAppearance(client, (Enums.AppearanceType)client.Appearance);
#endregion
#region Mentor BP
if (client.Entity.MentorBattlePower != 0)
client.Entity.Update(Network.GamePackets.Update.MentorBattlePower, client.Entity.MentorBattlePower, false);
#endregion
#region New Titles
if (client.Entity.Titles.Count > 0)
{
TitlePacket tpacket = new TitlePacket(true);
tpacket.Identifier = client.Entity.UID;
tpacket.Title = client.Entity.MyTitle;
tpacket.Type = TitlePacket.Types.Switch;
tpacket.Count = 1;
tpacket.Add((byte)client.Entity.MyTitle);
client.Entity.MyTitle = tpacket.Title;
client.Send(tpacket);
}
#endregion
#region MapInformation
client.Send(new MapStatus() { BaseID = client.Map.BaseID, ID = client.Map.ID, Status = Database.MapsTable.MapInformations[client.Map.ID].Status, Weather = Database.MapsTable.MapInformations[client.Map.ID].Weather });
#endregion
#region Analayze Skills
RemoveBadSkills(client);
if (client.Entity.Class >= 40 && client.Entity.Class <= 45)
{
client.RemoveSpell(new Spell(true) { ID = 1025 });//SuperMan
}
if (client.Entity.Class >= 142 && client.Entity.Class <= 145)
{
client.RemoveSpell(new Spell(true) { ID = 6002 });//PiosnStar
}
if (client.Entity.Class >= 60 && client.Entity.Class <= 65)
{
client.RemoveSpell(new Spell(true) { ID = 1025 });//Superman
}
if (client.Entity.Class >= 132 && client.Entity.Class <= 135)
{
client.RemoveSpell(new Spell(true) { ID = 10425 });//tranq
}
if (client.Entity.Class >= 50 && client.Entity.Class <= 55)
{
client.RemoveSpell(new Spell(true) { ID = 1025 });//Superman
}
if (client.Entity.Class >= 10 && client.Entity.Class <= 15)
{
client.RemoveSpell(new Spell(true) { ID = 1025 });//Superman
}
if (client.Entity.Class >= 142 && client.Entity.Class <= 145)
{
client.RemoveSpell(new Spell(true) { ID = 11180 });//MortalDrag
}
if (client.Entity.Class >= 142 && client.Entity.Class <= 145)
{
client.RemoveSpell(new Spell(true) { ID = 11190 });//MortalDrag
}
if (client.Entity.Class >= 142 && client.Entity.Class <= 145)
{
client.RemoveSpell(new Spell(true) { ID = 11200 });//MortalDrag
}
if (client.Entity.Class >= 42 && client.Entity.Class <= 45)
{
client.RemoveSpell(new Spell(true) { ID = 10425 });//Tranquality
}
if (client.Entity.Class >= 10 && client.Entity.Class <= 15)
{
client.RemoveSpell(new Spell(true) { ID = 6002 });//Poisonstar
}
#endregion
#region AutoHunt Icon
AutoHunt AutoHunt = new AutoHunt();
AutoHunt.Icon = 341;
client.Send(AutoHunt.ToArray());
#endregion
#region Guilds
foreach (var Guild in Kernel.Guilds.Values)
{
Guild.SendName(client);
}
if (client.Guild != null && client.Guild.ID != 0)
{
client.Guild.SendAllyAndEnemy(client);
client.Entity.GuildBattlePower = client.Guild.GetSharedBattlepower(client.AsMember.Rank);
}
#endregion
#region Inbox
if (client.Prizes.Count > 0)
{
Mailbox.SendMailbox(client, true);
}
#endregion
#region Activeness
Activeness.Login(client, true);
#endregion
#region Enlight
if (client.Entity.EnlightenPoints != 0)
{
client.Entity.Update(Update.EnlightPoints, client.Entity.EnlightenPoints, true);
}
#endregion
#region TurnOn Filter Packet
client.Filtering = true;
#endregion
client.WentToComplete = true;
client.Entity.SendUpdates = true;
#region Elitepk
bool going = false;
Parallel.ForEach(ElitePKTournament.Tournaments, epk =>
{
if (epk.State != ElitePK.States.GUI_Top8Ranking)
going = true;
});
if (going)
{
ElitePKBrackets brackets = new ElitePKBrackets(true, 0);
brackets.Type = ElitePKBrackets.EPK_State;
brackets.OnGoing = true;
client.Send(brackets);
}
#endregion
#region QuizShow
if (Kernel.QuizShow.Open)
Kernel.QuizShow.AddPlayer(client);
client.Entity.Update((byte)Update.QuizPoints, client.Entity.QuizPoints, true);
#endregion
#region Updates
client.Entity.Update(Update.RaceShopPoints, client.RacePoints, false);
client.Entity.Update(Network.GamePackets.Update.LuckyTimeTimer, client.BlessTime, false);
if (client.Entity.HeavenBlessing != 0)
client.Entity.Update(Network.GamePackets.Update.OnlineTraining, client.OnlineTrainingPoints, false);
#endregion
#region Wardrobe
new CoatStorage().Login(client);
new TitleStorage().Login(client);
if (client.Entity.WTitles == null)
{
new TitleStorage().AddTitle(client, 2004, 5, true);
}
else client.Entity.TitlePoints = client.Entity.WTitles.Points;
#endregion
#region ClaimableItem
if (client.ClaimableItem.Count > 0)
{//moksha
foreach (var item in client.ClaimableItem.Values)
{
Database.ItemAddingTable.GetAddingsForItem(item.Item);
item.Send(client);
item.Item.SendExtras(client);
}
}
#endregion
#region DeatinedItem
if (client.DeatinedItem.Count > 0)
{
foreach (var item in client.DeatinedItem.Values)
{
Database.ItemAddingTable.GetAddingsForItem(item.Item);
item.Send(client);
item.Item.SendExtras(client);
}
}
client.Equipment.UpdateEntityPacket();
#endregion
#region BC
if (Game.ConquerStructures.Broadcast.CurrentBroadcast.EntityID > 2)
client.Send(new Network.GamePackets.Message(Game.ConquerStructures.Broadcast.CurrentBroadcast.Message, "ALLUSERS", Game.ConquerStructures.Broadcast.CurrentBroadcast.EntityName, System.Drawing.Color.Red, Network.GamePackets.Message.BroadcastMessage));
#endregion
#region Load Status
client.Entity.UpdateEffects(true);
client.LoadItemStats();
#endregion
#region Show Stuff
ClientEquip equips = new ClientEquip();
equips.DoEquips(client);
client.Send(equips);
#endregion
client.JustCreated = false;
#region AccountWhoJustCreatedItems
if (client.ItemGive)
{
client.Inventory.AddandWear(132013, 0, client);//Dress
if (client.Entity.Class >= 10 && client.Entity.Class <= 15)
client.Inventory.AddandWear(410301, 0, client);//Blade
if (client.Entity.Class >= 20 && client.Entity.Class <= 25)
client.Inventory.AddandWear(561301, 0, client);//Wand
if (client.Entity.Class >= 40 && client.Entity.Class <= 45)
client.Inventory.AddandWear(500301, 0, client);//Bow
if (client.Entity.Class >= 50 && client.Entity.Class <= 55)
client.Inventory.AddandWear(601301, 0, client);//Katana
if (client.Entity.Class >= 60 && client.Entity.Class <= 65)
client.Inventory.AddandWear(610301, 0, client);//Bead
if (client.Entity.Class >= 70 && client.Entity.Class <= 75)
client.Inventory.AddandWear(611301, 0, client);//Rapier
if (client.Entity.Class >= 80 && client.Entity.Class <= 85)
client.Inventory.AddandWear(617301, 0, client);//DragonWarriorWeapon
if (client.Entity.Class >= 100 && client.Entity.Class <= 145)
client.Inventory.AddandWear(421301, 0, client);//BackSword
client.ItemGive = false;
}
#endregion
client.Entity.HandleTiming = true;
client.UnionExploits = client.UnionExploits;
client.LoadItemStats();
}
catch (Exception e)
{
Console.WriteLine(e);
}
}
وبكده المشكله اتحلت والحمدلله

التعليقات



جميع الحقوق محفوظة

تيم اكسور5

2016