the best solution is always to look up a matching the function with ida if you can't find it in the dump thread, some things are quite easy to reverse...
API GetRuneCooldown - WoWWiki - Your guide to the World of Warcraft
so you most likely want the boolean value
Code:
signed int __usercall lua_GetRuneCooldown<eax>(int a1<esi>, int a2)
{
int v2; // ecx@2
int v3; // esi@2
__int64 v4; // qax@3
void *v5; // ecx@3
int v6; // edi@3
int v7; // ebx@4
double v8; // st7@4
double v9; // st7@5
float v10; // ST24_4@7
int v12; // ST1C_4@10
int v13; // [sp+Ch] [bp-10h]@2
if ( !FrameScript__IsNumber(a2, 1) )
{
FrameScript_DisplayError(a2, "Usage: GetRuneCooldown(slot)", v12);
return 0;
}
v13 = a1;
v3 = (signed int)FrameScript_ToNumber(a2, 1) - 1;
if ( (unsigned int)v3 > 7 )
{
FrameScript_DisplayError(a2, "Invalid slot", v13);
return 0;
}
LODWORD(v4) = ClntObjMgrGetActivePlayer(v2);
v6 = ClntObjMgrObjectPtr(v4, 16);
if ( !v6 )
return 0;
v7 = sub_754FF0(v5, v3);
v8 = *(float *)(*(_DWORD *)(v6 + 4104) + 4 * sub_754F90(v3, 0) + 4628);
if ( v8 <= 0.009999999776482582 )
v9 = 0.0;
else
v9 = 1.0 / v8;
FrameScript_PushNumber(a2, (double)(unsigned int)v7 * 0.001);
v10 = v9;
FrameScript_PushNumber(a2, v10);
FrameScript_pushboolean(a2, (unsigned int)v7 <= 0);
return 3;
}
the interesting part:
v7 = sub_754FF0(v5, v3);
FrameScript_pushboolean(a2, (unsigned int)v7 <= 0);
v5 is just a this pointer, uninteresting for us: void *v5; // ecx@3
and v3 is the rune index -1, means runes have index 0-5: v3 = (signed int)FrameScript_ToNumber(a2, 1) - 1;
Code:
int __thiscall sub_754FF0(void *this, int a2)
{
int result; // eax@1
__int64 v3; // qax@1
LODWORD(v3) = ClntObjMgrGetActivePlayer(this);
result = ClntObjMgrObjectPtr(v3, 16);
if ( result )
result = dword_C5427C[a2];
return result;
}
a2 = v3
that means if we want to know if a rune is ready we just have to do (if i didn't make a mistake :P):
if (readUInt(0xC5427C+i*4) <=0) //where i is rune index 0-5
rune on cooldown
im pretty sure there will also be a descriptor field for it, but that's how the lua function does it