1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Please can anyone help me convert 2 scripts? :D

Discussion in 'Programming' started by Nebbis, Aug 13, 2010.

  1. Nebbis

    Nebbis Banned Banned

    Please can anyone help me convert 3 scripts? :D

    Hey guys... I think it's quite hard to update scripts like this...


    Code (Text):
    1. [ENABLE]
    2. alloc(XYHook,150)
    3. alloc(Vac,8)
    4. label(SaveXY)
    5. label(SkipSave)
    6. label(RetXY)
    7. label(XYCode)
    8.  
    9. XYHook:
    10. cmp dword ptr [00d4a358],00
    11. je XYCode
    12. cmp dword ptr [00d4a770],00
    13. je XYCode
    14. push eax
    15. call SaveXY
    16. mov eax,[00d4a358]//A1 ? ? ? ? 3B C7 0F 84 ? ? ? ? 6A FF
    17. mov eax,[eax+1898]//8B 81 ? ? ? ? 83 65 ? 00 85 C0 56 8B 75 ? 89 06 74 06 8B 08 50 FF 51 ? 8B C6 5E C9 C2 04 00 55 8B EC 51 51
    18. cmp esi,eax
    19. pop eax
    20. jne XYCode
    21. mov eax,[Vac]
    22. mov [edi-04],eax
    23. mov eax,[Vac+04]
    24. mov [edi],eax
    25. mov ebx,[ebp+14]
    26. jmp RetXY
    27.  
    28. SaveXY:
    29. mov eax,[00d4a770]//A1 ? ? ? ? 8B 80 ? ? ? ? 83 F8 09 74 29 83 F8 07 74
    30. cmp dword ptr [eax+9c4],0c//offset below base aob result
    31. jne SkipSave
    32. mov eax,[eax+978]
    33. mov edx,[eax+84]
    34. mov [Vac],edx
    35. mov edx,[eax+88]
    36. mov [Vac+04],edx
    37. SkipSave:
    38. ret
    39.  
    40. XYCode:
    41. mov [edi],eax
    42. mov ebx,[ebp+14]
    43. jmp RetXY
    44.  
    45. 00AD2DB0://89 07 8B 5D 14 85 DB 74 ? FF B6 ? 00 00 00 8D 46 ? 50 E8
    46. jmp XYHook
    47. RetXY:
    48.  
    49. [DISABLE]
    50. 00AD2DB0:
    51. db 89 07 8b 5d 14
    52. dealloc(XYHook)
    53. dealloc(Vac)
    and...


    Code (Text):
    1. [enable]
    2. alloc(ImprovedDupexV2,256)
    3. alloc(Platform,4)
    4. alloc(RunFlag,4)
    5. label(DoVac)
    6. label(NullPlat)
    7. label(Normal)
    8. label(back)
    9.  
    10. Platform:
    11. dd 00000000
    12.  
    13. RunFlag:
    14. dd 00000000
    15.  
    16. ImprovedDupexV2:
    17. pushfd
    18. push eax
    19. push ecx
    20. mov eax,[00C4D318]
    21. test eax,eax
    22. je NullPlat
    23. mov eax,[eax+00001294]
    24. lea ecx,[eax-0c]
    25. test ecx,ecx
    26. je NullPlat
    27. mov eax,[ecx+00000114]
    28. test eax,eax
    29. je NullPlat
    30. cmp [RunFlag],01
    31. je DoVac
    32. mov [Platform],eax
    33. inc [RunFlag]
    34. jmp DoVac
    35.  
    36. DoVac:
    37. cmp esi,ecx
    38. je Normal
    39. mov edi,[Platform]
    40. jmp Normal
    41.  
    42. NullPlat:
    43. mov [Platform],00
    44. mov [RunFlag],00
    45. jmp Normal
    46.  
    47. Normal:
    48. pop ecx
    49. pop eax
    50. popfd
    51. mov [esi+00000114],edi
    52. jmp back
    53.  
    54. 00A01A76:
    55. jmp ImprovedDupexV2
    56. nop
    57. back:
    58.  
    59. [disable]
    60. dealloc(ImprovedDupexV2)
    61. dealloc(Platform)
    62. dealloc(RunFlag)
    63.  
    64. 00A01A76:
    65. db 89 BE 14 01 00 00
    and...


    Code (Text):
    1. [enable]
    2. alloc(BPVac, 128)
    3. alloc(BPXY, 8)
    4. label(BPEnd)
    5. label(BPVacReturn)
    6. label(UpdatePosition)
    7.  
    8. 00ACD959:
    9. db 75
    10.  
    11. 00A674BB:
    12. db 05 00 00 00 00
    13.  
    14. 006F1D62:
    15. db 90 90 90 90 90 90
    16.  
    17. 00A5F0C8:
    18. db E9 17 1B 00 00 90
    19.  
    20. BPVac:
    21. cmp dword ptr [00D4A358], 00
    22. je BPEnd
    23. cmp dword ptr [00D4A770], 00
    24. je BPEnd
    25. push eax
    26. call UpdatePosition
    27. mov eax, [00D4A358]
    28. mov eax, [eax+1898]
    29. cmp esi, eax
    30. pop eax
    31. je BPEnd
    32. mov eax, [BPXY]
    33. mov [edi-04], eax
    34. mov eax, [BPXY+04]
    35. mov [edi], eax
    36. jmp BPEnd
    37.  
    38. UpdatePosition:
    39. mov eax, [00D4A358]
    40. mov eax, [eax+7C]
    41. mov eax, [eax+40]
    42. mov eax, [eax+24]
    43. mov eax, [eax+1C]
    44. mov eax, [eax+24]
    45. push edi
    46. mov edi, [eax+60]
    47. mov [BPXY], edi
    48. mov edi, [eax+64]
    49. mov [BPXY+04], edi
    50. pop edi
    51. ret
    52.  
    53. BPEnd:
    54. mov [edi], eax
    55. mov ebx, [ebp+14]
    56. jmp BPVacReturn
    57.  
    58. 00AD2DB0:
    59. jmp BPVac
    60. BPVacReturn:
    61.  
    62. [disable]
    63. dealloc(BPVac)
    64. dealloc(BPXY)
    65.  
    66. 00ACD959: // 74 ? FF 74 24 ? 8B 06 FF 74 24 ? 8B CE 6A 1E FF 50 ? EB
    67. db 74
    68.  
    69. 00A674BB: // 05 ? ? 00 00 89 85 BC ? ? ? 8D 85 BC ? ? ? 50 8D 85
    70. db 05 E8 03 00 00
    71.  
    72. 006F1D62: // 0F 8F ? ? 00 00 89 5D ? 6A 01 8D 45 ? 50 8B CE 89 ? FC
    73. db 0F 8F E9 00 00 00
    74.  
    75. 00A5F0C8: // 0F 85 ? ? 00 00 8B 86 ? ? ? ? 83 E0 FE 83 F8 12 0F 84
    76. db 0F 85 16 1B 00 00
    77.  
    78. 00AD2DB0: // 89 07 8B 5D 14 85 DB 74 ? FF B6 ? 00 00 00 8D 46 ? 50 E8
    79. db 89 07 8b 5d 14
    80.  

    Please can anyone help me convert this scripts to C++? :D

    So it does like this but just those scripts.

    Code (Text):
    1. DWORD GodmodePointer = 0x00A285F7;
    2. BYTE enableGodmode[] = {0x01};
    3. BYTE disableGodmode[] = {0x1E};
    4.  
    5. void Form1::checkBox2_CheckedChanged(System::Object^  sender, System::EventArgs^  e)
    6. {
    7.      if(this->checkBox2->Checked)
    8.          {
    9.         memcpy((void*)GodmodePointer, enableGodmode, sizeof(enableGodmode));
    10.          }
    11.      else
    12.         {
    13.         memcpy((void*)GodmodePointer, disableGodmode, sizeof(disableGodmode));
    14.          }
    15. }

    Thanks in advance for help :D
     
  2. DarkSpace

    DarkSpace Well-Known Member Coder

    those scripts cant be converted to the once from my tutorial.
    but just sit back and enjoy. because i'll be making a tutorial on how to convert those scripts also.

    those scripts there have something called assembly.
    they are a totally different language. but it can be used within C++

    code cave scripts require you to write out those
    mov eax, [eax]
    and things like that

    really painfull process =P but has to be done
     
  3. Nebbis

    Nebbis Banned Banned

    kk, thanks :]

    please can you help me convert those script to anything that can be used with C++? ;)
     
  4. Danny1994

    Danny1994 Likes to contribute Coder

    These scripts are for gMS btw.
     

Share This Page