|
You last visited: Today at 15:09
Advertisement
Warrock - Code Snippets
Discussion on Warrock - Code Snippets within the WarRock forum part of the Shooter category.
08/22/2012, 13:31
|
#211
|
elite*gold: 0
Join Date: Sep 2011
Posts: 112
Received Thanks: 165
|
@sry..
|
|
|
08/22/2012, 17:40
|
#212
|
elite*gold: LOCKED
Join Date: Dec 2009
Posts: 4,650
Received Thanks: 5,731
|
Quote:
Originally Posted by jeffrey1994
You are right, now its working
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
|
#213
|
elite*gold: 9
Join Date: Oct 2010
Posts: 395
Received Thanks: 812
|
Quote:
Originally Posted by Angel-Piece
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
|
#214
|
elite*gold: 0
Join Date: Nov 2007
Posts: 24
Received Thanks: 1
|
Quote:
Originally Posted by Willi35
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
|
#215
|
elite*gold: 0
Join Date: Jul 2012
Posts: 1,426
Received Thanks: 1,370
|
Quote:
Originally Posted by jeffrey1994
And how do I find the vehiclebase?
|
learn it when you can code cPlayerinfo than code it self man LOL
|
|
|
08/24/2012, 06:32
|
#216
|
elite*gold: 0
Join Date: Mar 2012
Posts: 288
Received Thanks: 296
|
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
|
#217
|
elite*gold: 0
Join Date: Apr 2012
Posts: 1,510
Received Thanks: 3,014
|
Quote:
Originally Posted by jeffrey1994
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
|
#218
|
elite*gold: 0
Join Date: Nov 2007
Posts: 119
Received Thanks: 45
|
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  )
|
|
|
08/24/2012, 13:48
|
#219
|
elite*gold: 0
Join Date: Jul 2012
Posts: 19
Received Thanks: 25
|
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
|
#220
|
elite*gold: 297
Join Date: Dec 2010
Posts: 1,129
Received Thanks: 1,687
|
Quote:
Originally Posted by honk1990
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
|
#221
|
elite*gold: 0
Join Date: Jul 2012
Posts: 19
Received Thanks: 25
|
ja ich weiß, habe das beispiel ziemlich schnell geschrieben, ist mir nachher auch aufgefallen, egaaaaaaaaaaal lalalalala
hi
|
|
|
08/24/2012, 21:11
|
#222
|
elite*gold: 0
Join Date: Dec 2009
Posts: 51
Received Thanks: 8
|
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
|
#223
|
elite*gold: 0
Join Date: Jul 2011
Posts: 53
Received Thanks: 11
|
One question bodhi, is it YOUR bypass or did you find it?
|
|
|
08/24/2012, 22:17
|
#224
|
elite*gold: 0
Join Date: Dec 2009
Posts: 51
Received Thanks: 8
|
Quote:
Originally Posted by scraprecon
One question bodhi, is it YOUR bypass or did you find it?
|
Mine --'
|
|
|
08/24/2012, 22:26
|
#225
|
elite*gold: 0
Join Date: Jul 2011
Posts: 53
Received Thanks: 11
|
@bodhi how many addys you used?
|
|
|
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 15:10.
|
|