[DiscordArchive] Can you give me examples of where this is used?
[DiscordArchive] Can you give me examples of where this is used?
Archived author: Natrist • Posted: 2025-05-29T14:14:32.372000+00:00
Original source
Can you give me examples of where this is used?
![[Image: 29_16_16_25_ida.png?ex=690cadc6&is=690b5...1b34672fd&]](https://cdn.discordapp.com/attachments/1086807686571642900/1377651856876114060/29_16_16_25_ida.png?ex=690cadc6&is=690b5c46&hm=b184b8855538071d056f3cc8594ff665e987ef71fe8cc31742fdec21b34672fd&)
Archived author: Saty • Posted: 2025-05-29T14:16:38.277000+00:00
Original source
<@155500896820789248>
![[Image: 29_16_16_25_ida.png?ex=690cadc6&is=690b5...1b34672fd&]](https://cdn.discordapp.com/attachments/1086807686571642900/1377651856876114060/29_16_16_25_ida.png?ex=690cadc6&is=690b5c46&hm=b184b8855538071d056f3cc8594ff665e987ef71fe8cc31742fdec21b34672fd&)
isplayError(a3, "%s(): Invalid spell slot", v12);Archived author: Saty • Posted: 2025-05-29T14:18:12.107000+00:00
Original source
```
bool __usercall GetSpellIDFromLua@<eax>(unsigned int *a1@<ebx>, _DWORD *a2@<edi>, int a3@<esi>, _DWORD *a4, int a5)
{
unsigned int v5; // eax
const char *v6; // eax
char *v8; // eax
int v9; // eax
char *v10; // eax
int SpellIdByName; // eax
const char *v12; // eax
int v13; // [esp-8h] [ebp-410h]
char v14[1024]; // [esp+0h] [ebp-408h] BYREF
int v15; // [esp+400h] [ebp-8h] BYREF
*a2 = 0;
if ( FrameScript::IsNumber(a3, 1) && FrameScript::IsString(a3, 2) )
{
v5 = (int)(FrameScript::ToNumber(a3, 1) - 1.0);
*a1 = v5;
if ( v5 <= 0x3FF )
{
v6 = (const char *)FrameScript::ToLString(a3, 2, 0);
if ( !SStrCmpI("pet", v6, 0x7FFFFFFFu) )
*a2 = 1;
if ( a4 )
{
*a4 = 3;
return 1;
}
return 1;
}
goto LABEL_18;
}
if ( !a5 || !FrameScript::IsString(a3, 1) )
{
LABEL_18:
v12 = (const char *)sub_817EE0(a3, v14, 1024);
FrameScript:
isplayError(a3, "%s(): Invalid spell slot", v12);
return 0;
}
if ( !FrameScript::IsString(a3, 2) || (v8 = (char *)FrameScript::ToLString(a3, 2, 0), Script_GetGUIDFromToken(v8, (int)&v15, 0)) )
{
v10 = (char *)FrameScript::ToLString(a3, 1, 0);
SpellIdByName = GetSpellIdByName(v10, (int)a2);
*a1 = sub_53B4E0(SpellIdByName, *a2);
if ( a4 )
*a4 = 2;
}
else
{
v13 = FrameScript::ToLString(a3, 2, 0);
v9 = FrameScript::ToLString(a3, 1, 0);
*a1 = sub_5401D0(v9, v13, a2);
if ( a4 )
*a4 = 3;
}
return (*a1 & 0x80000000) == 0;
}
```
Idk if this is what you want
Archived author: Peacy • Posted: 2025-05-29T14:18:32.238000+00:00
Original source
that a4
Archived author: Peacy • Posted: 2025-05-29T14:18:36.699000+00:00
Original source
is what im trying to figure out
Archived author: Saty • Posted: 2025-05-29T14:27:14.275000+00:00
Original source
I mean looking at it from my limited knowledge, looks like it's always zero and never used.
Am just begginner in reversing stuff tho, I have mostly 0 plan still xD