You last visited: Today at 11:17
Advertisement
Warrock - Code Snippets
Discussion on Warrock - Code Snippets within the WarRock forum part of the Shooter category.
11/29/2012, 13:13
#541
elite*gold: 0
Join Date: Nov 2012
Posts: 62
Received Thanks: 25
#Request Source
LadderQuickly , NadeSize
11/29/2012, 18:36
#542
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;
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 ..
12/01/2012, 06:35
#544
elite*gold: 351
Join Date: Jul 2012
Posts: 427
Received Thanks: 430
Quote:
Originally Posted by
rey00120
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™
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
#545
elite*gold: 0
Join Date: Jun 2011
Posts: 265
Received Thanks: 50
SOLVED
12/02/2012, 12:49
#546
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 `?
12/02/2012, 13:18
#547
elite*gold: 0
Join Date: Jun 2011
Posts: 265
Received Thanks: 50
SOLVED
12/02/2012, 14:19
#548
elite*gold: 0
Join Date: Jun 2012
Posts: 9
Received Thanks: 0
Quote:
Originally Posted by
Chowniіqhtz
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
#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 ;
}
}
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)
12/03/2012, 18:37
#551
elite*gold: 297
Join Date: Dec 2010
Posts: 1,129
Received Thanks: 1,687
Quote:
Originally Posted by
Supremex3
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.
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
12/07/2012, 04:17
#553
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.
12/07/2012, 17:11
#554
elite*gold: 0
Join Date: Mar 2012
Posts: 194
Received Thanks: 311
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
AeroSoft-Systems Tab Base.rar
(3.73 MB, 105 views)
12/08/2012, 00:03
#555
elite*gold: 0
Join Date: May 2012
Posts: 643
Received Thanks: 846
Workt nich win 8 64 ... sowie alle draw box funktionen ...
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 .