Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > WarRock
You last visited: Today at 10:07

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Warrock - Code Snippets

Discussion on Warrock - Code Snippets within the WarRock forum part of the Shooter category.

Closed Thread
 
Old 09/01/2012, 13:16   #256
 
elite*gold: 0
Join Date: Feb 2012
Posts: 85
Received Thanks: 18
#request

STW
WUW
WTH
WTW
AimBot
alfmkwndk is offline  
Thanks
1 User
Old 09/01/2012, 15:33   #257
 
elite*gold: 73
Join Date: Mar 2011
Posts: 2,908
Received Thanks: 8,548
Quote:
KANN MIR JEMAND SAGEN, WARUM GEHT ER NICHT ARBEITEN???

switch(cPlayer.CH_PlayerSpeed)
{
case 0: WriteMEM<double>((void*)ADR_OFFSET_PLAYERSPEED,96) ;break;
case 1: WriteMEM<double>((void*)ADR_OFFSET_PLAYERSPEED,96* 2);break;
case 2: WriteMEM<double>((void*)ADR_OFFSET_PLAYERSPEED,96* 3);break;
case 3: WriteMEM<double>((void*)ADR_OFFSET_PLAYERSPEED,96* 4);break;
case 4: WriteMEM<double>((void*)ADR_OFFSET_PLAYERSPEED,96* 5);break;
case 5: WriteMEM<double>((void*)ADR_OFFSET_PLAYERSPEED,96* 6);break;
case 6: WriteMEM<double>((void*)ADR_OFFSET_PLAYERSPEED,96* 7);break;
}
Kazbah__ is offline  
Old 09/01/2012, 15:42   #258

 
elite*gold: 0
Join Date: Mar 2012
Posts: 3,513
Received Thanks: 1,023
Quote:
Originally Posted by 的紈絝子弟 View Post
Code:
DWORD DetourCreate(DWORD DetourSrc, DWORD DetourtVlca, DWORD SizeDetour)
{
#define SizeDetour 5
DWORD DetourPre, dwProtect, i;
if (DetourSrc && DetourtVlca && SizeDetour == SizeDetour)
{
DetourPre = (DWORD) VirtualAlloc(NULL, SizeDetour + SizeDetour, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
if (DetourPre && VirtualProtect((VOID*)DetourSrc, SizeDetour, PAGE_EXECUTE_READWRITE, &dwProtect))
{
for (i = 0; i < SizeDetour; i++) 
{
*(BYTE*)( DetourPre + i ) = *(BYTE*)( DetourSrc + i );
}
*(BYTE*) (DetourPre + SizeDetour + 0) = 0x50;
*(BYTE*) (DetourPre + SizeDetour + 0) = 0x58;
*(BYTE*) (DetourPre + SizeDetour + 0) = 0xE9;
*(DWORD*)(DetourPre + SizeDetour + 1) = (DetourSrc - DetourPre - SizeDetour);
*(BYTE*) (DetourSrc + 0) = 0x50;
*(BYTE*) (DetourSrc + 0) = 0x58;
*(BYTE*) (DetourSrc + 0) = 0xE9;
*(DWORD*)(DetourSrc + 1) = (DetourtVlca - DetourSrc - SizeDetour);
VirtualProtect((VOID*)DetourSrc, SizeDetour, dwProtect, &dwProtect);
VirtualProtect((VOID*)DetourPre, SizeDetour + SizeDetour, PAGE_EXECUTE_READ, &dwProtect);
return DetourPre;
}
}
return (0);
}
Code:
void HideModule(HINSTANCE hModule)/*Credits to Thanatos aka Surpintine for his hide module function*/
{
DWORD dwPEB_LDR_DATA = 0;
_asm
{
pushad;
pushfd;
mov eax, fs:[30h]             
mov eax, [eax+0Ch]               
mov dwPEB_LDR_DATA, eax

InLoadOrderModuleList:
mov esi, [eax+0Ch]     
mov edx, [eax+10h]     

LoopInLoadOrderModuleList: 
    lodsd         
mov esi, eax
mov ecx, [eax+18h]  
cmp ecx, hModule
jne SkipA 
    mov ebx, [eax]  
    mov ecx, [eax+4]  
    mov [ecx], ebx    
    mov [ebx+4], ecx  
jmp InMemoryOrderModuleList 

SkipA:
cmp edx, esi     
jne LoopInLoadOrderModuleList

InMemoryOrderModuleList:
mov eax, dwPEB_LDR_DATA
mov esi, [eax+14h]
mov edx, [eax+18h]

LoopInMemoryOrderModuleList: 
lodsd
mov esi, eax
mov ecx, [eax+10h]
cmp ecx, hModule
jne SkipB
mov ebx, [eax] 
mov ecx, [eax+4]
mov [ecx], ebx
mov [ebx+4], ecx
jmp InInitializationOrderModuleList

SkipB:
cmp edx, esi
jne LoopInMemoryOrderModuleList

InInitializationOrderModuleList:
mov eax, dwPEB_LDR_DATA
mov esi, [eax+1Ch]  
mov edx, [eax+20h]  

LoopInInitializationOrderModuleList: 
lodsd
mov esi, eax
mov ecx, [eax+08h]
cmp ecx, hModule
jne SkipC
mov ebx, [eax] 
mov ecx, [eax+4]
mov [ecx], ebx
mov [ebx+4], ecx
jmp Finished

SkipC:
cmp edx, esi
jne LoopInInitializationOrderModuleList

Finished:
popfd;
popad;
}
}
KANN MIR JEMAND SAGEN, WARUM GEHT ER NICHT ARBEITEN???
Code:
if (CH_Speed)
{
FailUpdate<double> ((void*)OFS_SPEED, (97.0 * (CH_Speed + 1)));
}
Your Detour is detected and your speed is copied thats why its very uncorectly.
Just do it like this :
If (funktion(=1))
{*(datentyp*)adresse=value};

Oder benutz die switch-Funktion.
Faultyclones is offline  
Old 09/01/2012, 20:06   #259
 
elite*gold: 0
Join Date: Feb 2012
Posts: 85
Received Thanks: 18
#request

Struct OPK
alfmkwndk is offline  
Old 09/01/2012, 22:45   #260
 
Lucky Strike™'s Avatar
 
elite*gold: 2
Join Date: May 2010
Posts: 2,913
Received Thanks: 1,565
Kann mir jemand sagen, aus welchem Grund NoRecoil bei mir nicht worked?

Code:
if (CH_NoRecoil == 1)
{
*(float*)(ADR_PlayerPointer + ADR_NoRecoil1) = 0;
*(float*)(ADR_PlayerPointer + ADR_NoRecoil2) = 0;
*(float*)(ADR_PlayerPointer + ADR_NoRecoil3) = 0;
}
Es funktioniert einfach nicht, die Waffe ziehts immernoch nach oben beim Schießen...
Habs, wie man sieht, mit dem Offset gemacht, gibts dafür eigentlich ne Memory-Adress (naja die existenz ist eher nicht fraglich)? bzw hat die jemand und ist bereit die zu sharen?

EDIT: LOL ich habs voll verpeilt, richtig auf die Adressendefinition (Adress != Makro) einzugehen. Hat sich schon erledigt, danke.
Lucky Strike™ is offline  
Old 09/02/2012, 12:55   #261
 
maxstei's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 190
Received Thanks: 22
Why the norecoil crash my D3D? All functions worked only no recoil don't works
Please help me xD
maxstei is offline  
Old 09/02/2012, 15:01   #262

 
HackTec's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 1,790
Received Thanks: 1,244
Quote:
Originally Posted by Zyzz__ View Post
switch(cPlayer.CH_PlayerSpeed)
{
case 0: WriteMEM<double>((void*)ADR_OFFSET_PLAYERSPEED,96) ;break;...
}
if(CH_Speed == 0){
FailUpdate<double> ((void*)OFS_SPEED, (97.0 ));}


so workt es bei uns aufjedenfall xD
HackTec is online now  
Old 09/02/2012, 15:13   #263
 
elite*gold: 0
Join Date: Feb 2012
Posts: 85
Received Thanks: 18
#request
OPK Asm
Detour
alfmkwndk is offline  
Old 09/02/2012, 15:14   #264
 
Phantom.'s Avatar
 
elite*gold: 0
Join Date: Apr 2012
Posts: 1,510
Received Thanks: 3,014
Quote:
Originally Posted by HackTec View Post
if(CH_Speed == 0){
FailUpdate<double> ((void*)OFS_SPEED, (97.0 ));}


so workt es bei uns aufjedenfall xD

hat einer für mich Slots source ? will einfach nicht worken....
Code:
if( Slot5 )
{
	*(BYTE*)(dwServerPtr+OFS_SLOT5) = 1;
}

if( Slot6 )
{
	*(BYTE*)(dwServerPtr+OFS_SLOT6) = 1;
}

if( Slot7 )
{
	*(BYTE*)(dwServerPtr+OFS_SLOT7) = 1;
}

if( Slot8 )
{
	*(BYTE*)(dwServerPtr+OFS_SLOT8) = 1;
}
Phantom. is offline  
Old 09/02/2012, 15:32   #265
 
elite*gold: 0
Join Date: Jul 2011
Posts: 3,812
Received Thanks: 1,840
Quote:
Originally Posted by TradEmArk™˟ View Post
Code:
if( Slot5 )
{
	*(BYTE*)(dwServerPtr+OFS_SLOT5) = 1;
}

if( Slot6 )
{
	*(BYTE*)(dwServerPtr+OFS_SLOT6) = 1;
}

if( Slot7 )
{
	*(BYTE*)(dwServerPtr+OFS_SLOT7) = 1;
}

if( Slot8 )
{
	*(BYTE*)(dwServerPtr+OFS_SLOT8) = 1;
}
Wieso immer so unnötig lang? >.<

Code:
if (XR_Slot5)
	*(BYTE*)(dwSP+OFS_SLOT5) = 1;
if (XR_Slot6)
	*(BYTE*)(dwSP+OFS_SLOT5) = 1;
if (XR_Slot7)
	*(BYTE*)(dwSP+OFS_SLOT5) = 1;
if (XR_Slot8)
	*(BYTE*)(dwSP+OFS_SLOT5) = 1;


€:Yo, meine NoMenu-Base (Manche sachen nicht updated)

Addys.h
cheats.h
main.cpp
bypass.h
patch.h
xRoute66x is offline  
Old 09/02/2012, 15:41   #266

 
HackTec's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 1,790
Received Thanks: 1,244
Danke aber habens schon...

Quote:
if (CH_Slots==1){
*(int*)(Server + ADR_SLOT5) = 0x1;
*(int*)(Server + ADR_SLOT6) = 0x1;
*(int*)(Server + ADR_SLOT7) = 0x1;
*(int*)(Server + ADR_SLOT8) = 0x1;}
Quote:
if(CH_cross==1)
{
int x = ( GetSystemMetrics( 0 ) / 2);
int y = ( GetSystemMetrics( 1 ) / 2);
D3DRECT rec = { x - 10, y, x + 10, y + 1};
D3DRECT rec2 = { x, y - 10, x + 1, y + 10};
pDevice->Clear(1, &rec, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255, 255, 0, 0), 0, 0); //Red
pDevice->Clear(1, &rec2, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255, 255, 0, 0), 0, 0); //Red
}
Wieso kommt da kein crosshair xD

