I want the characters in the two races can not join party
I guess that is 0x7060 opcodes .
anyone have some suggestions ?
Thannks:handsdown:
I guess that is 0x7060 opcodes .
anyone have some suggestions ?
Thannks:handsdown:
But i'm having trouble at 0x706DQuote:
#region 0x7060_PARTY_ADD_MEMBER
else if (opcode == 0x7060)
{
#region ASI JOIN PT EU
if (FilterMain.ASI_JOIN_GRPARTY)
{
uint Target = _pck.ReadUInt32();
int race = Task.Run(async () => await sqlCon.prod_int($"EXEC [{FilterMain.sql_db}].[dbo].[_FindRaceByUniqueID] '{Target}'")).Result;
if (this.Chinese)
{
if (race == 0)
{
this.SendNotice("CHINA_PARTY_EU");
continue;
}
}
else
{
if (race == 1)
{
this.SendNotice("CHINA_PARTY_EU");
continue;
}
}
}
Did I miss something?Quote:
else if (opcode == 0x706D)
{
#region ASI JOIN PT EU 2
if (FilterMain.ASI_JOIN_GRPARTY)
{
string Target = _pck.ReadAscii(); // Charname
int race = Task.Run(async () => await sqlCon.prod_int($"EXEC [{FilterMain.sql_db}].[dbo].[_FindRaceByCharname] '{Target}'")).Result;
if (this.Chinese)
...
[S -> C][706D] 13 00 00 00 ................ 03 00 00 00 ................ 1F 00 00 00 ................ 00 00 00 00 ................ 00 00 00 00 ................ 04 ................ FF ................ 03 00 00 00 ................ 03 00 ................ 50 56 50 PVP............. 73 07 00 00 s............... 6E n............... AA ................ 99 66 .f.............. 71 03 q............... 96 FF ................ 49 05 I............... 01 00 01 00 ................ 00 00 ................ 04 ................ 00 00 00 00 ................ 00 00 00 00
uint requesterID = pck.ReadUInt();
uint requestModel = pck.ReadUInt();
uint partyNumber = pck.ReadUInt();
uint randomNumber = pck.ReadUInt();
pck.ReadUInt(); // random #2
byte flag = pck.ReadByte();
uint uniqueID = pck.ReadUInt();
string charname = pck.ReadAscii();
uint model = pck.ReadUInt();
byte requesterLevel = pck.ReadByte();
byte random3 = pck.ReadByte();
ushort requesterRegion = pck.ReadUShort();
ushort posX = pck.ReadUShort();
ushort posY = pck.ReadUShort();
ushort posZ = pck.ReadUShort();
string guildName = pck.ReadAscii();
Packet accept = new Packet(0x306E);
accept.WriteUInt(requesterID);
accept.WriteUInt(requestModel);
accept.WriteByte(1); // 1 for accept 0 for decline
client.Send(accept, Direction.Server);