Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CGameEvents::OnValidateNoblesseSkills(VOID *pNoblessSystem, User *pUser)
- {
- L2SERVER_SHARED_GUARD(nOnValidateNoblesseSkills);
- TLS_TRACE_BEGIN;
- // Functions
- typedef void (__fastcall *_VNS) (VOID *, User *pUser);
- _VNS xVNS = (_VNS)0x006B9A80L;
- // Calling Original Function
- xVNS(pNoblessSystem, pUser);
- // Performing Hero Skills Validation
- // CHeroSystem::ValidateHeroSkills(pUser);
- TLS_TRACE_END;
- }
- //Dentro do l2server.exe
- char __fastcall sub_6B9A80(__int64 a1, __int64 a2)
- {
- __int64 v2; // r13@1
- __int64 v3; // rdi@1
- __int64 v4; // rdx@3
- __int64 v5; // rcx@3
- char v6; // r12@3
- int v7; // ebp@3
- unsigned __int64 i; // rsi@3
- __int64 v9; // rax@4
- unsigned __int64 v10; // rcx@5
- __int64 v11; // rcx@8
- __int64 v12; // rbx@11
- __int64 v13; // r8@13
- __int64 v14; // rdx@13
- __int64 v15; // rcx@14
- v2 = a2;
- v3 = a1;
- if ( !(dword_7D55740 & 1) )
- {
- dword_7D55740 |= 1u;
- dword_7D5573C = sub_401500(&off_A28330);
- }
- v4 = *(_DWORD *)(*(_QWORD *)(*MK_FP(__GS__, 88i64) + 8i64 * (unsigned int)TlsIndex) + 311640i64);
- v5 = dword_1179D70[v4 + 0x100000];
- dword_1179D70[v4 + 0x100000] = v5 + 1;
- qword_155E7F0[v5 + 1000 * v4] = (__int64)&off_A28330;
- v6 = 0;
- v7 = 0;
- for ( i = 0i64; ; ++i )
- {
- v9 = *(_QWORD *)(v3 + 104);
- v10 = v9 ? (*(_QWORD *)(v3 + 112) - v9) >> 3 : 0i64;
- if ( v7 >= v10 )
- break;
- v11 = *(_QWORD *)(v3 + 104);
- if ( !v11 || i >= (*(_QWORD *)(v3 + 112) - v11) >> 3 )
- sub_912AA0(0i64);
- v12 = *(_QWORD *)(v3 + 104);
- if ( !(unsigned __int8)sub_4F0830(v2, *(_DWORD *)(v12 + 8 * i), *(_DWORD *)(v12 + 8 * i + 4)) )
- v6 = 1;
- v13 = *(_DWORD *)(v12 + 8 * i + 4);
- v14 = *(_DWORD *)(v12 + 8 * i);
- sub_4F8760(v2);
- ++v7;
- }
- v15 = *(_DWORD *)(*(_QWORD *)(*MK_FP(__GS__, 88i64) + 8i64 * (unsigned int)TlsIndex) + 311640i64);
- --dword_1179D70[v15 + 0x100000];
- return v6;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement