Advertisement
Jambix64

FuncaoNobles

Oct 12th, 2016
550
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.93 KB | None | 0 0
  1. void CGameEvents::OnValidateNoblesseSkills(VOID *pNoblessSystem, User *pUser)
  2. {
  3.     L2SERVER_SHARED_GUARD(nOnValidateNoblesseSkills);
  4.     TLS_TRACE_BEGIN;
  5.  
  6.     // Functions
  7.     typedef void (__fastcall *_VNS) (VOID *, User *pUser);
  8.     _VNS xVNS = (_VNS)0x006B9A80L;
  9.  
  10.     // Calling Original Function
  11.     xVNS(pNoblessSystem, pUser);
  12.    
  13.     // Performing Hero Skills Validation
  14. //  CHeroSystem::ValidateHeroSkills(pUser);
  15.  
  16.     TLS_TRACE_END;
  17. }
  18.  
  19.  
  20. //Dentro do l2server.exe
  21.  
  22. char __fastcall sub_6B9A80(__int64 a1, __int64 a2)
  23. {
  24.   __int64 v2; // r13@1
  25.   __int64 v3; // rdi@1
  26.   __int64 v4; // rdx@3
  27.   __int64 v5; // rcx@3
  28.   char v6; // r12@3
  29.   int v7; // ebp@3
  30.   unsigned __int64 i; // rsi@3
  31.   __int64 v9; // rax@4
  32.   unsigned __int64 v10; // rcx@5
  33.   __int64 v11; // rcx@8
  34.   __int64 v12; // rbx@11
  35.   __int64 v13; // r8@13
  36.   __int64 v14; // rdx@13
  37.   __int64 v15; // rcx@14
  38.  
  39.   v2 = a2;
  40.   v3 = a1;
  41.   if ( !(dword_7D55740 & 1) )
  42.   {
  43.     dword_7D55740 |= 1u;
  44.     dword_7D5573C = sub_401500(&off_A28330);
  45.   }
  46.   v4 = *(_DWORD *)(*(_QWORD *)(*MK_FP(__GS__, 88i64) + 8i64 * (unsigned int)TlsIndex) + 311640i64);
  47.   v5 = dword_1179D70[v4 + 0x100000];
  48.   dword_1179D70[v4 + 0x100000] = v5 + 1;
  49.   qword_155E7F0[v5 + 1000 * v4] = (__int64)&off_A28330;
  50.   v6 = 0;
  51.   v7 = 0;
  52.   for ( i = 0i64; ; ++i )
  53.   {
  54.     v9 = *(_QWORD *)(v3 + 104);
  55.     v10 = v9 ? (*(_QWORD *)(v3 + 112) - v9) >> 3 : 0i64;
  56.     if ( v7 >= v10 )
  57.       break;
  58.     v11 = *(_QWORD *)(v3 + 104);
  59.     if ( !v11 || i >= (*(_QWORD *)(v3 + 112) - v11) >> 3 )
  60.       sub_912AA0(0i64);
  61.     v12 = *(_QWORD *)(v3 + 104);
  62.     if ( !(unsigned __int8)sub_4F0830(v2, *(_DWORD *)(v12 + 8 * i), *(_DWORD *)(v12 + 8 * i + 4)) )
  63.       v6 = 1;
  64.     v13 = *(_DWORD *)(v12 + 8 * i + 4);
  65.     v14 = *(_DWORD *)(v12 + 8 * i);
  66.     sub_4F8760(v2);
  67.     ++v7;
  68.   }
  69.   v15 = *(_DWORD *)(*(_QWORD *)(*MK_FP(__GS__, 88i64) + 8i64 * (unsigned int)TlsIndex) + 311640i64);
  70.   --dword_1179D70[v15 + 0x100000];
  71.   return v6;
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement