Metin2 Python Modules

04/05/2020 23:58 senpaiex#1
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()
04/08/2020 13:39 mesobedo#2
please dump?
04/09/2020 12:10 DarkDrago96#3
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