Edit : ingame crosshairr... lol
HackTec is online now  
Old 09/03/2012, 21:25   #267
 
elite*gold: 0
Join Date: Apr 2010
Posts: 41
Received Thanks: 3
This sources and this structs isnt work me. Help please where's the problem?? if im ON it. Warrock will crashed 10 seconds

Structs =
Code:
struct CPlayer
{
    char BuRn3R1[7424];//0x00
    int GlobalIndex;//0x1D00
    char BuRn3R2[42808];//0x1D04
    float NoRecoil1;//0xC43C
    float NoRecoil2;//0xC440
    float NoRecoil3;//0xC444
    char BuRn3R3[72];//0xC448
    BYTE Index;//0xC490
    char BuRn3R4[19];//0xC491
    float GravityX;//0xC4A4
    float GravityY;//0xC4A8
    float GravityZ;//0xC4AC
    char BuRn3R5[24];//0xC4B0
    int WeaponState;//0xC4C8
    char BuRn3R6[15416];//0xC4CC
    float PlayerSpeed;//0x10104
    float NoSpread;//0x10108
    float FastNadeBlast;//0x1010C
    char BuRn3R7[136];//0x10110
    int PlayerView3D;//0x10198
    char BuRn3R8[4];//0x1019C
    float Pitch;//0x101A0
    char BuRn3R9[24];//0x101A4
    float Yaw;//0x101BC
    char BuRn3R10[12];//0x101C0
    float ViewX;//0x101CC
    float ViewY;//0x101D0
    float ViewZ;//0x101D4
    char BuRn3R11[12];//0x101D8
    WORD Weapon1;//0x101E4
    WORD Weapon2;//0x101E6
    WORD Weapon3;//0x101E8
    char BuRn3R12[90];//0x101EA
    BYTE PlayerState;//0x10244
    char BuRn3R13[155];//0x10245
    float NoFallDamage;//0x102E0
    char BuRn3R14[20];//0x102E4
    float PosX;//0x102F8
    char BuRn3R15[4];//0x102FC
    float PosY;//0x102F0
    char BuRn3R16[4];//0x102F4
    float PosZ;//0x10300
    char BuRn3R17[100];//0x10304
    DWORD AutoPlant;//0x10368
    DWORD AutoDefuse;//0x1036C
    char BuRn3R18[14];//0x10370
    DWORD AutoShot;//0x1037E
    char BuRn3R19[106];//0x10382
    float NoM134Idle;//0x103EC
    char BuRn3R20[23828];//0x103F0
    int LocalIndex;//0x16104
};

