Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2
You last visited: Today at 02:37

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

Advertisement



Metin2 Python Modules

Discussion on Metin2 Python Modules within the Metin2 forum part of the Popular Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2016
Posts: 245
Received Thanks: 146
Metin2 Python Modules

Hey guys! Is there any way to find/dump new python modules and functions?
like this;
HTML Code:
chr.GetNameByVID(vid)
chr.GetName()
chr.GetRace(vid)
chr.GetRotation()
chr.BlendRotation(???)
chr.SetRotationAll(xrotation, yrotation, zrotation)
chr.SetRotation(value)
chr.GetPixelPosition(vid)
Found Some Code ;

Code:
import sys, os
f = open('pythonDump.txt','w')
modules_key = sys.modules.keys()
modules_dic = sys.modules
built_in = sys.builtin_module_names
for mod in modules_key:
    if mod not in built_in:
        print >>f,'\n-----MODULE------'
        print >>f,str(mod)
        print >>f,'-----------------\n'
        funcs = dir(modules_dic.get(mod))
        for func in funcs:
            print >>f,str(func)
			
f.close()
senpaiex is offline  
Old 04/08/2020, 13:39   #2
 
elite*gold: 0
Join Date: Sep 2019
Posts: 65
Received Thanks: 4
please dump?
mesobedo is offline  
Old 04/09/2020, 12:10   #3
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1
Received Thanks: 2
import player
def search(Name_Modules):
method_list = [func for func in dir(Name_Modules) if callable(getattr(Name_Modules, func))]
with open("./method_list.txt", "w") as file:
file.write("\n".join(method_list))
search(player)
#PS: otherwise indentation system does not work. because the site doesn't write it correctly


copy this code into a.py file and use pyloader to start it. replace the module name with what you need, in this example you did it with the "player" module but you can also do it with "chr" or any other module. it will save the name of all the methods in a txt file in the client folder
DarkDrago96 is offline  
Thanks
2 Users
Reply

Tags
metin2, python


Similar Threads Similar Threads
[Python] Extend modules of ScriptWindow
12/30/2019 - Metin2 PServer Guides & Strategies - 3 Replies
This module was not designed for people who don't know nothing about python. Here is a simple functions which gives you the chance to be able to turn all objects of script loader (uiScript) into a a simple list and control all very simple. This is more easy if you have a lot a objects and want to do some actions with them like set multiples text, load images etc. do a simple loop by range start:end and you can play with it. self.OBJECT_MAX_NUM = 25 | You can change how many max objects you...
[Python] Modules after GameForge-Update (01.10.2013)
05/23/2015 - Metin2 Guides & Templates - 21 Replies
Good afternoon Elitepvpers. The update from the 01.10.2013 has changed a few things in the Metin2Client concerning Python. Some Pythonmodules have been removed from the Root-Eterpack and were moved directly into the client-executable. Dump: Module: background 004511C0 IsSoftwareTiling 004511E0 EnableSoftwareTiling 00451240 EnableSnow 00451970 GlobalPositionToLocalPosition



All times are GMT +2. The time now is 02:37.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.