Register for your free account! | Forgot your password?

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

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

Advertisement



WarRock EU - Code Snippets

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

View Poll Results: Wie findet ihr diesen Thread
Klasse! 78 60.94%
Geht so 17 13.28%
Sinnlos, braucht keiner 33 25.78%
Voters: 128. You may not vote on this poll

Closed Thread
 
Old 12/30/2011, 19:43   #6166
 
OriginalFenistilGel's Avatar
 
elite*gold: 17
Join Date: Sep 2010
Posts: 2,166
Received Thanks: 861
Quote:
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>

#define ADR_PLAYERPOINTER 0x009F1BAC
#define ADR_SERVERPOINTER 0x009F1B48
#define OFS_Z 0x00102E8
#define OFS_NFD 0x00102C8
#define OFS_5SLOT 0x001021BC
#define Recoil_Ofs1 0x00C43C
#define Recoil_Ofs2 0x00C440
#define Recoil_Ofs3 0x00C444
#define No_Spread 0x0857F20
#define ADR_NOSPAWNWAIT1 0xB1EBC0
#define ADR_NOSPAWNWAIT2 0xB1EBC4
#define ADR_NOSPAWNWAIT3 0xB1EBC8
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
DWORD dwServerPtr = *(DWORD*)ADR_SERVERPOINTER;

void PlayerHacks()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
//Super Jump
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
*(float*)(dwPlayerPtr + OFS_Z) = 2000;
}
}
//No Fall Damage
{
*(float*)(dwPlayerPtr + OFS_NFD) = -20000;
}

//Recoil
{
*(float*)(ADR_PLAYERPOINTER + Recoil_Ofs1 ) = 0;
*(float*)(ADR_PLAYERPOINTER + Recoil_Ofs2 ) = 0;
*(float*)(ADR_PLAYERPOINTER + Recoil_Ofs3 ) = 0;
}

//Spread
{
*(float*)No_Spread = 0;
}
}

//Smooth

{

if(GetAsyncKeyState(VK_CONTROL) &0x8000)

{

*(float*)(ADR_PLAYERPOINTER +OFS_Z) = *(float*)(ADR_PLAYERPOINTER +OFS_Z) +70;

}

}
}

void ServerHacks()
{
DWORD dwSrvrPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwSrvrPtr != 0)
{
//Slot Stuff

//5 Slot
{
*(long*)(dwSrvrPtr + OFS_5SLOT) = 1;
}


}

//Sipawn

{
long t=0;
unsigned long Protection;
VirtualProtect((void*)ADR_NOSPAWNWAIT1, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_NOSPAWNWAIT1, &t , sizeof(t));
VirtualProtect((void*)ADR_NOSPAWNWAIT1, sizeof(t), Protection, 0);

VirtualProtect((void*)ADR_NOSPAWNWAIT2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_NOSPAWNWAIT2, &t , sizeof(t));
VirtualProtect((void*)ADR_NOSPAWNWAIT2, sizeof(t), Protection, 0);

VirtualProtect((void*)ADR_NOSPAWNWAIT3, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_NOSPAWNWAIT3, &t , sizeof(t));
VirtualProtect((void*)ADR_NOSPAWNWAIT3, sizeof(t), Protection, 0);

}

}





void HackThread()
{
for(;
{
PlayerHacks();
Sleep(200);
}
}


BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0);
break;
case 2:
break;
}
return TRUE;
}

Stimmt irgendwas nicht ? Ingame geht nix -.-
OriginalFenistilGel is offline  
Old 12/30/2011, 20:18   #6167
 
elite*gold: 26
The Black Market: 288/1/0
Join Date: Dec 2010
Posts: 4,343
Received Thanks: 2,395
Quote:
Originally Posted by _BlackOne View Post
Ich kann jetzt schon sagen woran es liegt!
Du hast die falsche SuperNoSpread addy.
Die richtige :0x00857F20
Tausch deine addy mal mit der.
Sollte dann gehen
ja ich habe es schon gemerkt aber trotzdem danke
hero9910 is offline  
Old 12/30/2011, 20:57   #6168
 
OriginalFenistilGel's Avatar
 
elite*gold: 17
Join Date: Sep 2010
Posts: 2,166
Received Thanks: 861
Kann mir einer No Recoil, No Spread und 5 Slot Sources geben ? Meine gehen nicht -.-
OriginalFenistilGel is offline  
Old 12/30/2011, 21:37   #6169
 
xCyberRazzer's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 75
Received Thanks: 60
Code:
if ( cWeaponHacks.CH_NoRecoil )
{
    *(FLOAT*)(dwPlayerPtr+ADR_OFFSET_NORECOIL_1) = 0.0F;
    *(FLOAT*)(dwPlayerPtr+ADR_OFFSET_NORECOIL_2) = 0.0F;
    *(FLOAT*)(dwPlayerPtr+ADR_OFFSET_NORECOIL_3) = 0.0F;
}
Code:
if ( cWeaponHacks.CH_NoSpread )
{
    *(FLOAT*)(dwPlayerPtr+ADR_OFFSET_NOSPREAD) = 1.0F;//NoSpread
    //*(DOUBLE*)(dwPlayerPtr+ADR_MEMORY_SUPERNOSPREAD) = 0.0F;//SuperNoSpread
}
else
{
    *(FLOAT*)(dwPlayerPtr+ADR_OFFSET_NOSPREAD) = 0.0F;//NoSpread
    //*(DOUBLE*)(dwPlayerPtr+ADR_MEMORY_SUPERNOSPREAD) = 5.0F;//SuperNoSpread
}
Code:
if ( cServerHacks.CH_EnableSlot5 )
{
    *(BYTE*)(dwServerPtr+ADR_OFFSET_SLOT_5) = 0x1;
}
xCyberRazzer is offline  
Thanks
1 User
Old 12/30/2011, 21:55   #6170
 
OriginalFenistilGel's Avatar
 
elite*gold: 17
Join Date: Sep 2010
Posts: 2,166
Received Thanks: 861
Quote:
Originally Posted by xCyberRazzer View Post
Code:
if ( cWeaponHacks.CH_NoRecoil )
{
    *(FLOAT*)(dwPlayerPtr+ADR_OFFSET_NORECOIL_1) = 0.0F;
    *(FLOAT*)(dwPlayerPtr+ADR_OFFSET_NORECOIL_2) = 0.0F;
    *(FLOAT*)(dwPlayerPtr+ADR_OFFSET_NORECOIL_3) = 0.0F;
}
Code:
if ( cWeaponHacks.CH_NoSpread )
{
    *(FLOAT*)(dwPlayerPtr+ADR_OFFSET_NOSPREAD) = 1.0F;//NoSpread
    //*(DOUBLE*)(dwPlayerPtr+ADR_MEMORY_SUPERNOSPREAD) = 0.0F;//SuperNoSpread
}
else
{
    *(FLOAT*)(dwPlayerPtr+ADR_OFFSET_NOSPREAD) = 0.0F;//NoSpread
    //*(DOUBLE*)(dwPlayerPtr+ADR_MEMORY_SUPERNOSPREAD) = 5.0F;//SuperNoSpread
}
Code:
if ( cServerHacks.CH_EnableSlot5 )
{
    *(BYTE*)(dwServerPtr+ADR_OFFSET_SLOT_5) = 0x1;
}

is das für menü oder no menü ?
OriginalFenistilGel is offline  
Old 12/31/2011, 01:06   #6171
 
Dogukan47's Avatar
 
elite*gold: 1
Join Date: May 2011
Posts: 1,490
Received Thanks: 196
Quote:
Originally Posted by OriginalFenistilGel View Post
is das für menü oder no menü ?
sowohl, als auch
Dogukan47 is offline  
Thanks
1 User
Old 12/31/2011, 10:16   #6172
 
elite*gold: 0
Join Date: Dec 2011
Posts: 35
Received Thanks: 11
Opk, stw source Bittte !


anti spam :

anti kick (:P)

if(CH_AntiKick==1){
pAntiKick.PatchOnce ((void*)"\xEB\x0D",2);}
if(CH_AntiKick==0){
pAntiKick.RestorePatch();}



premium cross

void Asm()
{
if (CH_Premcross != 0)
{
switch(CH_Premcross)
{
case 1:{Cross = ADR_PremCross_1+0x24 ;}break;
case 2:{Cross = ADR_PremCross_1+0x4D ;}break;
case 3:{Cross = ADR_PremCross_1+0x76 ;}break;
case 4:{Cross = ADR_PremCross_1+0x9F ;}break;
}
Memcpy((LPBYTE)ADR_PremCross_1, (PBYTE)"\x90\x90\x90\x90\x90\x90",6);
Memcpy((LPBYTE)ADR_PremCross_1 + 0x17,(PBYTE)"\x90\x90\x90\x90\x90\x90",6);
DetourFunc((BYTE *)ADR_PremCross_1 + 0x1D,(BYTE*)prem_cross,7);
}else{
Memcpy((LPBYTE)ADR_PremCross_1, (PBYTE)"\x0F\x84\x86\x01\x00\x00",6);
Memcpy((LPBYTE)ADR_PremCross_1 +0x17,(PBYTE)"\x0F\x84\x86\x01\x00\x00",6);
}



:P
E▲SY is offline  
Old 12/31/2011, 13:16   #6173
 
elite*gold: LOCKED
Join Date: Dec 2009
Posts: 434
Received Thanks: 396
AntiKick geht ja auch ganz ganz toll . Zum 999999999 mal => Anti Kick = PATChED!
KingClem™ is offline  
Thanks
2 Users
Old 12/31/2011, 14:08   #6174
 
CyberVeezy :)'s Avatar
 
