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

  1. Get visual studio code editor https://code.visualstudio.com/
  2. Install https://marketplace.visualstudio.com/items?itemName=SharpDevelopTeam.ILSpy extention.

Steps

  1. Pick albiononline/game_x64/Albion-Online_Data/Managed/Albion.Common.dll
  2. In the ILSPY DECOMPILED MEMBERS setion look for Albion.Common.Photon member
  3. Look for available EventCodes and OperationCodes

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
	}
}