struct CServer
{
    char BuRn3R1[292];//0x00
    BYTE AntiAbnormal1;//0x124
    BYTE AntiAbnormal2;//0x125
    char BuRn3R2[570];//0x126
    BYTE AntiAbnormal3;//0x360
    BYTE AntiAbnormal4;//0x361
    char BuRn3R3[554];//0x362
    int Premium;//0x58C
    long PremiumDays;//0x590
    char BuRn3R4[793292];//0x594
    int SuperMaster;//0xC2060
    char BuRn3R5[20565];//0xC2064
    BYTE Slot1;//0xC70B9
    BYTE Slot2;//0xC70B5
    BYTE Slot3;//0xC70B6
    BYTE Slot4;//0xC70B7
    BYTE Slot5;//0xC70BC
    BYTE Slot6;//0xC70B9
    BYTE Slot7;//0xC70BA
    BYTE Slot8;//0xC70BB
    char BuRn3R6[98524];//0xC70BC
    long Level;//0xDF198
    char BuRn3R7[396];//0xDF19C
    long Dinar;//0xDF328
    char BuRn3R8[16];//0xDF32C
    long Invisible;//0xDF33C
    char BuRn3R9[5440];//0xDF340
    int RoomMaster;//0xE0880
};

struct CVehicle
{
    char BuRn3R1[10706772];//0x00
    float Pitch;//0xA35F54
    float Yaw;//0xA35F58
};

