sankixd 52 Posted April 20, 2015 Share Posted April 20, 2015 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) 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! I know... it is in polish language, but You can translate it very fast and simply... Google translator can help You Notice the tabs, spaces, etc. THIS IS THE FIRST BAD thing what You can do wrong. 1. For first... unpack root and uiscript, go to root folder and open game.py, in imports add this: import uiBonus under: import uiCharacter 2. Next search in this file: onPressKeyDict[app.DIK_Z] and add under(this function is for opening and closing this bonus window): onPressKeyDict[app.DIK_X] = lambda: self.interface.ToggleBonusWindow() in this file it's end. You can close this file. 3. Now go to interfacemodule.py also in root files (in this file will be add very much so You have to be carefoul and check to add all good) and add import like in game.py: import uiBonus 4. Now in this file search: def __init__(self): and under this: self.wndInventory = None add this: self.wndBonus = None 5. Now search this function: def __MakeWindows(self): and under: wndInventory = uiInventory.InventoryWindow() add this: wndBonus = uiBonus.BonusWindow() 6. In this same function but a few lines below after this: self.wndCharacter = wndCharacter add this: self.wndBonus = wndBonus 7. Ok. Good. Now search this function: def Close(self): and after this: if self.wndInventory: self.wndInventory.Destroy() add this: if self.wndBonus: self.wndBonus.Destroy() 7.1 Now again in the same function, a few lines below, we are looking for: del self.wndInventory add this: del self.wndBonus 8. Now search another function: def ShowAllWindows(self): and under this: self.wndInventory.Show() add this: self.wndBonus.Show() 9. Now next function or search this: def HideAllWindows(self): under: if self.wndInventory: self.wndInventory.Hide() add: if self.wndBonus: self.wndBonus.Hide() 10. Uff... not far...but now be carefoul! Search function : def ToggleInventoryWindow(self): and UNDER this function, NOT IN THIS function add new: def ToggleBonusWindow(self): if FALSE == player.IsObserverMode(): if FALSE == self.wndBonus.IsShow(): self.wndBonus.Show() self.wndBonus.SetTop() else: self.wndBonus.Hide() 11. Ok. Next search: def __HideWindows(self): and in this after line: self.wndInventory, add: self.wndBonus, OK. In this way, we end add window to python files. Now only remain for us to add and pack to root files: uibonus.py and add and pack to uiscript files: bonus.py link for this files: http://speedy.sh/Yn8Jb/zakladka-bonus.rar scan: https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif IF AFTER ADD, SOMETHING DON'T WONT WORKING( turn off client etc.) check client SYSERR! PS. If problem is in this window bonus, errors will be in the middle of the polish. A reference to the file where to look. Only one problem for older clients(2010) and oldest, is checking locals "IsARABIC", but the solution is easy... There You must only comment three lines(add # in beginning of the line) 38, 39 and 40 in uiBonus.py file. It must be like this: Spoiler If I somewhere write something wrong, misspell, translate, spoilers etc or incorrect description(everything write what i learned alone) I ask for precise, explanation, etc. I don't translate this files because I don't have time for it... :< If anybody translate files to english(show text in window ingame and errors) will be that good and send me this files or give link in thread I will add it to topic. PS.2. There is a little small bug( resis sura and ninja are reversed), only numbers in uibonus.py( now it is like this: odpninja... bonusid = 61 ... odpsura... bonusid = 60... ) reverse bonusid and it will be good( odpninja... bonusid = 60 ... odpsura.... bonusid = 61 ... ). I think, everyone know what i mean Prohibition of copying on other forums, etc. For personal use only. Kind Regards, Sanki 29 2 12 11 Link to comment Share on other sites More sharing options...
djkotsos 101 Posted June 7, 2015 Share Posted June 7, 2015 bonus lycan; Link to comment Share on other sites More sharing options...
Tülay 8 Posted June 7, 2015 Share Posted June 7, 2015 Thank you very beautiful Link to comment Share on other sites More sharing options...
juanm151 28 Posted October 6, 2015 Share Posted October 6, 2015 (edited) Here I give you the translated files without the bug This is the hidden content, please Sign In or Sign Up Edited October 6, 2015 by juanm151 8 2 2 2 4 Link to comment Share on other sites More sharing options...
thespeedy 20 Posted October 6, 2015 Share Posted October 6, 2015 english or german? oO Link to comment Share on other sites More sharing options...
SeXpL0SiVe 4 Posted October 22, 2015 Share Posted October 22, 2015 hello devs i have that originally in my root but the problem is that i tried to add new bonus and there is this number that i dont know how to change when i add new bonus Link to comment Share on other sites More sharing options...
kimameixede 6 Posted October 24, 2015 Share Posted October 24, 2015 its works tankx Link to comment Share on other sites More sharing options...
kimameixede 6 Posted October 25, 2015 Share Posted October 25, 2015 work fine tankx. i will use in my pserver Link to comment Share on other sites More sharing options...
Eigenartig 7 Posted December 6, 2015 Share Posted December 6, 2015 isn't this dareal's ? Link to comment Share on other sites More sharing options...
3bd0 181 Posted March 6, 2016 Share Posted March 6, 2016 Can anyone reupload a SS from the system ? Link to comment Share on other sites More sharing options...
tukutu 0 Posted March 15, 2018 Share Posted March 15, 2018 somebody can help me with a problem with this? md if u can or reply this post Link to comment Share on other sites More sharing options...
d1s0rd3rx123 2 Posted August 21, 2020 Share Posted August 21, 2020 link plz uibonus Link to comment Share on other sites More sharing options...
Management AZICKO 7351 Posted November 28, 2020 Management Share Posted November 28, 2020 (edited) Dead Download Link Moved Topic If someone has the archive of this topic, can you send it to us? Thank you! Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Scamming ? Reselling ? metin2.download | metin2.dev | fr.metin2.dev | metin2dev.org | metin2.top | top-metin2.org Link to comment Share on other sites More sharing options...
razor93 12 Posted December 27, 2022 Share Posted December 27, 2022 i fund it a working link Spoiler https://metin2.download/get/l2g43wn1gQnuAbtTSYuZ07Xkiro49cwN/ 1 Link to comment Share on other sites More sharing options...
Recommended Posts