Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LostArkLogger/Packets/Base/PKTInitPC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public PKTInitPC(BitReader reader)
public UInt64 u64_0;
public UInt64 u64_1;
public UInt64 u64_2;
public UInt64 u64_3;
public UInt64 CharacterId;
public UInt64 u64_4;
public UInt32 u32_0;
public UInt32 u32_1;
Expand Down
47 changes: 47 additions & 0 deletions LostArkLogger/Packets/Base/PKTPartyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
namespace LostArkLogger
{
public partial class PKTPartyInfo
{
public PKTPartyInfo(BitReader reader)
{
if (Properties.Settings.Default.Region == Region.Steam) SteamDecode(reader);
}
public byte b_0;
public UInt32 PartyInstanceId;
public UInt32 RaidInstanceId;
public UInt32 u32_2;
public List<PartyMemberData> MemberDatas;
public Byte b_1;
}

enum PartyType
{
NORMAL = 0,
RAID = 1,
CHAOS = 2,
ARENA = 3,
COLOSSEUM = 4,
MOD = 5,
MATCHING = 6,
}
enum PartyLootType
{
FREE = 0,
ROUND_ROBIN = 1,
LEADER = 2,
RANDOM = 3,
}
enum PartyMemberAuth
{
ADMIM = 0,
LEADER = 1
}

enum PartyMemberState
{
NORMAL = 0,
DISCONNECTED = 1,
}
}
20 changes: 20 additions & 0 deletions LostArkLogger/Packets/Base/PKTPartyLeaveResult.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LostArkLogger
{
public partial class PKTPartyLeaveResult
{
public PKTPartyLeaveResult(BitReader reader)
{
if (Properties.Settings.Default.Region == Region.Steam) SteamDecode(reader);
}
public byte b_0;
public UInt32 PartyInstanceId;
public string Name;

}
}
22 changes: 22 additions & 0 deletions LostArkLogger/Packets/Base/PKTPartyUnknown.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System;

