Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > WarRock
You last visited: Today at 11:17

  • 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 11/29/2012, 13:13   #541
 
elite*gold: 0
Join Date: Nov 2012
Posts: 62
Received Thanks: 25
#Request Source
LadderQuickly , NadeSize
_Marekiarox_ is offline  
Old 11/29/2012, 18:36   #542
 
[N]oSoul's Avatar
 
elite*gold: 0
Join Date: Nov 2012
Posts: 109
Received Thanks: 142
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;
[N]oSoul is offline  
Old 12/01/2012, 04:58   #543
 
elite*gold: 0
Join Date: Jun 2012
Posts: 9
Received Thanks: 0
anyone here can help me how can i make my bullet be in one position only?

Please help!



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

by the way i code NoMenu ..
rey00120 is offline  
Old 12/01/2012, 06:35   #544
 
elite*gold: 351
Join Date: Jul 2012
Posts: 427
Received Thanks: 430
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!



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
Chowniіqhtz is offline  
Thanks
1 User
Old 12/02/2012, 12:10   #545
 
elite*gold: 0
Join Date: Jun 2011
Posts: 265
Received Thanks: 50
SOLVED
Kosic is offline  
Old 12/02/2012, 12:49   #546
 
Waller66's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,548
Received Thanks: 333
müsste eigentlich gehen , was gibt er den für einen fehler raus `?
Waller66 is offline  
Old 12/02/2012, 13:18   #547
 
elite*gold: 0
Join Date: Jun 2011
Posts: 265
Received Thanks: 50
SOLVED
Kosic is offline  
Old 12/02/2012, 14:19   #548
 
elite*gold: 0
Join Date: Jun 2012
Posts: 9
Received Thanks: 0
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?
rey00120 is offline  
Old 12/03/2012, 01:29   #549
 
elite*gold: 0
Join Date: Jun 2011
Posts: 265
Received Thanks: 50
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;
    }

Kosic is offline  
Old 12/03/2012, 16:37   #550
 
elite*gold: 130
Join Date: Apr 2012
Posts: 221
Received Thanks: 153
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 ****;
		mov eax, dword ptr ds:[eax+4];
		jmp shit2;
****:
		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
(Addy was 0x00660E80 on rexiles. just search for "m7" and look at the call)
Supremex3 is offline  
Old 12/03/2012, 18:37   #551
 
Raz9r's Avatar
 
elite*gold: 297
Join Date: Dec 2010
Posts: 1,129
Received Thanks: 1,687
Quote:
Originally Posted by Supremex3 View Post
push mEntry;
push eax;
call dwFunction;
add esp, 10;
cmp dword ptr ds:[eax+18], 10;
jmp ****;
mov eax, dword ptr ds:[eax+4];
jmp shit2;
****:

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 "****" machst du nicht nur beide Marken unnötig, sondern auch den Code zwischen der Marke und dem Startpunkt des Sprungs.
Raz9r is offline  
Thanks
3 Users
Old 12/04/2012, 15:55   #552
 
elite*gold: 130
Join Date: Apr 2012
Posts: 221
Received Thanks: 153
ich habs nach 3mal testen nicht hinbekommen. da hab ich aus ner code stelle einfach die kacke übernommen xD
Supremex3 is offline  
Old 12/07/2012, 04:17   #553
 
boknoy24's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 119
Received Thanks: 45
anyone have source like this? OPK that you can walk only the other players are in the position.

boknoy24 is offline  
Old 12/07/2012, 17:11   #554
 
elite*gold: 0
Join Date: Mar 2012
Posts: 194
Received Thanks: 311
Post

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
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




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



Download:

Feel free to give some feedback
Attached Files
File Type: rar AeroSoft-Systems Tab Base.rar (3.73 MB, 105 views)
cheatslaw is offline  
Thanks
11 Users
Old 12/08/2012, 00:03   #555
 
xXrussXx's Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 643
Received Thanks: 846
Workt nich win 8 64 ... sowie alle draw box funktionen ...
xXrussXx is offline  
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 11:18.


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.