elite*gold: 1
Join Date: Oct 2011
Posts: 1,117
Received Thanks: 1,520
UD Scope
Code:
 if  ( x_Scope)
		{
			if ( GetAsyncKeyState ( VK_RBUTTON ) )
			{
				*(int*)Scope = 1;
			}
			else if ( ! GetAsyncKeyState ( VK_RBUTTON ) )
			{
				*(int*)Scope = 5;
			}
Creditz: IDK :S

Quote:
Originally Posted by OriginalFenistilGel View Post
is das für menü oder no menü ?
void = NoMenü if = Menü
CyberVeezy :) is offline  
Old 12/31/2011, 15:02   #6175
 
Dogukan47's Avatar
 
elite*gold: 1
Join Date: May 2011
Posts: 1,490
Received Thanks: 196
Quote:
void = NoMenü if = Menü
falsch
Dogukan47 is offline  
Thanks
1 User
Old 12/31/2011, 15:09   #6176

 
xxfabbelxx's Avatar
 
elite*gold: 900
Join Date: Apr 2009
Posts: 14,981
Received Thanks: 11,403
Quote:
Originally Posted by CyberVeezy :) View Post
UD Scope
Code:
 if  ( x_Scope)
		{
			if ( GetAsyncKeyState ( VK_RBUTTON ) )
			{
				*(int*)Scope = 1;
			}
			else if ( ! GetAsyncKeyState ( VK_RBUTTON ) )
			{
				*(int*)Scope = 5;
			}
Creditz: IDK :S


void = NoMenü if = Menü
Was hat das bitte damit zu tun?

man kann genauso ein void in einem Menühack verbauen, wäre zwar bisschen sinnlos aber es geht trotzdem...

Code:
if (cPremium == 0) { hPremium(0); }
if (cPremium == 1) { hPremium(1); }
if (cPremium == 2) { hPremium(2); }
if (cPremium == 3) { hPremium(3); }

void hPremium(int x)
{
 *(int*)(dwServer + ofsPREMIUM1) = x;
}
xxfabbelxx is offline  
Old 12/31/2011, 15:16   #6177
 
elite*gold: LOCKED
Join Date: Dec 2009
Posts: 4,650
Received Thanks: 5,731
Quote:
Originally Posted by CyberVeezy :) View Post
UD Scope
Code:
 if  ( x_Scope)
		{
			if ( GetAsyncKeyState ( VK_RBUTTON ) )
			{
				*(int*)Scope = 1;
			}
			else if ( ! GetAsyncKeyState ( VK_RBUTTON ) )
			{
				*(int*)Scope = 5;
			}
Creditz: IDK :S


void = NoMenü if = Menü


lawl wann lernt ihr das es gibt keine unterschiede zwischen den sources von menu und no menu

das menu ist dadrauf auf gebaut das wenn du eine funktion an machst das diese von int blabla = 0; auf 1 gesetzt wird auf zwei .... (bischen fail erklärt aber ich glaube das sollte man verstehen...)


so will man jetzt scope immer aktiv haben in einem nomenu hack muss man danach einfach nur int blabla = 1; schreiben damit diese funktion ständig an bleibt....


oder eben in einem bool alle funktionen anmachen lassen

bool blablabla = true;
if(blablabla)
{
blabla = 1;
blablabla = false;
}
Angel-Piece is offline  
Thanks
4 Users
Old 12/31/2011, 15:49   #6178
 
Raz9r's Avatar
 
elite*gold: 297
Join Date: Dec 2010
Posts: 1,129
Received Thanks: 1,687
Quote:
Originally Posted by Angel-Piece View Post
lawl wann lernt ihr das es gibt keine unterschiede zwischen den sources von menu und no menu

das menu ist dadrauf auf gebaut das wenn du eine funktion an machst das diese von int blabla = 0; auf 1 gesetzt wird auf zwei .... (bischen fail erklärt aber ich glaube das sollte man verstehen...)
Nichtmal das unbedingt. Ich hab bei mir als Parameter der Funktion, um Menueinträge hinzuzufügen, eines vom Typ "void (__stdcall *lpFunction)(void *)", das ich dann (definiert durch ein weiteres Parameter) entweder als Thread erstellen lasse oder vom Thread, in dem auch das Menu läuft, aufrufen lasse. Optional kann ich hier wie auch in CreateThread ein Parameter vom Typ "void *" an die Funktion übergeben.

Es ist einfach nicht möglich zu sagen, dass es eine "Nomenu-Source" oder eine "Menu-Source" sei, wie dieses beweist.
Raz9r is offline  
Old 12/31/2011, 16:45   #6179
 
ryski1's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 177
Received Thanks: 44
/Request UserKill Struct

Quote:
if (SelfKill == 1)
{
DWORD Player = *(DWORD*)ADR_PLAYERPOINTER;
if(Player != 0)
{
*(float*)(Player+OFS_NFD) += 50000;
Sleep(5000);
}
}
ryski1 is offline  
Old 12/31/2011, 23:19   #6180
 
UnknownData's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 129
Received Thanks: 82
Structs:
Code:
struct tPlayer
{
		char unknown0[50308]; //0x0000
	BYTE index; //0xC484  
		char unknown50309[39]; //0xC485
	BYTE status; //0xC4AC  
		char unknown50349[15651]; //0xC4AD
	WORD weapon; //0x101D0  
		char unknown66002[258]; //0x101D2
	float pos1; //0x102D4  
	float pos2; //0x102D8  
	float pos3; //0x102DC  
};//Size=0x102E0(66272)

struct tBase
{
    tPlayer* local; //0x0000  
        char unknown4[72]; //0x0004
    tPlayer** globPlayer; //0x004C  
        char unknown80[48]; //0x0050
};//Size=0x0080(128)

Usage:
Code:
tBase b_Player = *(tBase*)0x009F1B48;

if(POPK == 1)
{
DWORD dwPlayerPointer = *(DWORD*)0x009F1B48;
		if(dwPlayerPointer != 0) 
		{
                  for(int i = 0; i < 32; i++)
                  {
                   b_Player->globPlayer[i]->pos1 = 0;
                   b_Player->globPlayer[i]->pos2 = 0;
                   b_Player->globPlayer[i]->pos3 = 0;
                  }
                 }
}
Credits: UnknownData ( Structs )
xBioKingz ( Source )
UnknownData is offline  
Thanks
3 Users
Closed Thread


Similar Threads Similar Threads
WTB Flyff Source code snippets
04/01/2012 - Flyff Trading - 0 Replies
Hellow I posted this because I wanted to buy a fix scroll of unbinding.Which removes soul-link of an item.If you have its code snippets PM me.Don't sell me a code which is release because all of them are not working.I wanted to buy a fix one and a non-buggy code Payment:via Paypal
[Autoit] Youtube Code Snippets
07/29/2011 - AutoIt - 5 Replies
Tag Zusammen. Wie wohl die meisten von euch mitbekommen haben, bieten derzeit sehr viele User hier sogenannte Youtube Services an, bei denen man Abos, Likes, Dislikes etc. kaufen kann. Doch wer wirklich Erfolg haben will, braucht natürlich viele Abonnenten und Likes, was per Hand Tage dauern würde. Deshalb werden hier in letzter Zeit immer mehr Youtube Bots verkauft. Was, wie ich finde, ein ziemliche Abzocke ist, da das meist nur sehr schlechte Bots sind, die lediglich den Internet...
Some Code-Snippets[PSERVER]
07/15/2011 - Kal Hacks, Bots, Cheats & Exploits - 17 Replies
This is the code of the hack which Fremo released.. I got new methods so I dont need this anymore & maybe it'll help some people... G31 Adult Skill if(comboBox4->Text=="Panther'crit'") { KC->Chat(255," Panther Skill ON"); KC->Threads=1; KC->lasttime = timeGetTime()-15000; } else if(comboBox4->Text=="Tiger'otp'")
[Release] Code Snippets Manager
01/21/2011 - Coding Releases - 0 Replies
Code Snippets Manager http://upit.cc/images/1d47d78e.jpg Hab mich heute mal rangesetzt, und einen kleinen Manager für Code-Snippets(Code-Fetzen) gecodet, da ich alles sortiert in einer Anwendung wollte. Da es sicherlich jemand nützlich finden wird, lad ich es hier mal hoch.



All times are GMT +1. The time now is 14:07.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.