namespace LostArkLogger
{
public partial class PKTPartyUnknown
{
public PKTPartyUnknown(BitReader reader)
{
if (Properties.Settings.Default.Region == Region.Steam) SteamDecode(reader);
}
public UInt64 CharacterId;
public byte[] ba_0;
public UInt32 PartyInstanceId;
public UInt32 u32_0;
public UInt32 RaidInstanceId;
public byte b_0;
public UInt16 u16_0;
public byte b_1;
public UInt64 u64_0;
public byte[] ba_1;
}
}
33 changes: 33 additions & 0 deletions LostArkLogger/Packets/Base/PartyMemberData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
namespace LostArkLogger
{
public partial class PartyMemberData
{
public PartyMemberData(BitReader reader)
{
if (Properties.Settings.Default.Region == Region.Steam) SteamDecode(reader);
}

public UInt16 RosterLevel;
public byte PartyMemberNumber; // this is 0 based 0-3
public byte b_1;
public Int64 CurHP; //packedInt
public UInt32 u32_0;
public byte b_2;
public UInt64 u64_1;
public UInt32 u32_1;
public byte b_3;
public UInt64 CharacterId;
public byte b_4;
public UInt16 CharacterLevel;
public Int64 MaxHP; //packedInt
public UInt16 u16_3;
public byte b_5;
public byte b_6;
public string Name;
public UInt32 u32_2;
public UInt64 u64_4;
public byte b_7;
}
}
2 changes: 1 addition & 1 deletion LostArkLogger/Packets/Korea/PKTInitPC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void KoreaDecode(BitReader reader)
b_9 = reader.ReadByte();
u64_2 = reader.ReadUInt64();
b_10 = reader.ReadByte();
u64_3 = reader.ReadUInt64();
CharacterId = reader.ReadUInt64();
GearLevel = reader.ReadUInt32();
b_12 = reader.ReadByte();
if (b_12 == 1)
Expand Down
1 change: 1 addition & 0 deletions LostArkLogger/Packets/OpCodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1447,5 +1447,6 @@ public enum OpCodes : UInt16
PKTAdvRewardRequestResult = 59918,
PKTFallDownPredictNotify = 59982,
PKTInitAchievementActive = 59992,
PKTPartyUnknown = 55319,
}
}
3 changes: 3 additions & 0 deletions LostArkLogger/Packets/OpCodes_steam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ public enum OpCodes_Steam : UInt16
PKTStatusEffectRemoveNotify = 0xA8B3,
PKTTriggerBossBattleStatus = 0xE5F7,
PKTTriggerStartNotify = 0x7807,
PKTPartyInfo = 4508,
PKTPartyLeaveResult = 20450,
PKTPartyUnknown = 55319,
}
}
2 changes: 1 addition & 1 deletion LostArkLogger/Packets/Steam/PKTInitPC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void SteamDecode(BitReader reader)
b_16 = reader.ReadByte();
u16_2 = reader.ReadUInt16();
b_18 = reader.ReadByte();
u64_3 = reader.ReadUInt64();
CharacterId = reader.ReadUInt64();
b_19 = reader.ReadByte();
u16_3 = reader.ReadUInt16();
bytearraylist_0 = reader.ReadList<Byte[]>(30);
Expand Down
18 changes: 18 additions & 0 deletions LostArkLogger/Packets/Steam/PKTPartyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
namespace LostArkLogger
{
public partial class PKTPartyInfo
{
public void SteamDecode(BitReader reader)
{
b_0 = reader.ReadByte();
PartyInstanceId = reader.ReadUInt32();
RaidInstanceId = reader.ReadUInt32();
u32_2 = reader.ReadUInt32();
MemberDatas = reader.ReadList<PartyMemberData>();
b_1 = reader.ReadByte();

}
}
}
18 changes: 18 additions & 0 deletions LostArkLogger/Packets/Steam/PKTPartyLeaveResult.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LostArkLogger
{
public partial class PKTPartyLeaveResult
{
public void SteamDecode(BitReader reader)
{
b_0 = reader.ReadByte();
PartyInstanceId = reader.ReadUInt32();
Name = reader.ReadString();
}
}
}
25 changes: 25 additions & 0 deletions LostArkLogger/Packets/Steam/PKTPartyUnknown.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LostArkLogger
{
public partial class PKTPartyUnknown
{
public void SteamDecode(BitReader reader)
{
CharacterId = reader.ReadUInt64();
ba_0 = reader.ReadBytes(8);
PartyInstanceId = reader.ReadUInt32();
u32_0 = reader.ReadUInt32();
RaidInstanceId = reader.ReadUInt32();
b_0 = reader.ReadByte();
u16_0 = reader.ReadUInt16();
b_1 = reader.ReadByte();
u64_0 = reader.ReadUInt64();
ba_1 = reader.ReadBytes(3);
}
}
}
31 changes: 31 additions & 0 deletions LostArkLogger/Packets/Steam/PartyMemberData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
namespace LostArkLogger
{
public partial class PartyMemberData
{
public void SteamDecode(BitReader reader)
{
RosterLevel = reader.ReadUInt16();
PartyMemberNumber = reader.ReadByte();
b_1 = reader.ReadByte();
CurHP = reader.ReadPackedInt();
u32_0 = reader.ReadUInt32();
b_2 = reader.ReadByte();
u64_1 = reader.ReadUInt64();
u32_1 = reader.ReadUInt32();
b_3 = reader.ReadByte();
CharacterId = reader.ReadUInt64();
b_4 = reader.ReadByte();
CharacterLevel = reader.ReadUInt16();
MaxHP = reader.ReadPackedInt();
u16_3 = reader.ReadUInt16();
b_5 = reader.ReadByte();
b_6 = reader.ReadByte();
Name = reader.ReadString();
u32_2 = reader.ReadUInt32();
u64_4 = reader.ReadUInt64();
b_7 = reader.ReadByte();
}
}
}