struct CBase
{
    CPlayer* pLocal;//0xA363B8
    char* BuRn3R1[1197020];//0xA363BC
    CPlayer** pGlobal;//0xB5A798
};

CBase *p_Player = (CBase*)0x00A8D258;

CPlayer* getPlayer(INT index)
{
return p_Player->pGlobal[index];
}

Sources =

Code:
if (OPK == 1) 
{
DWORD dwSrvrPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwSrvrPtr != 0)
{
if (dwPlayerPtr != 0 && dwSrvrPtr != 0)
for(int i = 0; i < 32; i++)
{
*(float*)(dwPlayerPtr + OFS_X) =0 ;
*(float*)(dwPlayerPtr+ OFS_Y) =0 ;
CPlayer* pPlayerA = p_Player->pGlobal[i];    
pPlayerA->PosX=0;
pPlayerA->PosY=0;
pPlayerA->PosZ=0;
}
}}

//////////////////////////////////////////////


        if (SVP == 1)
    {
        for (int i=0;i<32;i++)
        {
            CPlayer *pPlayerA = p_Player->pGlobal[i];
            pPlayerA->PosX=(i*50);
            pPlayerA->PosY=0;
            pPlayerA->PosZ=0;
        }
    }

///////////////////////////////////////////////////

        if(CH_OPK == 1)
        {
            for ( int I = 0; I < 32; I++)
            {
                CPlayer *DEINEMUDDA = getPlayer(I);

                DEINEMUDDA->PosX = 0;
                DEINEMUDDA->PosY = 0;
                DEINEMUDDA->PosZ = 0;
            }
        }

