Warrock - Code Snippets

08/22/2012 13:31 AdrenalinaPL#211
@sry..
08/22/2012 17:40 Angel-Piece#212
Quote:
Originally Posted by jeffrey1994 View Post
You are right, now its working :D

I need to make a Vehicle Finder like the User finder using the CPlayerInfo struct, is it also possible for vehicles? Or is there also a way to determine what is the current map of the user playing?
lol look in the wr.exe if you know what you want you will find it there o.0 and yes it is posible

use e.g. reclass and you can find the vehicle structs

und olydbg or ida pro and you can find a way to use the structs
08/22/2012 17:58 Willi35#213
Quote:
Originally Posted by Angel-Piece View Post
lol look in the wr.exe if you know what you want you will find it there o.0 and yes it is posible

use e.g. reclass and you can find the vehicle structs

und olydbg or ida pro and you can find a way to use the structs
If you have the Vehicle Base, then you have not any Problems. I founded "Vehicle Teleport", "Vehicle Superjump", "Go to Vehicle" and "Remote Vehicle" with the "Vehicle "Struct"".
08/22/2012 19:25 jeffrey1994#214
Quote:
Originally Posted by Willi35 View Post
If you have the Vehicle Base, then you have not any Problems. I founded "Vehicle Teleport", "Vehicle Superjump", "Go to Vehicle" and "Remote Vehicle" with the "Vehicle "Struct"".
And how do I find the vehiclebase?
08/23/2012 18:29 ~ExoduS~*#215
Quote:
Originally Posted by jeffrey1994 View Post
And how do I find the vehiclebase?
learn it when you can code cPlayerinfo than code it self man LOL :facepalm:
08/24/2012 06:32 Pu3Mi2o#216
Ich hab ein Problem mit meinem Distanc Esp.
Irgent wie wen ich in einer ecke der map (BlindBullet) stehe zeigt er die die distanc der zombis 500m an obwoll er neben mir steht , wen ich auf die andre seite der map gehe zeigt der 600m an obwoll er auch neben mir steht. Was ist genau Falsch jemand eine Ide ?

Source :
Code:
if( cEsp.CH_DistanceEsp )
		{
	
			CPlayer *_Player = p_Player->pGlobal[MaxPlayer];
			char Pudistance[60];
		sprintf(Pudistance,"%.2f m",GetDistance(p_Player->pLocal, _Player)/10);
		 pMenu->DrawTextR(EspView.x,(EspView.y-100),YELLOW,Pudistance,pFont);
               
       EspView.y += 12;
		}
      if ( cEsp.CH_EspHeal
08/24/2012 06:46 Phantom.#217
Quote:
Originally Posted by jeffrey1994 View Post
And how do I find the vehiclebase?
Search for the string "MOTORCYCLE" then u will find it. (Addy is a few lines over the string)
08/24/2012 09:50 boknoy24#218
hey can i ask (No trash talk please). how to updated the Struct for OPK? and how to make one opk struct source.(please dont answer learn c++. answer it ty :D)
08/24/2012 13:48 honk1990#219
GMWarning Versuch !?
Versucht euer Glück ;)
Mfg CyberRazzer
Code:
struct CUserList
{
    CHAR UserName[64];
}
CUserList GetUserList(INT Index)
{
    return ( 0xA2A7AC + ( Index *  0x40 ) );
}
VOID ReloadUserList()
{
    DWORD ADR_ReloadUserList = 0x7B2980;
    __asm
    {
         /*
           [ Der Return Wert der Funktion ist "RETN 0C" = 0xC / 0x4 = 3 Argumente ]
         PUSH ...
         PUSH ...
         PUSH ...       
         */
         CALL [ ADR_ReloadUserList ];
    }
}
for ( INT iUser = 0; iUser < 32; iUser ++ )
{
    CUserList* pUserList = GetUserList(iUser);
    if ( pUserList->UserName == "Admin 1" )
    {
         MessageBox(GetActiveWindow(),"HackCoder >> Admin 1 Is Online","Warning",MB_OK);
    }
    if ( pUserList->UserName == "Admin 2" )
    {
         MessageBox(GetActiveWindow(),"HackCoder >> Admin 2 Is Online","Warning",MB_OK);
    }
    if ( pUserList->UserName == "Admin 3" )
    {
         MessageBox(GetActiveWindow(),"HackCoder >> Admin 3 Is Online","Warning",MB_OK);
    }
}
ReloadUserList();
So jetzt sind aber auf den Server nicht nur 32 Spieler Online, jetzt müsste man nach jeder Schleife, die Liste erneuern, damit man die anderen Spieler auch auslesen kann .. Habe mich damit jetzt nicht viel beschäftig, wäre euere Aufgabe.
Wenn ich nichts falsch gemacht habe, wird mit dieser Funktion, die Liste erneuert.
Adresse: 007B2980

