Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 22nd, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. int __cdecl lua_GetEclipseDirection(int a1)
  2. {
  3.   int result; // eax@1
  4.   QWORD v2; // qax@1
  5.  
  6.   v2 = ClntObjMgrGetActivePlayer();
  7.   result = (int)ClntObjMgrObjectPtr(v2, OT_PLAYER);
  8.   if ( result )
  9.   {
  10.     if ( (unsigned __int8)CGUnit_C__HasAuraBySpellId(67483) )
  11.     {
  12.       FrameScript__PushString(a1, "sun");
  13.       result = 1;
  14.     }
  15.     else
  16.     {
  17.       if ( (unsigned __int8)CGUnit_C__HasAuraBySpellId(67484) )
  18.       {
  19.         FrameScript__PushString(a1, "moon");
  20.         result = 1;
  21.       }
  22.       else
  23.       {
  24.         FrameScript__PushString(a1, "none");
  25.         result = 1;
  26.       }
  27.     }
  28.   }
  29.   return result;
  30. }