///////////////////////



Dont work help please
futbolcuadem is offline  
Old 09/04/2012, 14:12   #268
 
elite*gold: 0
Join Date: Jul 2011
Posts: 3,812
Received Thanks: 1,840
Quote:
Originally Posted by futbolcuadem View Post
This sources and this structs isnt work me. Help please where's the problem?? if im ON it. Warrock will crashed 10 seconds

Structs =
Code:
struct CPlayer
{
    char BuRn3R1[7424];//0x00
    int GlobalIndex;//0x1D00
    char BuRn3R2[42808];//0x1D04
    float NoRecoil1;//0xC43C
    float NoRecoil2;//0xC440
    float NoRecoil3;//0xC444
    char BuRn3R3[72];//0xC448
    BYTE Index;//0xC490
    char BuRn3R4[19];//0xC491
    float GravityX;//0xC4A4
    float GravityY;//0xC4A8
    float GravityZ;//0xC4AC
    char BuRn3R5[24];//0xC4B0
    int WeaponState;//0xC4C8
    char BuRn3R6[15416];//0xC4CC
    float PlayerSpeed;//0x10104
    float NoSpread;//0x10108
    float FastNadeBlast;//0x1010C
    char BuRn3R7[136];//0x10110
    int PlayerView3D;//0x10198
    char BuRn3R8[4];//0x1019C
    float Pitch;//0x101A0
    char BuRn3R9[24];//0x101A4
    float Yaw;//0x101BC
    char BuRn3R10[12];//0x101C0
    float ViewX;//0x101CC
    float ViewY;//0x101D0
    float ViewZ;//0x101D4
    char BuRn3R11[12];//0x101D8
    WORD Weapon1;//0x101E4
    WORD Weapon2;//0x101E6
    WORD Weapon3;//0x101E8
    char BuRn3R12[90];//0x101EA
    BYTE PlayerState;//0x10244
    char BuRn3R13[155];//0x10245
    float NoFallDamage;//0x102E0
    char BuRn3R14[20];//0x102E4
    float PosX;//0x102F8
    char BuRn3R15[4];//0x102FC
    float PosY;//0x102F0
    char BuRn3R16[4];//0x102F4
    float PosZ;//0x10300
    char BuRn3R17[100];//0x10304
    DWORD AutoPlant;//0x10368
    DWORD AutoDefuse;//0x1036C
    char BuRn3R18[14];//0x10370
    DWORD AutoShot;//0x1037E
    char BuRn3R19[106];//0x10382
    float NoM134Idle;//0x103EC
    char BuRn3R20[23828];//0x103F0
    int LocalIndex;//0x16104
};

