|
|
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())
{
}
}
}
}
}
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())
{
}
}
}
}
}
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())
{
}
}
}
}
}
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) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
ايرور في الدوينش | ToRWadA | مشكلات السيرفيرات كونكر الشخصيه | 0 | 2021-08-22 04:48 PM |
ايرور قونصول فى سورس رايزوا اخر اصدار | koko1 | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-05-04 04:58 PM |
ايرور في الجيانغ | stevenayman1 | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2020-04-01 09:01 PM |
ايرور ف القونصول بخصوص سورس الاسبانى الى رايزو منزله | megokarika | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2020-03-15 11:24 AM |
مشكله في تشغيل القونصول | midoazoz | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2019-11-12 07:54 PM |