Advertisement
dcomicboy

hotkey

Feb 15th, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. // Source Code: WE11ington
  2.  
  3. #include <windows.h>
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6.  
  7. #define DeviceGame 0x00909F00
  8. #define LTClientEXE 0x00485DD0
  9. #define LTClientDLL 0x377FD9F0
  10. #define GameStatus 0x3780B6E8
  11. #define EspName1 0x3736981C
  12. #define EspName2 0x373698B6
  13. #define NoRecoil 0x374607DC
  14. #define NoReload 0x374AC544
  15. #define SuperBullets 0x374A7246
  16. #define Invisible 0x378155F5
  17. #define GlassWalls 0x005721EA
  18.  
  19. int Nomes, Invisivel, SemCoice, SemRecarregar, SuperMunicao;
  20.  
  21. void Trapaca1 (void)
  22. {
  23. if (GetAsyncKeyState(VK_NUMPAD1)&1)
  24. Nomes = !Nomes;
  25.  
  26. if ((*(BYTE *)GameStatus == 1) && Nomes) {
  27. memcpy((void *)EspName1, (void *)(PBYTE)"\x90\x90", 2);
  28. memcpy((void *)EspName2, (void *)(PBYTE)"\x90\x90", 2);
  29. } else {
  30. memcpy((void *)EspName1, (void *)(PBYTE)"\x75\x21", 2);
  31. memcpy((void *)EspName2, (void *)(PBYTE)"\x75\x05", 2);
  32. }
  33. }
  34.  
  35. void Trapaca2 (void)
  36. {
  37. if (GetAsyncKeyState(VK_NUMPAD2)&1)
  38. Invisivel = !Invisivel;
  39.  
  40. if ((*(BYTE *)GameStatus == 1) && Invisivel) {
  41. memcpy((void *)Invisible, (void *)(PBYTE)"\x01", 1);
  42. } else {
  43. memcpy((void *)Invisible, (void *)(PBYTE)"\x00", 1);
  44. }
  45. }
  46.  
  47. void Trapaca3 (void)
  48. {
  49. if (GetAsyncKeyState(VK_NUMPAD3)&1)
  50. SemCoice = !SemCoice;
  51.  
  52. if ((*(BYTE *)GameStatus == 1) && SemCoice) {
  53. memcpy((void *)NoRecoil, (void *)(PBYTE)"\x90\x90\x90\x90", 4);
  54. } else {
  55. memcpy((void *)NoRecoil, (void *)(PBYTE)"\xD9\x44\x24\x10", 4);
  56. }
  57. }
  58.  
  59. void Trapaca4 (void)
  60. {
  61. if (GetAsyncKeyState(VK_NUMPAD4)&1)
  62. SemRecarregar = !SemRecarregar;
  63.  
  64. if ((*(BYTE *)GameStatus == 1) && SemRecarregar) {
  65. memcpy((void *)NoReload, (void *)(PBYTE)"\x90\x90\x90\x90\x90\x90", 6);
  66. } else {
  67. memcpy((void *)NoReload, (void *)(PBYTE)"\x0F\x84\xB1\x01\x00\x00", 6);
  68. }
  69. }
  70.  
  71. void Trapaca5 (void)
  72. {
  73. if (GetAsyncKeyState(VK_NUMPAD5)&1)
  74. SuperMunicao = !SuperMunicao;
  75.  
  76. if ((*(BYTE *)GameStatus == 1) && SuperMunicao) {
  77. memcpy((void *)SuperBullets, (void *)(PBYTE)"\x90\x90\x90", 3);
  78. } else {
  79. memcpy((void *)SuperBullets, (void *)(PBYTE)"\x0F\x94\xC0", 3);
  80. }
  81. }
  82.  
  83. void Trapacas (void)
  84. {
  85. HMODULE AguardarCShell;
  86. do {
  87. AguardarCShell = GetModuleHandle("CShell.dll");
  88. Sleep(100);
  89. } while (!AguardarCShell);
  90.  
  91. while (1) {
  92. Trapaca1 ();
  93. Trapaca2 ();
  94. Trapaca3 ();
  95. Trapaca4 ();
  96. Trapaca5 ();
  97.  
  98. Sleep(100);
  99. }
  100. }
  101.  
  102. BOOL APIENTRY DllMain (HINSTANCE hInst /* Library instance handle. */ ,
  103. DWORD reason /* Reason this function is being called. */ ,
  104. LPVOID reserved /* Not used. */ )
  105. {
  106. switch (reason) {
  107. case DLL_PROCESS_ATTACH:
  108. CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Trapacas, 0, 0, 0);
  109. break;
  110.  
  111. case DLL_PROCESS_DETACH:
  112. break;
  113.  
  114. case DLL_THREAD_ATTACH:
  115. break;
  116.  
  117. case DLL_THREAD_DETACH:
  118. break;
  119. }
  120.  
  121. /* Returns TRUE on success, FALSE on failure */
  122. return TRUE;
  123. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement