|
|
المشاركات 37 |
+التقييم 0.02 |
تاريخ التسجيل Oct 2020 |
الاقامة |
نظام التشغيل |
رقم العضوية 4547 |
أفضل جواب - كتبه moham
|
|
بص يا برو هتدخل على game / attacking / reborninformation.cs دور على كود:
خليه بالشكل ده كود:
|
public void UpdateBestPlayer()
public void UpdateBestPlayer()
{
Stuff = new Dictionary<string, uint>();
BestPlayer = Rayzo.Network.GamePackets.MsgUserAbilityScore.RankingList.OrderByDescending(i => i.Prestige).ThenByDescending(i => i.Level).ThenBy(i => i.UID).FirstOrDefault();
if (BestPlayer == null) return;
using (var cmd = new MySqlCommand(MySqlCommandType.SELECT).Select("items").Where("EntityID", BestPlayer.UID).And("Position", 0, true))
using (var reader = new MySqlReader(cmd))
{
while (reader.Read())
{
if (reader.ReadByte("Position") == 5) if (!Stuff.ContainsKey(GetPositionName(5))) Stuff.Add(GetPositionName(5), reader.ReadUInt32("ID"));
if (reader.ReadByte("Position") == 9) if (!Stuff.ContainsKey(GetPositionName(9))) Stuff.Add(GetPositionName(9), reader.ReadUInt32("ID"));
if (reader.ReadByte("Position") == 4) if (!Stuff.ContainsKey(GetPositionName(4))) Stuff.Add(GetPositionName(4), reader.ReadUInt32("ID"));
if (reader.ReadByte("Position") == 19)
{
if (!Stuff.ContainsKey(GetPositionName(19)))
Stuff.Add(GetPositionName(19), reader.ReadUInt32("ID"));
if (!Stuff.ContainsKey(GetPositionName(255)))
Stuff.Add(GetPositionName(255), reader.ReadByte("Plus"));
}
}
if (!Stuff.Keys.Contains("MountArmor"))
{
using (var cmd2 = new MySqlCommand(MySqlCommandType.SELECT).Select("items").Where("EntityID", BestPlayer.UID).And("Position", 0, true))
using (var reader2 = new MySqlReader(cmd2))
{
while (reader2.Read())
{
}
}
}
}
}
| الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
| [5095] ليفل 144 ب وقت 30 يوم | Rider | تطوير سورسات 5095 | 14 | 2026-10-20 03:20 PM |
| حل مشكله الاسكلات بتفصل معك | taha | مشكلات السيرفيرات كونكر الشخصيه | 8 | 2019-12-24 01:22 PM |
| حل مشكلة الاصطفة لما تنزل ريبورن بتفضل ليفل عالى | Hazem | تطوير سيرفرات كونكر | 1 | 2019-09-26 10:25 PM |
| كيفيه تحكم في ليفل الوحوش الكبيره | Hassan Emprator | تطوير سيرفرات كونكر | 0 | 2019-09-19 12:34 PM |
| التحكم في اخر ليفل يقدر الاعب يوصله | Hazem | تطوير سيرفرات كونكر | 2 | 2019-07-23 11:40 PM |