Register for your free account! | Forgot your password?
Rust Cheats

You last visited: Today at 16:06

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

Advertisement



python catch call

Discussion on python catch call within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2009
Posts: 101
Received Thanks: 167
python catch call

How can I catch a call from metin2client to game.py OnRecvWhisper function only from python script without modify anything on game file? I have saw a tutorial with OnKeyDown function from game.py but i don't remember where :|
3t3r4n is offline  
Old 08/15/2013, 09:47   #2


 
Xijezu's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 5,086
Received Thanks: 3,472
Arrow Metin2 Main - Discussions / Questions -> Metin2 PServer - Discussions / Questions

#moved
Xijezu is offline  
Old 08/15/2013, 12:41   #3
 
elite*gold: 726
Join Date: Jul 2010
Posts: 14,233
Received Thanks: 7,915
do you mean the OnRecvWhisper hook by DaRealFreak?

PHP Code:
OldOnRecvWhisper game.GameWindow.OnRecvWhisper
MinimizedWhisper 
0
PrivateMessages 
= {}

def HookedOnRecvWhisper(selfmodenameline):
    global 
OldOnRecvWhisper
    
global PrivateMessages
    
global MinimizedWhisper
    OldOnRecvWhisper
(selfmodenameline)

    if 
not name in PrivateMessages:
        
PrivateMessages[name] = []
    
    
Message line.split(name " : ")[1]

    if 
MinimizedWhisper 0:
        
thread.start_new_thread(AnswerMinimizedWhisper, (nameMessage))
    else:
        
PrivateMessages[name].append([nameMessage""])
    
def HookOnRecvWhisper():
    
game.GameWindow.OnRecvWhisper HookedOnRecvWhisper
    chat
.AppendChat(1"OnRecvWhisper wurde erfolgreich gehooked.")
    
def UnHookHookOnRecvWhisper():
    global 
OldOnRecvWhisper
    game
.GameWindow.OnRecvWhisper OldOnRecvWhisper
    chat
.AppendChat(1"OnRecvWhisper Hook wurde erfolgreich entfernt."
noahrmal is offline  
Thanks
1 User
Old 08/23/2013, 18:38   #4
 
elite*gold: 0
Join Date: Dec 2009
Posts: 101
Received Thanks: 167
tks man
3t3r4n is offline  
Reply


Similar Threads Similar Threads
[Python-Modul]EXP-Donator (kompatibel mit Python Loader)
11/23/2013 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 27 Replies
Moin, da man mich danach gefragt hat und ich sowieso mal ein Beispiel für die Benutzung meines Python Loaders veröffentlichen wollte, habe ich die Gelegenheit genutzt und euch eben einen EXP-Spendebot geschrieben. Man kann ihn einfach mit dem oben verlinkten Python Module Loader laden und ihn mit F5 aktivieren/deaktivieren. Sobald ihr mehr als 99 Erfahrungspunkte habt (man kann nur in 100er Schritten spenden), werden alle Erfahrungspunkte an eure Gilde gespendet. Wer Lust hat und...
[Python]Python Loader vs import
07/29/2013 - Metin2 Private Server - 2 Replies
when i tried to inject my bot with this pyScrLoader = ui.PythonScriptLoader() pyScrLoader.LoadScriptFile(self, "eigenartig/mainboard.py") syserr shows me: 0728 16:55:05139 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage1.mse) Error 0728 16:55:05139 :: CInstanceBase::RegisterEffect(eEftType=264, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage1.mse, isCache=1) - Error 0728 16:55:05139 :: CEffectManager::RegisterEffect...
Help to make a python file works with python loader
03/03/2013 - Metin2 - 2 Replies
Hey epvp! I want make a very. Little hack works on pythonn loader can anybody help me please?
Metin2 - Python - Wie Python Hacks verschlüsseln und Server überprüfen (GF/PServe)
09/23/2012 - Metin2 - 2 Replies
Ich wollte fragen, wie man Python Hacks am besten Verschlüsselt ? und wie man feststellen kann ob man auf einem GF / Pserver spielt. ?
Python + Eric Python IDE installieren ?!
07/05/2011 - General Coding - 0 Replies
hat sich erledigt.



All times are GMT +1. The time now is 16:06.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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