Jump to content

Search the Community

Showing results for tags 'python'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Metin2 Dev
    • Announcements
    • Pillory
    • Praises / Complaints
    • Feedback / Suggestions
  • Community
    • Member Representations
    • Off Topic
    • Games Talk
    • Music / Videos / Art
  • Metin2
    • General
    • Private Servers
  • Help Area
    • Questions & Answers
  • Releases
    • Special forum during backup
    • Guides & HowTo
    • Binaries & Clients / ServerFiles
    • Programming & Scripts / Systems
    • Tools
    • Maps
    • Quests
    • 3D Models
    • 2D Graphics
    • Operating Systems
  • Temporary
    • Temporary


There are no results to display.

There are no results to display.


There are no results to display.

There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start










Music / Audio
















  1. Hey M2DEV! Today I will show you how to fix one unpleasant error related to the auto attack. When you attack a monster automatically and for example want to move away from the monster, what do you do? Probably you will turn off the auto attack and try to move away from the monster using the WASD keys? Yes, but it won't work because the target doesn't reset when you try to disable the auto-attack. Before fix: https://imgur.com/iipNEpg After fix: https://imgur.com/MmTd6GH Open file: UserInterface\PythonPlayer.h Make "__ClearAutoAttackTargetActorID();" public!
  2. Hi there Devs, I would like to share my "little" system. If you aren't interested in the introduction/preview etc. and you just want to download it and put in to your server, just scroll down until the "[How-To] Set up" subtitle. The story Firstly let me tell this system's story. I've got an idea one year before, that it would be good if the players would be able to put their items into a "global" system where they could see the other player's items, and they could buy it for DC or gold (that time I worked with the latest vanilla core (not with the source)). Then in the followin
  3. https://i.gyazo.com/b72a19cfa9cbb9ad7b52342662f94e41.mp4 ### 0.1 Root / uiMessenger.py: # 1. Search: def OnLogin(self, groupIndex ... # 1. After: member.Online() self.OnRefreshList() # 1. Add: if not name in constInfo.ALREADY_NOTIFY_LIST: self.onlinePopup = uiCommon.OnlinePopup() self.onlinePopup.SetUserName(name) self.onlinePopup.SetEvent(ui.__mem_func__(self.OpenWhisper), "MOUSE_LEFT_BUTTON_UP", name) self.onlinePopup.SlideIn() constInfo.ALREADY_NOTIFY_LIST.append(name) # 1.1 After: def OnLogin(... Add: def OpenWhisper(self, eventType, userName
  4. Hello everyone, is my first release and it is something that many people already have, but for those who do not have it, I share it. Image: click here Then, let's start. root/contsinfo.py root/interfacemodule.py root/uiinventory.py: root/uitaskbar.py: locale_xx/locale/xx/ui/taskbar.py locale_xx/locale/xx/locale_interface.txt uiscript ---> Create a new file with this name expandedmoneytaskbar.py and paste this: One extra step: locale_xx/locale/xx/ui/inventorywindow.py or uiscript/inventorywindow.py or uiscript/inventorywindowex
  5. Hello Dev Community! Today I will share You my litlle project what I made, because i saw many things of this problem - it means bonus page, bonus window or as You call it. This is my first thread on metin2dev forum. I do this 2 years ago nad post on known polish forum - mpcforum.pl. This can be a long topic, sorry in advance but I think it's worth. Original thread on mpcforum: http://www.mpcforum.pl/topic/1038647-okno-bonus-by-sanki/ I will share it there, because I think it's good idea for servers. So let's go! Screen: I know... it is in polish language, but Y
  6. Hello community, this is my first tool shared on the forum, hope it helps a lot as it helped me. I know @Mali61 has already shared the tool on the forum but mine is open source so you can change what ever you want. The code is not the best but it does what it's supposed to, good uses. Credits: @WLsj24 for setting up the base locale_string.txt for translations. Git: https://github.com/Owsap/LocaleString-LocaleQuest-Builder
  7. Hello everyone. It's a good day to share an old code with you. First of all you need to know: I don't help to install it. Don't even take the contact with me about it. The whole code is written by me, and reversed from official binaries. At the beginning do a backup for your files(srcs+pys) and READ CAREFULLY the readme. W/o brain.exe please close this tab, or your browser, thank you for your understanding. Preview: Download.exe Enjoy & #h4v3fun, pngr
  8. Hey guys, I needed to be able to scroll on the ui with the mouse wheel and I thought it will be useful for others too so here's what to do. EterPythonLib PythonWindow.h Add virtual BOOL OnMouseWheel(int nLen); after like virtual BOOL OnMouseMiddleButtonUp(); In PythonWindow.cpp add the following function: BOOL CWindow::OnMouseWheel(int nLen) { long lValue; return PyCallClassMemberFunc(m_poHandler, "OnMouseWheel", Py_BuildValue("(i)", nLen), &lValue) && 0 != lValue; } In PythonWindowManager.h add bool RunMouseWhe
  9. Yo' folks! Here is a small gui extension from the official v20.4.0 binary, which is kinda trash, but can be useful for some guis to point out some stuffs. Webzen finally started to use their old codes, this is one of they have never used before. Preview: Animation is not binary sided, it's via python, the testScript.py is attached, the injection is on you, there are many examples how to test a script, there are also many loaders to it. Have fun, Download
  10. Version of Files : XXX Hey yo, I'm injecting python modules via c++ api and after executing it my games crashes (client shuts down). My VS uses python 2.7 libs int GetInstanceType(long vid) { PyObject* args = PyTuple_New(1); PyTuple_SetItem(args, 0, PyInt_FromLong(vid)); PyObject* ret = PyObject_Call(PyObject_GetAttrString(PyImport_ImportModule("chr"), "GetInstanceType"), args, NULL); int result = PyInt_AsLong(ret); Py_DECREF(ret); Py_XDECREF(args); return result; }
  11. Hi there everyone, I'd like to share a small function which will give you a random name whilst creating a new character. This will only include the function and a list of names, so you will have to set the event on your own. Preview: The function which will most likely be put in introCreate.py import os import app #import the above lines if you don't have them already def __randomizeName(self): dir = os.path.dirname(os.path.abspath("introCreate.py")) list = open("%s\\names.list" % dir, "r").read().split("\n") rng = app.GetRandom(0, len(list)-1) randomName = list[r
  12. Hi there devs, Its been a while since my last release and probably this will not change, but I had this guide in my head for like a year now. In my last ~2 years while I was working in the AE team various devs came and go, and this kind of guideline would have been a huge help and could prevent lots of errors. I have been in the dev scene for more than 10 years now and (as some of you may already noticed) one of my main interest has always been making more and more user friendly and complex UI objects/interfaces and along the road gathered tons of experience. You won't
  13. Hello, I am getting problems adding a new client interface, because i have the python files, but i cant add them to my client, always give me diferent errors. please contact me discord: Xaroca#8334 Best regards,
  14. Hi devs, I'd like to share a script I developed the other night whilst working on a project, this script is meant to improve the quality of life of Metin2 as often players find it hard to accurately tell the cooldown of skills and end up spamming their keyboards like many of us have. Preview: Without any further ado, let's dig right into coding this bad boy. We start with locale: Now we shall move onto root part: version 1.0 version 2.0 If you encounter any bugs or you have suggestions please let me know! Changes:
  15. Hi, It shows in the description of your item that it's possible to add a bonus to it. It works up to 7 bonuses. Tutorial Sincerly, ASIKOO
  16. https://gyazo.com/c10376e8fec6f5c40536eec0e880f980 https://mega.nz/file/MYdy1YQD#sk6RPL2yPJVVCSiN-eQmaJ0_U6QUlB8GhGWarjBJvVE VT: https://bit.ly/3fdvL3Q
  17. Hello Today I want to share with all of you a little thing. All times when you are trying to open your safebox, it's requesting the password, isn't it? But for what? I modified to limit these requests to one input per login. Of course if you warp or change character, you need to retype your password again. But with extra modifications you can do it to store the password until you close the client, but I don't recommend this. So, first go to the uiSafeBox.py file and paste this line into the __init__ method of the PasswordDialog class, with taking care of the tabulators: self.
  18. Version of Files : XXX Hello there, I try to write some codes to make Auto storage items to warehouse but I dont know how to input password ? 1. Description of the problem / Question : There is 2 problem 1 how can I add password ? How Can I send the spesific id items to storage ? import player, event, net vid = player.GetTargetVID() net.SendOnClickPacket(vid) event.SelectAnswer(0,2) event.SelectAnswer(event.BUTTON_TYPE_NEXT, 255) event.SelectText("asd") // I tried this but it was bad try I think this part https://prnt.sc/sr072z
  19. Introduction Hey, since I'm often asked if I can make an example for this or that in Python, I just post some of these examples in this thread from time to time. Usually they just end up in my trash (that's why the collection is small for now) but maybe it will help some of you to learn something. You are also welcome to post examples here and I will add them to the startpost. You have a wish for a certain example? Then write it in here. PS: These examples are designed very simple, so that they can be understood. Examples ui.Co
  20. Versión de archivos : XXX Hola Metin2Dev, tengo un pequeño problema con el libro de idiomas. Yo uso 40k Puedo leer libros con el imperio Chunjo y Jinno, y trabajo muy bien, pero cuando trato de usar un Shinsoo, no puedo leer el libro de idiomas, solo fallo y nunca leo 1 ... No sé porque solo este imperio no puede leer, Obviamente utilicé el exorcismo para leer, y verifico char_item.cpp pero no puedo ver nada malo, este es el código: y como puedo poner mas%? ¡¡¡Gracias!!!
  21. So, someone asked me to do this some time ago, I know some servers have already thought of this idea and have been present for some time but anyway I will share it since I haven’t seen nothing similar shared elsewhere and this has been sitting around my hard drive. Although it's something very simple, it’s a good feeling to see from the inventory the status of the dragon soul. Instead of adding the tutorial here I will link a repository to the guidelines. Demonstration Git Repository https://github.com/Owsap/DSS_ACTIVE_EFFECT_BUTTON
  22. Hello, came by to share something simple yet helpful for players, someone requested me this feature that allows you to input money with k format on the pick money dialog window, this will enable you to input “1kk” instead of “1000000” Hope it comes in handy for who is planning to use it. GitHub Repository: https://github.com/Owsap/USE_MONEY_K_FORMAT
  23. Version of Files : XXX Hello everybody, i'm so sorry for my bad english , i try to di my best. 1. Description of the problem / Question : I try to use Guild Stats sytem, everything ok in Game/Client Source but i receive one error from Client Py, it's seems like i don't have one file and i hope you can help me to find out how to fix it. 2. SysErr ( Client ) 0511 19:31:20798 :: File "networkModule.py", line 246, in SetGamePhase0511 19:31:20798 :: File "system.py", line 131, in __pack_import0511 19:31:20798 :: File "system.py", line 111, in _proc
  24. Someone asked me for cache chat messages. Here is the release constInfo.py Add: lastSentenceStack = [] lastSentencePos = 0 game.py In def Open(self): add: if len(constInfo.lastSentenceStack) > 0: constInfo.lastSentencePos = 0 uiChat.py remove: self.lastSentenceStack = [] self.lastSentencePos = 0 All: self.lastSentenceStack Replace with: constInfo.lastSentenceStack All: self.lastSentencePos Replace with: constInfo.lastSentencePos That's all, enjoy
  25. Version of Files : XXX 1. Description of the problem / Question : It's related with the value of the bonuses. 2. SysErr ( Client / Server ) / SysLog ( Server ) 3. How to reproduce it ? This error is appears in syserr only when I'm moving my mouse over items. 4. Screenshots ? def SA(text): def f(x): return text % x return f If I'm leaving it in this way " return text % x", it's alright, no problems with the bonuses, but the error appears in syserr, but if I edit it in this way "ret
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.