struct CServer
{
    char BuRn3R1[292];//0x00
    BYTE AntiAbnormal1;//0x124
    BYTE AntiAbnormal2;//0x125
    char BuRn3R2[570];//0x126
    BYTE AntiAbnormal3;//0x360
    BYTE AntiAbnormal4;//0x361
    char BuRn3R3[554];//0x362
    int Premium;//0x58C
    long PremiumDays;//0x590
    char BuRn3R4[793292];//0x594
    int SuperMaster;//0xC2060
    char BuRn3R5[20565];//0xC2064
    BYTE Slot1;//0xC70B9
    BYTE Slot2;//0xC70B5
    BYTE Slot3;//0xC70B6
    BYTE Slot4;//0xC70B7
    BYTE Slot5;//0xC70BC
    BYTE Slot6;//0xC70B9
    BYTE Slot7;//0xC70BA
    BYTE Slot8;//0xC70BB
    char BuRn3R6[98524];//0xC70BC
    long Level;//0xDF198
    char BuRn3R7[396];//0xDF19C
    long Dinar;//0xDF328
    char BuRn3R8[16];//0xDF32C
    long Invisible;//0xDF33C
    char BuRn3R9[5440];//0xDF340
    int RoomMaster;//0xE0880
};

struct CVehicle
{
    char BuRn3R1[10706772];//0x00
    float Pitch;//0xA35F54
    float Yaw;//0xA35F58
};

struct CBase
{
    CPlayer* pLocal;//0xA363B8
    char* BuRn3R1[1197020];//0xA363BC
    CPlayer** pGlobal;//0xB5A798
};

CBase *p_Player = (CBase*)0x00A8D258;

CPlayer* getPlayer(INT index)
{
return p_Player->pGlobal[index];
}

Sources =

Code:
if (OPK == 1) 
{
DWORD dwSrvrPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwSrvrPtr != 0)
{
if (dwPlayerPtr != 0 && dwSrvrPtr != 0)
for(int i = 0; i < 32; i++)
{
*(float*)(dwPlayerPtr + OFS_X) =0 ;
*(float*)(dwPlayerPtr+ OFS_Y) =0 ;
CPlayer* pPlayerA = p_Player->pGlobal[i];    
pPlayerA->PosX=0;
pPlayerA->PosY=0;
pPlayerA->PosZ=0;
}
}}

//////////////////////////////////////////////


        if (SVP == 1)
    {
        for (int i=0;i<32;i++)
        {
            CPlayer *pPlayerA = p_Player->pGlobal[i];
            pPlayerA->PosX=(i*50);
            pPlayerA->PosY=0;
            pPlayerA->PosZ=0;
        }
    }

///////////////////////////////////////////////////

        if(CH_OPK == 1)
        {
            for ( int I = 0; I < 32; I++)
            {
                CPlayer *DEINEMUDDA = getPlayer(I);

                DEINEMUDDA->PosX = 0;
                DEINEMUDDA->PosY = 0;
                DEINEMUDDA->PosZ = 0;
            }
        }

///////////////////////



Dont work help please
Haha
I can help you with your second OPK Source.
"DEINEMUDDA"is not defined .
xRoute66x is offline  
Thanks
1 User
Old 09/04/2012, 15:22   #269
 
maxstei's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 190
Received Thanks: 22
Request source chams complete....
maxstei is offline  
Old 09/04/2012, 20:40   #270
 
elite*gold: 0
Join Date: Apr 2010
Posts: 41
Received Thanks: 3
Quote:
Originally Posted by xroute66x™ :) View Post
Haha
I can help you with your second OPK Source.
"DEINEMUDA"is not defined .
of course "DEINEMUDA" is not defined but "DEINEMUDDA" is defined

Code:
                CPlayer *DEINEMUDDA = getPlayer(I);
futbolcuadem is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
WarRock EU - Code Snippets
07/12/2012 - WarRock - 7490 Replies
Hi Leute, in diesem Thread könnt ihr: -> Nach Sourcecodes fragen(Beispiel unten) -> Eure Sourcecodes posten(Wenn sie nicht von euch sind mit Credits!) -> Fragen ob eure Source evtl. einen Fehler hat -> Fragen was welcher Fehler bedeuted -> Sourcecodes entnehmen(Bitte beim Release dann Credits angeben!)



All times are GMT +1. The time now is 10:09.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.