|
You last visited: Today at 04:09
Advertisement
WarRock EU - Code Snippets
Discussion on WarRock EU - Code Snippets within the WarRock forum part of the Shooter category.
|
View Poll Results: Wie findet ihr diesen Thread
|
|
Klasse!
|
  
|
78 |
60.94% |
Geht so
|
  
|
17 |
13.28% |
|
Sinnlos, braucht keiner
|
  
|
33 |
25.78% |
09/11/2011, 10:48
|
#5161
|
elite*gold: 297
Join Date: Dec 2010
Posts: 1,129
Received Thanks: 1,687
|
Quote:
Originally Posted by SK1LL0R..
nicht das ich wüsste xD
€: Laggfreies Plantany Thread :>)
Code:
void Thread()
{
for(;
{
DWORD Playerx = *(DWORD*)ADR_PLAYERPOINTER;
if(Playerx== 0) Sleep(20);
if(Plantanywhere==0)Sleep(20);
if (Playerx != 0)
{
if(Plantanywhere == 1)
{
*(BYTE*) PLANTANYWHERE_MEM = 0x1;
}
}
}
}
|
bullshit ;>
Code:
//global
#define ADR_PLAYERPOINTER 0x00 /*address here*/
#define ADR_PLANTANYWHERE 0x00 /*address here*/
DWORD *g_pPlayer = (DWORD *)ADR_PLAYERPOINTER;
BYTE *g_pPlantAnywhere = (BYTE *)ADR_PLANTANYWHERE;
//thread
LPTHREAD_START_ROUTINE lptsrThread(__in void *lpvThreadHandle)
{
while(1)
{
*g_pPlayer ? *g_pPlantAnywhere = 1 : Sleep(100);
Sleep(20);
}
}
//creating the thread in dllmain
HANDLE hThread = CreateThread(0, 0, lptsrThread, 0, 0, 0);
|
|
|
09/11/2011, 10:58
|
#5162
|
elite*gold: 0
Join Date: Sep 2011
Posts: 326
Received Thanks: 760
|
Quote:
Originally Posted by __underScore
bullshit ;>
Code:
//global
#define ADR_PLAYERPOINTER 0x00 /*address here*/
#define ADR_PLANTANYWHERE 0x00 /*address here*/
DWORD *g_pPlayer = (DWORD *)ADR_PLAYERPOINTER;
BYTE *g_pPlantAnywhere = (BYTE *)ADR_PLANTANYWHERE;
//thread
LPTHREAD_START_ROUTINE lptsrThread(__in void *lpvThreadHandle)
{
while(1)
{
*g_pPlayer ? *g_pPlantAnywhere = 1 : Sleep(100);
Sleep(20);
}
}
//creating the thread in dllmain
HANDLE hThread = CreateThread(0, 0, lptsrThread, 0, 0, 0);
|
Geht auch
if(WTH==0)
{
*(float*)0x817A3C = 0.1;
}
if(WTH==1)
{
*(float*)0x817A3C = 10;
}
WelcomeToHell
|
|
|
09/11/2011, 11:56
|
#5163
|
elite*gold: 297
Join Date: Dec 2010
Posts: 1,129
Received Thanks: 1,687
|
Quote:
Originally Posted by SK1LL0R..
Geht auch 
|
mein "bullshit ;>" hat sich eher darauf bezogen, dass der von dir "lag-frei" genannte thread absolut unoptimiert war. es ist immerhin unnötig, register zu verwenden, die nicht verwendet werden müssten - gerade, wenn man auf ressourcen achten will.
Code:
loc_start:
mov eax, dword ptr ds:[ADR_PLAYERPOINTER]
test eax, eax
jz loc_notingame
mov byte ptr ds:[ADR_PLANTANYWHERE], 1
push 20
call Sleep
jmp loc_start
loc_notingame:
push 100
call Sleep
jmp loc_start
|
|
|
09/12/2011, 18:13
|
#5164
|
elite*gold: 0
Join Date: May 2011
Posts: 171
Received Thanks: 81
|
Ich hab mich ein wenig an __underScore orientiert
und etwas ausprobiert hoffe es ist richtig
ich lerne gerade ASM
Code:
void ASMThread( void )
{
__asm
{
loc_playerthread:
mov eax, dword ptr ds:[ADR_PLAYERPOINTER]
test eax, eax
jz loc_callsleep
mov float ptr ds:[ADR_FASTAMMO],99
mov float ptr ds:[ADR_FASTHEALTH],99
mov float ptr ds:[ADR_FASTREPAIR],99
mov float ptr ds:[ADR_FASTFLAG],99
jz loc_callsleep2
loc_serverthread:
mov esi, dword ptr ds:[ADR_SERVERPOINTER]
test esi,esi
jz loc_callsleep2
mov int ptr ds:[esi + OFS_SLOT5], 1
push 10
call 10
jz loc_jumptoprone
loc_prone:
test dword ptr ds:[OFS_GAMEMODE], 1
push 30
call 30
mov int ptr ds:[ADR_MEMCQCPRONE], 1; not sure which operand CQCPRONE is
jz loc_callsleep
loc_callsleep:
push 30
call 30
jmp loc_playerthread
loc_callsleep2:
push 50
call 50
jmp loc_serverthread
loc_jumptoprone:
push 25
call 25
jmp loc_prone
}
}
|
|
|
09/12/2011, 18:30
|
#5165
|
elite*gold: 297
Join Date: Dec 2010
Posts: 1,129
Received Thanks: 1,687
|
Ich kommentier mal einiges unlogisches in rot.
Quote:
Originally Posted by R3d~F!st
Code:
void ASMThread( void )
{
__asm
{
loc_playerthread:
mov eax, dword ptr ds:[ADR_PLAYERPOINTER]
test eax, eax
jz loc_callsleep
mov float ptr ds:[ADR_FASTAMMO],99
mov float ptr ds:[ADR_FASTHEALTH],99
mov float ptr ds:[ADR_FASTREPAIR],99
mov float ptr ds:[ADR_FASTFLAG],99
jz loc_callsleep2 [color=red]JUMP ZERO ohne bedingung?[/color]
loc_serverthread:
mov esi, dword ptr ds:[ADR_SERVERPOINTER][color=red]eher ecx / edx nutzen.[/color]
test esi,esi
jz loc_callsleep2
mov int ptr ds:[esi + OFS_SLOT5], 1[color=red]int ptr? byte = align 1, word = align 2, dword align 4...[/color]
push 10
call 10[color=red]du legst den wert 10 auf den stack, callst dann etwas fehlerhaftes an [0Ah] (error) und weil das kein stdcall ist, da fehlerhaft, fehlt pop um es vom stack runterzunehmen[/color]
[color=red]... usw... kein bock mehr alles zu kommentieren, 95% bullshit.[/color]
jz loc_jumptoprone
loc_prone:
test dword ptr ds:[OFS_GAMEMODE], 1
push 30
call 30
mov int ptr ds:[ADR_MEMCQCPRONE], 1; not sure which operand CQCPRONE is
jz loc_callsleep
loc_callsleep:
push 30
call 30
jmp loc_playerthread
loc_callsleep2:
push 50
call 50
jmp loc_serverthread
loc_jumptoprone:
push 25
call 25
jmp loc_prone
}
}
|
vielleicht solltest du erstmal lernen, was die einzelnen befehle bewirken. asm ist keine sprache, die man spielend erlernen kann, wie etwa c oder c++.
int zum beispiel steht nicht für integer, sondern für interrupt. statt "int ptr" solltest du eher "dword ptr" verwenden. ein fehler, den du immer wieder machst. auch versuchst du, funktionen via adressen zu callen, die kleiner sind als möglich für funktionen. dementsprechend kannst du dir auch nicht sicher sein, dass diese funktionen die standard calling convention haben, bei der die funktion selbst den stack aufräumt.
du solltest dir auch überlegen, welche register schon verwendet werden, immerhin castest du den thread zu DWORD __stdcall (__in LPVOID). einhergehend mit der standard calling convention sind einige register benutzt.
|
|
|
09/12/2011, 19:26
|
#5166
|
elite*gold: 0
Join Date: Mar 2010
Posts: 48
Received Thanks: 5
|
Suche nach Fast Ammo fast repair fast health source code aber bitte einen richtigen funzenden  Chams A chams B source.
|
|
|
09/13/2011, 09:07
|
#5167
|
elite*gold: 2
Join Date: Jul 2009
Posts: 1,447
Received Thanks: 923
|
Quote:
Originally Posted by __underScore
bullshit ;>
Code:
//global
#define ADR_PLAYERPOINTER 0x00 /*address here*/
#define ADR_PLANTANYWHERE 0x00 /*address here*/
DWORD *g_pPlayer = (DWORD *)ADR_PLAYERPOINTER;
BYTE *g_pPlantAnywhere = (BYTE *)ADR_PLANTANYWHERE;
//thread
LPTHREAD_START_ROUTINE lptsrThread(__in void *lpvThreadHandle)
{
while(1)
{
*g_pPlayer ? *g_pPlantAnywhere = 1 : Sleep(100);
Sleep(20);
}
}
//creating the thread in dllmain
HANDLE hThread = CreateThread(0, 0, lptsrThread, 0, 0, 0);
|
Was denn das für ein Dreck?..
Eine eine geöffnete While die immer und immer wieder läuft sprich eine nicht endende schleife, die jedes mal dirn Sleep von 100 Ms oder 20 Ms gibt beides ****.
Und das soll Lagg frei sein? rofl wenn du praktisch 1000000x 100 MS Sleep hast, da net alle die **** Funktion nutzen.
Wenn ich das so mach, wird das dadurch ausgelöst:
Sobald man Player ist sprich InGame wird Plantany = 1 wenn nicht bekom ich x mal 100 MS Sleep sprich wenn ich ein Game suche, dazu kommt, das immer 20 MS Sleep bekome, n1 code muss ich dir sagen ..
|
|
|
09/13/2011, 14:41
|
#5168
|
elite*gold: 0
Join Date: Sep 2011
Posts: 94
Received Thanks: 60
|
Code:
switch (MC_QuickPlant){
case 0: MemEditing((void*)(ASM_QUICKPLANT),(PBYTE)"\x7D\x16",2); break;
case 1: MemEditing((void*)(ASM_QUICKPLANT),(PBYTE)"\xEB\x34",2); break;}
// Off/On Bytes Searched by Me (Source by me)
Code:
#define ASM_QUICKPLANT 0x004D30A7
// ADDY by Alexkyse
Ich weiß nicht ob die Addy funktioniert, ist nicht von mir.
|
|
|
09/13/2011, 18:06
|
#5169
|
elite*gold: 297
Join Date: Dec 2010
Posts: 1,129
Received Thanks: 1,687
|
Quote:
Originally Posted by .Crasy
Was denn das für ein Dreck?..
Eine eine geöffnete While die immer und immer wieder läuft sprich eine nicht endende schleife, die jedes mal dirn Sleep von 100 Ms oder 20 Ms gibt beides ****.
Und das soll Lagg frei sein? rofl wenn du praktisch 1000000x 100 MS Sleep hast, da net alle die **** Funktion nutzen.
Wenn ich das so mach, wird das dadurch ausgelöst:
Sobald man Player ist sprich InGame wird Plantany = 1 wenn nicht bekom ich x mal 100 MS Sleep sprich wenn ich ein Game suche, dazu kommt, das immer 20 MS Sleep bekome, n1 code muss ich dir sagen ..
|
es macht im asm code zeilentechnisch keinen unterschied, ob du
*g_pPlayer ? /* do something */ : Sleep(20);
Sleep(100);
oder
if(*g_pPlayer)
/* do something */
Sleep(*g_pPlayer ? 20 : 120);
verwendest.
auch die else abfrage würde nur einen weiteres label verwenden und ist damit also noch aufwendiger.
|
|
|
09/13/2011, 19:11
|
#5170
|
elite*gold: 0
Join Date: Aug 2011
Posts: 7
Received Thanks: 1
|
Do an need a bypass for chams ?
I have add chams in my menu, and it isn't working
|
|
|
09/13/2011, 19:14
|
#5171
|
elite*gold: 1
Join Date: May 2011
Posts: 1,490
Received Thanks: 196
|
lol ein bypass is wieder public mal gucken wann er gepostet wird :P
|
|
|
09/14/2011, 06:51
|
#5172
|
elite*gold: 0
Join Date: Aug 2011
Posts: 7
Received Thanks: 1
|
Is that a yes or no one?
Can anyone help me?
|
|
|
09/14/2011, 07:12
|
#5173
|
elite*gold: 1
Join Date: May 2011
Posts: 1,490
Received Thanks: 196
|
^no u dont need a bypass for chams
|
|
|
09/14/2011, 07:21
|
#5174
|
elite*gold: 1
Join Date: Jul 2011
Posts: 472
Received Thanks: 1,444
|
^doch, sonst crasht es
|
|
|
09/14/2011, 07:39
|
#5175
|
elite*gold: 0
Join Date: Aug 2011
Posts: 7
Received Thanks: 1
|
Can you share a chams tut ? or help my with teamviewer ?
I understand German, but speaking is difficult.
Ich komme aus die Niederlanden
|
|
|
 |
|
Similar Threads
|
WTB Flyff Source code snippets
04/01/2012 - Flyff Trading - 0 Replies
Hellow I posted this because I wanted to buy a fix scroll of unbinding.Which removes soul-link of an item.If you have its code snippets PM me.Don't sell me a code which is release because all of them are not working.I wanted to buy a fix one and a non-buggy code
Payment:via Paypal
|
[Autoit] Youtube Code Snippets
07/29/2011 - AutoIt - 5 Replies
Tag Zusammen.
Wie wohl die meisten von euch mitbekommen haben, bieten derzeit sehr viele User hier sogenannte Youtube Services an, bei denen man Abos, Likes, Dislikes etc. kaufen kann.
Doch wer wirklich Erfolg haben will, braucht natürlich viele Abonnenten und Likes, was per Hand Tage dauern würde.
Deshalb werden hier in letzter Zeit immer mehr Youtube Bots verkauft.
Was, wie ich finde, ein ziemliche Abzocke ist, da das meist nur sehr schlechte Bots sind, die lediglich den Internet...
|
Some Code-Snippets[PSERVER]
07/15/2011 - Kal Hacks, Bots, Cheats & Exploits - 17 Replies
This is the code of the hack which Fremo released..
I got new methods so I dont need this anymore & maybe it'll help some people...
G31 Adult Skill
if(comboBox4->Text=="Panther'crit'")
{
KC->Chat(255," Panther Skill ON");
KC->Threads=1;
KC->lasttime = timeGetTime()-15000;
}
else if(comboBox4->Text=="Tiger'otp'")
|
[Release] Code Snippets Manager
01/21/2011 - Coding Releases - 0 Replies
Code Snippets Manager
http://upit.cc/images/1d47d78e.jpg
Hab mich heute mal rangesetzt, und einen kleinen Manager für
Code-Snippets(Code-Fetzen) gecodet, da ich alles sortiert
in einer Anwendung wollte.
Da es sicherlich jemand nützlich finden wird, lad ich es hier mal hoch.
|
All times are GMT +1. The time now is 04:10.
|
|