Warrock - Code Snippets

11/29/2012 13:13 _Marekiarox_#541
#Request Source
LadderQuickly , NadeSize
11/29/2012 18:36 [N]oSoul#542
Source FPS Check :

Quote:
void FPScheck(char *str, char *format)
{
FPSfCurrentTickCount = clock() * 0.001f;
FPScounter++;

if((FPSfCurrentTickCount - FPSfLastTickCount) > 1.0f) {
FPSfLastTickCount = FPSfCurrentTickCount;
sprintf(str,format,FPScounter);
FPScounter = 0;
}
}
Quote:
FPScheck(sFPS,"[%d FPS]");
Int :

Quote:
float FPSfLastTickCount = 0.0f;
float FPSfCurrentTickCount;
int FPScounter = 0;
12/01/2012 04:58 rey00120#543
anyone here can help me how can i make my bullet be in one position only?

Please help!

[Only registered and activated users can see links. Click Here To Register...]

please help i do NoRecoil and SnS here but 3 places apart

by the way i code NoMenu ..
12/01/2012 06:35 Chowniіqhtz#544
Quote:
Originally Posted by rey00120 View Post
anyone here can help me how can i make my bullet be in one position only?

Please help!

[Only registered and activated users can see links. Click Here To Register...]

please help i do NoRecoil and SnS here but 3 places apart

by the way i code NoMenu ..
Quote:
Originally Posted by Cyno™ View Post
If you are using the offset method , which is public
just checkout the offsets near to yours ( +0x4 , +0x8 | - 0x4 , -0x8 )
Question has (probably) already been answered
12/02/2012 12:10 Kosic#545
SOLVED
12/02/2012 12:49 Waller66#546
müsste eigentlich gehen , was gibt er den für einen fehler raus `?
12/02/2012 13:18 Kosic#547
SOLVED
12/02/2012 14:19 rey00120#548
Quote:
Originally Posted by Chowniіqhtz View Post
Question has (probably) already been answered
can u specify sir? im kind a noob in coding right now what shall i do to get in in 1 position?

im using this base

#include <windows.h>
#include <stdio.h>

#define (addies here)

DWORD *ingame = (DWORD*)ADR_PlayerPointer;
DWORD *outgame = (DWORD*)ADR_ServerPointer;

and so on .... then

void NoRecoil()

whats next to this?
12/03/2012 01:29 Kosic#549
This is the NoRecoil Code

PHP Code:
void NoRecoil() {
    
        
DWORD dwNR = *(DWORD*)PlayerPtr;

    if(
dwNR) {
        *(
float*)(dwNR OFS_NORECOIL1) = 0;
        *(
float*)(dwNR OFS_NORECOIL2) = 0;
        *(
float*)(dwNR OFS_NORECOIL3) = 0;
    }

12/03/2012 16:37 Supremex3#550
Load strings from textdata (lua)
Code:
struct LuaData
{
	char *mContent;
	int mSomeShitWeDontNeed; //dont know if we really need this but wayne. i dont care. works :D
};

LuaData* WINAPI WarRock::LoadLua(char* mEntry)
{
	DWORD dwFunction = adrWrLoadLua;
	LuaData* mLua = (LuaData*)malloc(sizeof(LuaData));
	__asm
	{
		push mEntry;
		push eax;
		call dwFunction;
		add esp, 10;
		cmp dword ptr ds:[eax+18], 10;
		jmp shit;
		mov eax, dword ptr ds:[eax+4];
		jmp shit2;
shit:
		add eax, 4;
shit2:
		
		mov mLua, eax;
	}
	return mLua;
}
Use it like this
Code:
LuaData* mLua1 = WarRock::LoadLua("m7");
LuaData* mLua2 = WarRock::LoadLua("m8");
MessageBoxA(NULL, mLua1->mContent, mLua2->mContent, 0);

//or easier

MessageBoxA(NULL, WarRock::LoadLua("m7")->mContent, WarRock::LoadLua("m8")->mContent, 0);
Credits to me :D
(Addy was 0x00660E80 on rexiles. just search for "m7" and look at the call)
12/03/2012 18:37 Raz9r#551
Quote:
Originally Posted by Supremex3 View Post
push mEntry;
push eax;
call dwFunction;
add esp, 10;
cmp dword ptr ds:[eax+18], 10;
jmp shit;
mov eax, dword ptr ds:[eax+4];
jmp shit2;
shit:
add eax, 4;
shit2:
mov mLua, eax;
Die blaue Zeile: Du erhöhst den Stackpointer um 10, obwohl du nur Argumente mit einer Gesamtgröße von 8 Bytes auf den Stack gepusht hast. Warum?

Die roten Zeilen sind unnötig. Durch den unbedingten Sprung zur Marke "shit" machst du nicht nur beide Marken unnötig, sondern auch den Code zwischen der Marke und dem Startpunkt des Sprungs.
12/04/2012 15:55 Supremex3#552
ich habs nach 3mal testen nicht hinbekommen. da hab ich aus ner code stelle einfach die kacke übernommen xD
12/07/2012 04:17 boknoy24#553
anyone have source like this? OPK that you can walk only the other players are in the position.

[Only registered and activated users can see links. Click Here To Register...]
12/07/2012 17:11 cheatslaw#554
Hello, i want to get rid of this base because i prefer to use my old base.
I coded this one a few days ago, but yeah, whatever :p
I added Hans211 his detour because i don't want to share my private hooking method, etc.. credits to him for that.


Special thanks to
  • PHC / UnknownPK -> text decryption method
  • Hans211 - Detour

Printscreen
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

Information
- I know it could be made better, but yea, it is the way it is.
- If you are going to cry about my method of coding, feel free to leave ;)
- What i did not code: Detour -> hans211, FindDevice -> ??, text cryption -> PHC / Unknown PK.

Known Bugs
  • Detected detour -> replace it with your own
  • If you open a tab, and then open another tab, it will open both tabs, it needs a fix (not much work)
  • May double click somethimes, needs a small fix :(

Virusscans
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

Download: [Only registered and activated users can see links. Click Here To Register...]

Feel free to give some feedback :)[Only registered and activated users can see links. Click Here To Register...]
12/08/2012 00:03 xXrussXx#555
Workt nich win 8 64 ... sowie alle draw box funktionen ...