Events and operations - mazurwiktor/albion-online-stats GitHub Wiki
How to find available events
Albion client receives information from server via via event codes and operations. To get full list of available events you need to decompile albiononline/game_x64/Albion-Online_Data/Managed/Albion.Common.dll
file.
De-compilation via IlSpy and visual studio code.
What do you need
- Get visual studio code editor https://code.visualstudio.com/
- Install https://marketplace.visualstudio.com/items?itemName=SharpDevelopTeam.ILSpy extention.
Steps
- Pick
albiononline/game_x64/Albion-Online_Data/Managed/Albion.Common.dll
- In the ILSPY DECOMPILED MEMBERS setion look for
Albion.Common.Photon
member - Look for available
EventCodes
andOperationCodes
For example, from decompiled event codes we know that NewCharacter
has code 24 (since it is on 24th position)
namespace Albion.Common.Photon
{
public enum EventCodes : short
{
Leave = 1,
JoinFinished,
Move,
Teleport,
ChangeEquipment,
HealthUpdate,
EnergyUpdate,
DamageShieldUpdate,
CraftingFocusUpdate,
ActiveSpellEffectsUpdate,
ResetCooldowns,
Attack,
CastStart,
CastCancel,
CastTimeUpdate,
CastFinished,
CastSpell,
CastHit,
CastHits,
ChannelingEnded,
AttackBuilding,
InventoryPutItem,
InventoryDeleteItem,
NewCharacter,
// Rest of fields omitted
}
}