|
|
private static void HandleData(
case 440://AddPersonToBlackList
{
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.Unknown2 = 1;
gData.dwParam = 1;
gData.UID = client.Entity.UID;
gData.TimeStamp = Time32.Now;
gData.ID = 440;
gData.DailyQuestWordLenght = packet[42];
gData.DailyQuestWord = targetname;
gData.Send(client);
}
}
}
break;
}
case 441://RemovePersonFromBlackList
{
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.Unknown2 = 1;
gData.dwParam = 1;
gData.UID = client.Entity.UID;
gData.TimeStamp = Time32.Now;
gData.ID = 441;
gData.DailyQuestWordLenght = packet[42];
gData.DailyQuestWord = targetname;
gData.Send(client);
}
break;
}
DailyQuestWordLenght
public Data(
public byte DailyQuestWordLenght//For Poker
{
get { return Buffer[42]; }
set { Buffer[42] = value; }
}
public string DailyQuestWord//For Poker
{
get { return System.Text.UnicodeEncoding.UTF8.GetString(Buffer, 43, DailyQuestWordLenght); }
set { Writer.Write(value, 43, Buffer); }
}
public List<string> BlackList;
return Buffer[41]
public byte Unknown2
{
get
{
return Buffer[41];
}
set
{
Buffer[41] = value;
}
}
private static void handledata(
case 440://addpersontoblacklist
{
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.unknown2 = 1;
gdata.dwparam = 1;
gdata.uid = client.entity.uid;
gdata.timestamp = time32.now;
gdata.id = 440;
gdata.dailyquestwordlenght = packet[42];
gdata.dailyquestword = targetname;
gdata.send(client);
}
}
}
break;
}
case 441://removepersonfromblacklist
{
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.unknown2 = 1;
gdata.dwparam = 1;
gdata.uid = client.entity.uid;
gdata.timestamp = time32.now;
gdata.id = 441;
gdata.dailyquestwordlenght = packet[42];
gdata.dailyquestword = targetname;
gdata.send(client);
}
break;
}
dailyquestwordlenght
public data(
public byte dailyquestwordlenght//for poker
{
get { return buffer[42]; }
set { buffer[42] = value; }
}
public string dailyquestword//for poker
{
get { return system.text.unicodeencoding.utf8.getstring(buffer, 43, dailyquestwordlenght); }
set { writer.write(value, 43, buffer); }
}
public list<string> blacklist;
return buffer[41]
public byte unknown2
{
get
{
return buffer[41];
}
set
{
buffer[41] = value;
}
}
case 440:
{
var targetname = System.Text.UnicodeEncoding.UTF8.GetString(packet, 43, packet[42]).Replace("/0", "");
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);
client.Send(gData);
}
break;
}
private static void HandleData(
case 440://AddPersonToBlackList
{
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.Unknown2 = 1;
gData.dwParam = 1;
gData.UID = client.Entity.UID;
gData.TimeStamp = Time32.Now;
gData.ID = 440;
gData.DailyQuestWordLenght = packet[42];
gData.DailyQuestWord = targetname;
gData.Send(client);
}
}
}
break;
}
case 441://RemovePersonFromBlackList
{
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.Unknown2 = 1;
gData.dwParam = 1;
gData.UID = client.Entity.UID;
gData.TimeStamp = Time32.Now;
gData.ID = 441;
gData.DailyQuestWordLenght = packet[42];
gData.DailyQuestWord = targetname;
gData.Send(client);
}
break;
}
DailyQuestWordLenght
public Data(
public byte DailyQuestWordLenght//For Poker
{
get { return Buffer[42]; }
set { Buffer[42] = value; }
}
public string DailyQuestWord//For Poker
{
get { return System.Text.UnicodeEncoding.UTF8.GetString(Buffer, 43, DailyQuestWordLenght); }
set { Writer.Write(value, 43, Buffer); }
}
public List<string> BlackList;
return Buffer[41]
public byte Unknown2
{
get
{
return Buffer[41];
}
set
{
Buffer[41] = value;
}
}
|
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
Add To Black List | Tefa | تطوير سيرفرات كونكر | 17 | 2021-07-29 12:54 AM |