Hier noch ein Beispiel, wo WarRock die Funktion aufruft:
Code:
CPU Disasm
Address   Hex dump          Command                                  Comments
004CE323  |.  E8 28462E00   CALL 007B2950                            ; \WarRock_23_08_2012.007B2950
004CE328  |.  8B8B 30510000 MOV ECX,DWORD PTR DS:[EBX+5130]
004CE32E  |.  68 00020000   PUSH 200                                 ; /Arg3 = 200
004CE333  |.  68 70BF8F00   PUSH 008FBF70                            ; |Arg2 = ASCII "NULL"
004CE338  |.  50            PUSH EAX                                 ; |Arg1
004CE339  |.  03CF          ADD ECX,EDI                              ; |
004CE33B  |.  E8 40462E00   CALL 007B2980                            ; \WarRock_23_08_2012.007B2980
glaube das würde so gehen:
Code:
    DWORD ADR_ReloadUserList_1 = 0x7B2980;
    DWORD ADR_ReloadUserList_2 = 0x7B2950;
    __asm
    {
         /*
         Hier müssen nochmal 2 Argumente
         */
         CALL ADR_ReloadUserList_2//Das Return Wert der Funktion wird in EAX gespeichert / 
         PUSH [ 0x200 ];
         PUSH [ 0x8FBF70 ];
         PUSH [ EAX ];
         CALL [ ADR_ReloadUserList_1 ];
    }
08/24/2012 15:24 Raz9r#220
Quote:
Originally Posted by honk1990 View Post
if ( pUserList->UserName == "Admin 1" )
Alleine schon wegen dieser Zeile kann das ganze nicht funktionieren. Sowohl "Admin 1" als auch puserList->UserName werden hier als Zeiger auf das erste Element eines nullterminierten Arrays gehandelt und auch als solche verglichen. Die Zeiger aber können nicht gleich sein.

Richtig wäre hier ein Vergleich der beiden Arrays - Byte für Byte - etwa mit strcmp.
08/24/2012 16:01 honk1990#221
ja ich weiß, habe das beispiel ziemlich schnell geschrieben, ist mir nachher auch aufgefallen, egaaaaaaaaaaal lalalalala

hi
08/24/2012 21:11 bodhi12#222
Hi All,
I have a little question.

For like 2 weeks now, people on 64 Bits are crashing. It's not my point to leech stuff here but i realy need advice. I heard Nexon patched stuff so i used UPK's Source , know as [FailUpate] but if i put it on NoRecoil... then they crash at spawn screen.
They only dont crash when PlayerHacks are removed and ServerHacks are only ACTIVATED.

I hope to have some help. [ My bypass is working perfect anyway. ]
08/24/2012 21:45 scraprecon#223
One question bodhi, is it YOUR bypass or did you find it?
08/24/2012 22:17 bodhi12#224
Quote:
Originally Posted by scraprecon View Post
One question bodhi, is it YOUR bypass or did you find it?
Mine --'
08/24/2012 22:26 scraprecon#225
@bodhi how many addys you used?