Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Hacks, Bots, Cheats, Exploits & Macros
You last visited: Today at 05:21

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE][pyDeveloper]PythonHook/Detour-Class

Discussion on [RELEASE][pyDeveloper]PythonHook/Detour-Class within the Metin2 Hacks, Bots, Cheats, Exploits & Macros forum part of the Metin2 category.

Reply
 
Old   #1
 
[uLow]Beni's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 1,781
Received Thanks: 618
[RELEASE][pyDeveloper]PythonHook/Detour-Class

Don't download if you think python is only a snake !

Hey,
I made a epic class, which makes many things easier.

I have no desire to describe it in this thread, everything is commented

examples for usage:
- easy getting hp of target vid
- handling OnRecvQuest for instant close
- ...
Snippet from DaRealFreaks bot:
Code:
	
def HookOpenTargetBoard():
	game.GameWindow.SetPCTargetBoard = HookedOpenTargetBoard
	chat.AppendChat(1, "OpenTargetBoard wurde erfolgreich gehooked.")		

def HookedOpenTargetBoard(self, vid, name):
	global OldOpenTargetBoard
	global BuffVid
	BuffVid = vid
	chat.AppendChat(1, "Du hast " + name + " anvisiert.")
	OldOpenTargetBoard(self, vid, name)
	
def UnHookOpenTargetBoard():
	global OldOpenTargetBoard
	global BuffVid
	BuffVid = 0
	game.GameWindow.SetPCTargetBoard = OldOpenTargetBoard
	chat.AppendChat(1, "OpenTargetBoard Hook wurde erfolgreich entfernt.")
With my pyDetour:
Code:
import pyDetour
....
def HookedOpenTargetBoard(data):
	global BuffVid
	BuffVid = data.args[1]
        name = data.args[2]
	chat.AppendChat(1, "Du hast " + name+ " anvisiert.")
	data() # call the original function, with *data.args as argument(s)

detour = pyDetour.detour(game.GameWindow.SetPCTargetBoard, HookedOpenTargetBoard)

HookOpenTargetBoard=detour.attach
UnHookOpenTargetBoard=detour.deatch
AND there are no ugly globals (OldOpenTargetBoard)

In the past (i was a noob), i always searched for this class, but i was to unskilled for writing it myself.

pyDetour3: "import" works again for GF clients

Have fun.
Attached Files
File Type: zip pyDetour2.zip (2.3 KB, 331 views)
File Type: zip pyDetour3.zip (2.9 KB, 381 views)
[uLow]Beni is offline  
Thanks
23 Users
Old 09/10/2013, 19:21   #2
 
elite*gold: 0
Join Date: Jul 2012
Posts: 3
Received Thanks: 0
Virus Total pls
Alinsmekerash91 is offline  
Old 09/10/2013, 19:25   #3
 
Hemoglobien²10's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 481
Received Thanks: 296
Quote:
Originally Posted by Alinsmekerash91 View Post
Virus Total pls
it´s .py Files you don´t need an Vt:, lg.


!Beni! super Sache ich danke dir für das Teilen mit uns, lg.
Hemoglobien²10 is offline  
Old 09/10/2013, 22:29   #4
 
elite*gold: 0
Join Date: Jan 2013
Posts: 250
Received Thanks: 25
can u explain what this does?
Agresive3 is offline  
Old 09/11/2013, 00:53   #5
 
.Sexeh.'s Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 459
Received Thanks: 43
For me nothing. I just get log succ (he lazy to write success).

1
.Sexeh. is offline  
Old 09/11/2013, 00:55   #6
 
elite*gold: 0
Join Date: Nov 2008
Posts: 622
Received Thanks: 90
THANK YOU!
battlefox is offline  
Old 09/11/2013, 17:29   #7
 
[uLow]Beni's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 1,781
Received Thanks: 618
Quote:
Originally Posted by .Sexeh. View Post
For me nothing. I just get log succ (he lazy to write success).

1
yes, this is the victim, it's only a example how this works

#reported, i wrote it's only for py-Developer.
[uLow]Beni is offline  
Thanks
1 User
Old 09/11/2013, 18:55   #8
 
Mi4uric3's Avatar
 
elite*gold: 405
Join Date: Dec 2007
Posts: 6,615
Received Thanks: 6,358
53x gedownloaded, 5 Personen haben was geschrieben, da wird man ja als Entwickler richtig motiviert ;D
Mi4uric3 is offline  
Thanks
2 Users
Old 09/11/2013, 19:41   #9
 
osama18's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 473
Received Thanks: 83
Was ist den das für ein Hack ??
osama18 is offline  
Old 09/11/2013, 19:45   #10
 
[uLow]Beni's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 1,781
Received Thanks: 618
Naja 80% laden das sofort runter nur weil das in der Hack Sektion ist ^^.

Quote:
Originally Posted by osama18 View Post
Was ist den das für ein Hack ??
Kein Hack, nur ein Python Modul, welches sonst auch in keine andere Sektion passt.
[uLow]Beni is offline  
Thanks
1 User
Old 09/11/2013, 19:45   #11
 
xP3NG3Rx's Avatar
 
elite*gold: 50
Join Date: May 2011
Posts: 270
Received Thanks: 991
Hmm, thank you.
xP3NG3Rx is offline  
Old 09/12/2013, 18:27   #12
 
[uLow]Beni's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 1,781
Received Thanks: 618
#updated
now you can hook a complete class.
it's awesome
[uLow]Beni is offline  
Thanks
2 Users
Old 09/12/2013, 19:12   #13
 
Hemoglobien²10's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 481
Received Thanks: 296
Quote:
Originally Posted by !Beni! View Post
#updated
now you can hook a complete class.
it's awesome

ui und noch einmal dankeschön fürs teilen, lg.
Hemoglobien²10 is offline  
Old 09/15/2013, 22:32   #14
 
P3enguin's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 154
Received Thanks: 53
hammer Teil !Beni! suchte sowas schon ne ganze Weile.

Thx haste
P3enguin is offline  
Old 09/19/2013, 10:49   #15
 
elite*gold: 0
Join Date: Dec 2012
Posts: 4
Received Thanks: 1
Can somebody please explain the use of this hack?
toniginone is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[funny-release] change CLASS npc by addition to pirate class xDDD
01/12/2012 - CO2 PServer Guides & Releases - 30 Replies
all of us wating for pirate decided to code some sort of npc which change ur job in additon to pirate that some sort of fun no more in ur npc.cs or what ever its name add that #region (CharChanger By Eslam) case 17494: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Would u like to change your job?"); dialog.Option("Yes Please", 1); dialog.Option("No.", 255); dialog.Send(); break; }
Detour und Rehook?! oder nur Detour?
09/16/2011 - WarRock - 4 Replies
Hallo EPVP' Ich hätte mal ne kleine Frage an die D3D Coder C++. Ich hab schon meinen eigenen Hack gecoded. Nun woltle ich D3D Funcs adden, hab auch den richtigen code. In-Game geht es jedoch NICHT!. Nun wurde mir von jemanden gesagt ich bräuchte eine Detour.



All times are GMT +1. The time now is 05:21.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.