|
public int CurrentTreasureBoxes = 0;
public int CurrentCpsFromBoxes = 0;
public int CurrentGoldFromBoxes = 0;
if (orders[i - 1].Player.CurrentTreasureBoxes == 0) continue;
msg = new Message("No " + i.ToString() + "- " + orders[i - 1].Player.Name + " Opened " + orders[i - 1].Player.CurrentTreasureBoxes.ToString() + " Boxes! And " + orders[i - 1].Player.CurrentCpsFromBoxes.ToString() + "Cps and " + orders[i - 1].Player.CurrentGoldFromBoxes.ToString() + " Gold", System.Drawing.Color.Red, Message.ContinueRightCorner);
case Mode.AddPersonToBlackList:
{
var targetname = System.Text.UnicodeEncoding.UTF8.GetString(packet, 43, packet[42]).Replace("/0", "");
foreach (var person in Kernel.GamePool.Values)
{
if (person.Player.Name == targetname)
{
if (!client.Player.BlackList.Contains(targetname))
{
client.Player.BlackList.Add(targetname);
gData.UID = client.Player.UID;//8
gData.dwParam = 1;//12
gData.TimeStamp = Time32.Now;//20
gData.ID = Mode.AddPersonToBlackList;//24
gData.Unknown2 = 1;//41
gData.DailyQuestWordLenght = packet[42];//42
gData.DailyQuestWord = targetname;//43
gData.Send(client);
}
}
}
break;
}
case Mode.RemovePersonFromBlackList:
{
var targetname = System.Text.UnicodeEncoding.UTF8.GetString(packet, 43, packet[42]).Replace("/0", "");
if (client.Player.BlackList.Contains(targetname))
{
client.Player.BlackList.Remove(targetname);
gData.UID = client.Player.UID;//8
gData.dwParam = 1;//12
gData.TimeStamp = Time32.Now;//20
gData.ID = Mode.RemovePersonFromBlackList;//24
gData.Unknown2 = 1;//41
gData.DailyQuestWordLenght = packet[42];
gData.DailyQuestWord = targetname;//43
gData.Send(client);
}
break;
}
private static void HandleData(
case 440:
{
var targetname = System.Text.UnicodeEncoding.UTF8.GetString(packet, 43, packet[42]).Replace("/0", "");
foreach (var person in Kernel.GamePool.Values)
{
if (person.Entity.Name == targetname)
{
if (!client.Entity.BlackList.Contains(targetname))
{
client.Entity.BlackList.Add(targetname);
gData.UID = client.Entity.UID;//8
gData.dwParam = 1;//12
gData.TimeStamp = Time32.Now;//20
gData.ID = 440;//24
gData.Unknown2 = 1;//41//43
gData.Send(client);
}
}
}
break;
}
case 441:
{
var targetname = System.Text.UnicodeEncoding.UTF8.GetString(packet, 43, packet[42]).Replace("/0", "");
if (client.Entity.BlackList.Contains(targetname))
{
client.Entity.BlackList.Remove(targetname);
gData.UID = client.Entity.UID;//8
gData.dwParam = 1;//12
gData.TimeStamp = Time32.Now;//20
gData.ID = 441;//24
gData.Unknown2 = 1;//41
gData.Send(client);
}
break;
}
case mode.addpersontoblacklist:
{
var targetname = system.text.unicodeencoding.utf8.getstring(packet, 43, packet[42]).replace("/0", "");
foreach (var person in kernel.gamepool.values)
{
if (person.player.name == targetname)
{
if (!client.player.blacklist.contains(targetname))
{
client.player.blacklist.add(targetname);
gdata.uid = client.player.uid;//8
gdata.dwparam = 1;//12
gdata.timestamp = time32.now;//20
gdata.id = mode.addpersontoblacklist;//24
gdata.unknown2 = 1;//41
gdata.dailyquestwordlenght = packet[42];//42
gdata.dailyquestword = targetname;//43
gdata.send(client);
}
}
}
break;
}
case mode.removepersonfromblacklist:
{
var targetname = system.text.unicodeencoding.utf8.getstring(packet, 43, packet[42]).replace("/0", "");
if (client.player.blacklist.contains(targetname))
{
client.player.blacklist.remove(targetname);
gdata.uid = client.player.uid;//8
gdata.dwparam = 1;//12
gdata.timestamp = time32.now;//20
gdata.id = mode.removepersonfromblacklist;//24
gdata.unknown2 = 1;//41
gdata.dailyquestwordlenght = packet[42];
gdata.dailyquestword = targetname;//43
gdata.send(client);
}
break;
}
private static void handledata(
case 440:
{
var targetname = system.text.unicodeencoding.utf8.getstring(packet, 43, packet[42]).replace("/0", "");
foreach (var person in kernel.gamepool.values)
{
if (person.entity.name == targetname)
{
if (!client.entity.blacklist.contains(targetname))
{
client.entity.blacklist.add(targetname);
gdata.uid = client.entity.uid;//8
gdata.dwparam = 1;//12
gdata.timestamp = time32.now;//20
gdata.id = 440;//24
gdata.unknown2 = 1;//41//43
gdata.send(client);
}
}
}
break;
}
case 441:
{
var targetname = system.text.unicodeencoding.utf8.getstring(packet, 43, packet[42]).replace("/0", "");
if (client.entity.blacklist.contains(targetname))
{
client.entity.blacklist.remove(targetname);
gdata.uid = client.entity.uid;//8
gdata.dwparam = 1;//12
gdata.timestamp = time32.now;//20
gdata.id = 441;//24
gdata.unknown2 = 1;//41
gdata.send(client);
}
break;
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
تعديل علي سيستم vipdays | Commander | تطوير سيرفرات كونكر | 46 | 2024-08-30 08:38 AM |
طلب سيستم | ElSaher | مشكلات السيرفيرات كونكر الشخصيه | 14 | 2023-10-12 04:34 PM |
[مطلوب] مطلوب باتش عربى 3 دى | walid88 | مشكلات السيرفيرات كونكر الشخصيه | 11 | 2020-04-30 10:54 AM |
محتاج سيستم | Avalanche | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2019-07-31 11:59 AM |
سيستم الفوت VoteSystem 100% | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2019-06-15 05:38 PM |