ENCOUNTER_START - Wowpedia - Your wiki guide to the World of Warcraft
I just searched for ENCOUNTER_START string constant and found this.
I imagine something here is a flag for being in encounter. This is just from some revision I have up rn, do the string search in the actual revision you're using
Code:
__int64 __fastcall sub_141408740(unsigned int *a1, const char *a2)
{
__int64 result; // rax
bool v5; // si
unsigned __int32 v6; // eax
const char *v7; // r9
unsigned int v8; // [rsp+20h] [rbp-1028h]
unsigned int v9; // [rsp+28h] [rbp-1020h]
unsigned __int32 v10; // [rsp+30h] [rbp-1018h]
int v11; // [rsp+38h] [rbp-1010h]
char v12[4096]; // [rsp+40h] [rbp-1008h] BYREF
result = sub_1415E6380(1i64);
v5 = (_DWORD)result != 0;
if ( (_DWORD)result )
{
v6 = objMgr::MapId();
v7 = byte_142261CFA;
v11 = 11;
v10 = v6;
if ( a2 )
v7 = a2;
v8 = a1[9];
v9 = a1[10];
sub_140227BE0(v12, "ENCOUNTER_START,%d,\"%s\",%d,%d,%d,%d", a1[8], v7, v8, v9, v10, v11);
if ( v5 )
sub_1415DEBE0(v12);
return sub_141409960(a1 + 12);
}
return result;
}