Thread: help error port

Results 1 to 3 of 3
  1. #1
    [mi5's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    301
    Reputation
    10
    Thanks
    618

    help error port

    Code:
    #include <Windows.h>
    #define FastKnife1 0xA60
    #define FastKnife2 0xAA8
    #define KnifeOHK1  0xBF8
    #define KnifeOHK2  0xC04 
    DWORD WINAPI Base(void)
    {
    while(1)
    {
    if(GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.fxd"))
    {
    Sleep(100);
    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    DWORD Weapon = *(DWORD*) (CShell + 0xB5D5F8);
    
    if (Weapon!=NULL)
    		 {
    for(int i=0; i<700; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+Weapon))+(4*i)) ) != NULL)
    {
    for (int j=0; j<9 ; j++)
    {
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+Weapon)) +(4*i))) + 0xA60+j*4) = 2.0f;//fast
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+Weapon)) +(4*i))) + 0xAA8 +j*4) = 2.0f;//fast
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+Weapon)) +(4*i))) + 0xBF8+j*4) = 1800.0f;//OHK
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+Weapon)) +(4*i))) + 0xC04+j*4) = 1800.0f;//OHK
    
    	}
    }
    		 }
    
    memcpy((VOID*)0x6D2894, "\x00\x00\x00\x00\x00\x00", 6);           
    DWORD Basic  = *(DWORD*)( CShell  + 0xAF64C8);
    			if(Basic)
    			{
    				*(float*)(Basic + 0x88) = 300;
    				*(float*)(Basic + 0x8C) = 300;
    				*(float*)(Basic + 0x90) = 300;
    			}
    }
    }
    }
    
    }
    DWORD WINAPI MemoryHook(LPVOID)
    {
    _asm {
       PUSH 0;
       PUSH 0;
       CALL Base;
       PUSH 0;
       PUSH 0;
       PUSH 0;
      }
    }
    BOOL APIENTRY DllMain( HMODULE hModule,DWORD ul_reason_for_call,LPVOID lpReserved )
    {
    if (ul_reason_for_call == DLL_PROCESS_ATTACH)
    {
    CreateThread(0,0,(LPTHREAD_START_ROUTINE)MemoryHook,0,0,0);
    }
    return TRUE;
    }

  2. #2
    sh_z_sektor's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Olly
    Posts
    1,505
    Reputation
    63
    Thanks
    1,633
    My Mood
    Amused
    dude the way i see it all your base is C+P and why did you define FastKnife1,2 and KnifeOHK1,2 if you arn't going to use them when your coding(Useless) if you are always going to ask for help with simple stuff i think you should stop coding from now or go learn the basics first then come back to coding...

  3. #3
    Trader_6939's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    North Carolina , Raleigh
    Posts
    23
    Reputation
    10
    Thanks
    3
    @[mi5 , Please learn c++ before post a useless post.

    ---------- Post added at 12:38 PM ---------- Previous post was at 12:24 PM ----------

    ~ Happy Leeching , if you didn't put credit's then you are Leech man !
    Code:
    #include <Windows.h>
    #define FastKnife1 0xA60
    #define FastKnife2 0xAA8
    #define KnifeOHK1  0xBF8
    #define KnifeOHK2  0xC04 
    #define IsKnife (i == 5 || i == 35 || i == 74 || i == 120 || i == 132 || i == 176 || i == 177 || i == 178 || i == 182 || i == 195 || i == 196 || i == 197 || i == 198 || i == 199 || i == 223 || i == 224 || i == 225 || i == 226 || i == 227 || i == 228 || i == 244 || i == 302 || i == 303 || i == 304 || i == 305 || i == 306 || i == 307 || i == 318 || i == 345 || i == 346 || i == 376 || i == 404 || i == 405 || i == 406 || i == 407 || i == 408 || i == 409 || i == 437 || i == 455 || i == 456 || i == 457 || i == 517 || i == 518 || i == 548 || i == 576) 
    //Credit to derh.acker  for knife define :)
    DWORD WINAPI Base(void)
    {
    while(1)
    {
    if(GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.fxd"))
    {
    Sleep(100);
    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    DWORD Weapon = *(DWORD*) (CShell + 0xB5D5F8);
    
    int KnifesHack = true;
    
    
    if (Weapon!=NULL)
    		 {
    			 if(KnifesHack){
             if(Weapon) {
                     for(int i=0; i<700; i++)  {
                              DWORD wep = *(DWORD*)(Weapon +(4*i));
                              if(wep) {
                                       for(int y=0; y<10; y++) {
    									   if(IsKnife){
                                                *(float*)(wep + FastKnife1+y*4) = 0;
                                                *(float*)(wep + FastKnife2+y*4) = 0;
                                                *(float*)(wep + KnifeOHK1+y*4) = 0;
                                                *(float*)(wep + KnifeOHK2+y*4) = 0;
    									   }
    											} 
    								
                     }
             }
    }
    }
    	 }
    
    memcpy((VOID*)0x6D2894, "\x00\x00\x00\x00\x00\x00", 6);           
    DWORD Basic  = *(DWORD*)( CShell  + 0xAF64C8);
    			if(Basic)
    			{
    				*(float*)(Basic + 0x88) = 300;
    				*(float*)(Basic + 0x8C) = 300;
    				*(float*)(Basic + 0x90) = 300;
    			}
    }
    }
    }
    DWORD WINAPI MemoryHook(LPVOID)
    {
    _asm {
       PUSH 0;
       PUSH 0;
       CALL Base;
       PUSH 0;
       PUSH 0;
       PUSH 0;
      }
    }
    BOOL APIENTRY DllMain( HMODULE hModule,DWORD ul_reason_for_call,LPVOID lpReserved )
    {
    if (ul_reason_for_call == DLL_PROCESS_ATTACH)
    {
    CreateThread(0,0,(LPTHREAD_START_ROUTINE)MemoryHook,0,0,0);
    }
    return TRUE;
    }
    Last edited by Trader_6939; 07-13-2012 at 11:39 AM.

  4. The Following User Says Thank You to Trader_6939 For This Useful Post:

    [mi5 (07-13-2012)

Similar Threads

  1. [Help Request] Help error Crossfire Ph
    By matheuspoloni in forum CrossFire Help
    Replies: 11
    Last Post: 08-06-2011, 01:52 PM
  2. Help Error message every time i start warrock
    By BoricuaGaara in forum WarRock - International Hacks
    Replies: 7
    Last Post: 06-11-2007, 05:02 PM
  3. Help! Error
    By Hispiforce in forum WarRock - International Hacks
    Replies: 5
    Last Post: 06-07-2007, 10:34 AM
  4. [Help] Error again..
    By Spoking in forum WarRock Korea Hacks
    Replies: 3
    Last Post: 05-22-2007, 02:51 PM
  5. [Help] Error.
    By Spoking in forum WarRock Korea Hacks
    Replies: 5
    Last Post: 05-21-2007, 01:10 PM