WarRock EU - Code Snippets

07/13/2011 18:58 Angel-Piece#4426
Quote:
Originally Posted by kauknochen View Post
Hey Leutz, kann mir einer vlt erklären wie ich pbase bzw player, pPlayer ,local definiere?
Code:
if(!pBase->player || !pBase->local) break;
CPlayer* pPlayer = pBase->player[i];
CPlayerInfo *pInfo = GetPlayerInfo(i);
if(pInfo && pPlayer)
Credits : .Crasy
CBase* pBase = (CBase*)Playerpointer;


bei local und so player scheiß hol dir structs
07/13/2011 19:03 .BuRn3R'#4427
NoMenu Code ~by BuRn3R~


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

#define ADR_PLAYERPOINTER 0x00
#define ADR_SERVERPOINTER 0x00
#define OFS_PREMIUM1 0x00
#define OFS_PREMIUM2 0x00
#define OFS_X 0x00
#define OFS_Y 0x00
#define OFS_Z 0x00
#define ADR_GM_Warning 0x00
#define ADR_NFD 0x00
#define ADR_GLASSWALLS 0x00
#define ADR_EXTRA_AMMO_1 0x00
#define ADR_EXTRA_AMMO_2 0x00
#define OFS_BANDAGE 0x00
#define OFS_NORECOIL1 0x00
#define OFS_NORECOIL2 0x00
#define OFS_NORECOIL3 0x00
#define OFS_STAMINA1 0x00
#define OFS_STAMINA2 0x00
#define OFS_STAMINA3 0x00
#define OFS_STAMINA4 0x00
#define OFS_STAMINA5 0x00

float posiX;
float posiY;
float posiZ;

void jump ()
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = 2500;
}
}
}
void Stamina ()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
*(float*)(dwPlayerPtr+OFS_STAMINA1) = 1000;
*(float*)(dwPlayerPtr+OFS_STAMINA2) = 1000;
*(float*)(dwPlayerPtr+OFS_STAMINA3) = 0;
*(float*)(dwPlayerPtr+OFS_STAMINA4) = 0;
*(float*)(dwPlayerPtr+OFS_STAMINA5) = 0;
}
void NoRecoil ()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;
}
}
void platinum ()
{
DWORD dwSrvrPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwSrvrPtr != 0)
{
*(long*)(dwSrvrPtr+OFS_PREMIUM1) = 4, 10;
{
*(float*)(dwSrvrPtr+OFS_PREMIUM2) = 1, 1;
}}}
void gmwarning()
{
char *gmname=(char*)(ADR_GM_Warning);
if (strlen(gmname)>2)
{
ExitProcess(0);
}
}
void Bandage ()
{
*(int*)OFS_BANDAGE = 1;
}
void NFD ()
{
*(int*)ADR_NFD = -25000;
}
void Glasswalls ()
{
*(int*)ADR_GLASSWALLS = 4;
}
void ExtraAmmo ()
{
*(int*)(ADR_EXTRA_AMMO_1) = 1;
}

void ExtraAmmo2 ()
{
*(int*)(ADR_EXTRA_AMMO_2) = 1;
}


void Hacks()
{
for(;; )
{
Stamina();
jump();
NoRecoil();
platinum();
gmwarning();
Bandage();
NFD();
Glasswalls();
ExtraAmmo();
ExtraAmmo2();
}
}
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:

CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Hacks , 0, 0, 0);
break;
case 2:
break;
}
return TRUE;
}

Suche Weapon Binder Source Code.
07/13/2011 19:26 R3d~F!st#4428
Stamina Source falsch
Stamina1&2 Value : 1000
die anderen 0
07/13/2011 20:18 ~kau~#4429
Hat jemand eine ordentliche World2Screen Func?
Und ist bereit sie zu posten? :D
07/13/2011 20:42 Angel-Piece#4430
Quote:
Originally Posted by R3d~F!st View Post
Stamina Source falsch
Stamina1&2 Value : 1000
die anderen 0
who cares du kannst auch alles auf 1000 stellen alles auf 0 dann macht es zwar was anderes aber who cares (wenn ers so macht und es für ihn auch worked dann lass es)?

du kannst nicht jedem vorschreiben wie es gemacht wird die stamina bar geht von 0-1000 also kannst du auch ein value zwischen 0 und 1000 setzen lol



Quote:
Originally Posted by kauknochen View Post
Hat jemand eine ordentliche World2Screen Func?
Und ist bereit sie zu posten? :D
nimm die die public ist die benutzen hier glaube ich viele und worked auch such einfach mal danach in anderen foren oder so
07/14/2011 13:42 IceVisionzX#4431
Weiß einer warum alle meine Server Hacks mit Offsets Crashen?
07/14/2011 14:27 Neqqa™#4432
Quote:
Weiß einer warum alle meine Server Hacks mit Offsets Crashen?
is bei mir auch so -.-
07/14/2011 15:41 .Eragon#4433
ehh ich weiß ja nich ob das normal ist aber..
bei meiner stamina source da verbraucht der die normalen sp wenn er springt oder rollt...
also müsste man nach dem 4. mal rollen kurz stehen bleiben..aber mhh ist das bei euch auch so ?
07/14/2011 16:20 IceVisionzX#4434
Hat einer eine idee warum Premium Crasht?
Genauso wie SuperMaster ect ...abnormal gameplay..
07/14/2011 23:39 D3vaste#4435
Also mein prem läuft wunderbar ^^ hatte erst nen problem damit das es gecrasht is wenn ich den server wechseln wollte aber jetzt funkts super
07/15/2011 12:45 XhakerX#4436
Hello.
I make memore UnlAmmo but it crash game.
Please send me don't crash source on Unlimit Ammo .
07/15/2011 13:09 FuckStyle#4437
har jemand spectate mode ?
thx schon im vorraus :)
07/15/2011 15:03 IceVisionzX#4438
Xhaker use a mem patch class for restore unlammo off...

desert
*(int*)(dwServer+OFS_SPECTATE) = 5;
07/15/2011 15:15 XhakerX#4439
I use this code:
tMemPatch <float> UnlAmmoPatch( 0xC04DE0 /* address */, 0 /* value */ );
if(UnlAmmo && GetAsyncKeyState(VK_LBUTTON))
{
UnlAmmoPatch.Patch();
}else{
UnlAmmoPatch.Restore();
}

+
code on mempatch = Crash warrock ;/

value is good?
07/15/2011 20:26 FuckStyle#4440
wie war der nomenü superjump nochmal hab nur den alten