Developer PACI 926 Posted February 2, 2017 Developer Share Posted February 2, 2017 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) Spoiler Hi there. While cleaning out "my closet", I found this thing I developed between 2014-2015 - maybe(?) - for my, at that moment, server. Since it's now closed, and I won't use it, I'm sharing it with you guys. Note: Didn't do the scrollbar, wasn't needed for me, so yeah. Now, let's start with opening your locale_game.txt and adding these lines: QUESTCATEGORY_0 Main Quests QUESTCATEGORY_1 Sub Quests QUESTCATEGORY_2 Collect Quests QUESTCATEGORY_3 Levelup Quests QUESTCATEGORY_4 Scroll Quests QUESTCATEGORY_5 System Quests Alright, now find your characterwindow.py (uiscript?) and you can either comment Quest_Page children or simply remove them all. Moving on to your interfaceModule.py find this line self.BINARY_RecvQuest(index, name, "file", localeInfo.GetLetterImageName()) and replace it with self.wndCharacter.questCategory.RecvQuest(self.BINARY_RecvQuest, index, name) Ok, then we are at the most, let's say, difficult part of this. Open your uiCharacter.py and just as you did in your characterwindow.py, remove or simply comment any single line related to quests. You can just search for these vars: self.questShowingStartIndex self.questScrollBar self.questSlot self.questNameList self.questLastTimeList self.questLastCountList Once you did that, you just: # Find these lines self.soloEmotionSlot = self.GetChild("SoloEmotionSlot") self.dualEmotionSlot = self.GetChild("DualEmotionSlot") self.__SetEmotionSlot() # And add the following import uiQuestCategory self.questCategory = uiQuestCategory.QuestCategoryWindow(self.pageDict["QUEST"]) # Find this def OnUpdate(self): self.__UpdateQuestClock() # Replace it with def OnUpdate(self): self.questCategory.OnUpdate() And we're done with the client-side. I attached some extra elements needed (such as the main python file (uiQuestCategory.py) and some image resources). Remember to edit the path linked to these images in that file. For the server-side... Well, screw it, uploaded it too. Too lazy to write. It has only a new quest function (q.getcurrentquestname()) and a few things to add in your questlib.lua. Btw, not sure if you have it, but if not, just add this extra function in ui.Button() (ui.py - class Button). def SetTextAlignLeft(self, text, height = 4): if not self.ButtonText: textLine = TextLine() textLine.SetParent(self) textLine.SetPosition(27, self.GetHeight()/2) textLine.SetVerticalAlignCenter() textLine.SetHorizontalAlignLeft() textLine.Show() self.ButtonText = textLine #Äù½ºÆ® ¸®½ºÆ® UI¿¡ ¸ÂÃç À§Ä¡ ÀâÀ½ self.ButtonText.SetText(text) self.ButtonText.SetPosition(27, self.GetHeight()/2) self.ButtonText.SetVerticalAlignCenter() self.ButtonText.SetHorizontalAlignLeft() Forgot the source part, fml, here it is. Add it to your questlua_quest.cpp. int quest_get_current_quest_name(lua_State* L) { CQuestManager& q = CQuestManager::instance(); PC* pPC = q.GetCurrentPC(); lua_pushstring(L, pPC->GetCurrentQuestName().c_str()); return 1; } void RegisterQuestFunctionTable() { luaL_reg quest_functions[] = { { "getcurrentquestname", quest_get_current_quest_name}, { NULL, NULL } }; CQuestManager::instance().AddLuaFunctionTable("q", quest_functions); } Now, finally, have fun and bye! 40 2 1 4 18 1 161 when you return 0 and server doesn't boot: Link to comment Share on other sites More sharing options...
Premium finaltorment 53 Posted February 2, 2017 Premium Share Posted February 2, 2017 ty very much i search it for long time. Link to comment Share on other sites More sharing options...
AlexKenT 17 Posted February 2, 2017 Share Posted February 2, 2017 Can you leave your uicharacter.py ? Link to comment Share on other sites More sharing options...
B0ne 15 Posted February 2, 2017 Share Posted February 2, 2017 3 hours ago, AlexKenT said: Can you leave your uicharacter.py ? Yeah, pls Link to comment Share on other sites More sharing options...
Developer PACI 926 Posted February 2, 2017 Author Developer Share Posted February 2, 2017 There you go, uiCharacter.py and characterwindow.py for you to compare with yours. This is the hidden content, please Sign In or Sign Up This is the hidden content, please Sign In or Sign Up 12 1 3 1 53 when you return 0 and server doesn't boot: Link to comment Share on other sites More sharing options...
Premium Galet 512 Posted February 2, 2017 Premium Share Posted February 2, 2017 It was already on my server, decided not to publish it since it was mostly extracted from WoM2, but now it's been 3 years so you've made the good choice, you nailed it sir Link to comment Share on other sites More sharing options...
AlexKenT 17 Posted February 3, 2017 Share Posted February 3, 2017 (edited) 12 hours ago, PACI said: There you go, uiCharacter.py and characterwindow.py for you to compare with yours. characterwindow.py uicharacter.py Thx, but check this https://metin2.download/picture/Cyu98hSgqT9tleCD1N6YNdVDbE6UX5jC/.gif and scroll? Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal 1 9 Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted February 3, 2017 Share Posted February 3, 2017 2 hours ago, AlexKenT said: and scroll? On 2/2/2017 at 4:20 AM, PACI said: Note: Didn't do the scrollbar, wasn't needed for me, so yeah. 2 https://m2admin.net/ Link to comment Share on other sites More sharing options...
Fivercloud 55 Posted February 3, 2017 Share Posted February 3, 2017 Good job Paci! Link to comment Share on other sites More sharing options...
xHope 1 Posted February 3, 2017 Share Posted February 3, 2017 (edited) Hello ! Someone have a fix for that? https://metin2.download/picture/sIPAHpAHspK9L2wtACF5JK0gJ2mc94wm/.png Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal 1 1 Link to comment Share on other sites More sharing options...
Premium Galet 512 Posted February 3, 2017 Premium Share Posted February 3, 2017 I just want to ask if the ticked box remains after you closed the window, like wom2, because this is the only bug I have now and I never fixed it, just to see if you have the same problem that I have since I implemented the system ^^ Link to comment Share on other sites More sharing options...
Developer PACI 926 Posted February 5, 2017 Author Developer Share Posted February 5, 2017 @Galet, yes it does.@AlexKenT, paste your syserr here.@xHope, as I said, I didn't do the scrollbar. 1 when you return 0 and server doesn't boot: Link to comment Share on other sites More sharing options...
Hik 108 Posted February 9, 2017 Share Posted February 9, 2017 (edited) It's beautiful! I have a problem: 1) https://metin2.download/picture/GQXRNr55Gxg0U21QhSvfutFn6eP969Mr/.png https://metin2.download/picture/DzNlHRTakE08whl8RyZ30q11dd3XiR7u/.png Ps: How do I assign a mission its type? (Main quests, sub quests) Edited September 11, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
yasi094 290 Posted February 9, 2017 Share Posted February 9, 2017 i like this so much, good job Link to comment Share on other sites More sharing options...
Developer PACI 926 Posted February 12, 2017 Author Developer Share Posted February 12, 2017 @Hik, on questcategory.txt. Show me your client syserr entries. when you return 0 and server doesn't boot: Link to comment Share on other sites More sharing options...
Hik 108 Posted February 12, 2017 Share Posted February 12, 2017 (edited) https://metin2.download/picture/6C9pAfXg5Es0vHYmcC147RyV5JE4CPJO/.png Syserr no error. Edited September 11, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Krusty 32 Posted April 1, 2017 Share Posted April 1, 2017 How to do the scrollbar? Link to comment Share on other sites More sharing options...
ProblemsIn 70 Posted July 8, 2017 Share Posted July 8, 2017 Is saying that uiquestCategory is not defined. Link to comment Share on other sites More sharing options...
Premium Jfirewall 280 Posted September 21, 2017 Premium Share Posted September 21, 2017 search : self.__questCategorySlot[i].openImage.Show() y paste self.__questCategorySlot[i].closeImage = ui.Button() self.__questCategorySlot[i].closeImage.SetParent(self.__questCategorySlot[i]) self.__questCategorySlot[i].closeImage.SetUpVisual("Other/questcategory/quest_category_open.tga") self.__questCategorySlot[i].closeImage.SetOverVisual("Other/questcategory/quest_category_open.tga") self.__questCategorySlot[i].closeImage.SetDownVisual("Other/questcategory/quest_category_close.tga") self.__questCategorySlot[i].closeImage.SetPosition(10,5) self.__questCategorySlot[i].closeImage.SAFE_SetEvent(self.__CloseCategories, i) closed y open Link to comment Share on other sites More sharing options...
Jokerino 3 Posted October 30, 2017 Share Posted October 30, 2017 For servers that have a lot of quests this is perfect! Good job Link to comment Share on other sites More sharing options...
BangerMusik 0 Posted November 27, 2017 Share Posted November 27, 2017 (edited) German: Hey Community,habe mal eine Frage bzg. des Systems (Quest Categories).Screen:Hab bei mir das eingefügt nur weiß ich gar nicht wie man da Queste erstellt bzw.wie Queste dort auftauchen.Habe eine Function in der Src eingefügt, un zwar folgende:------------------------------------getcurrentquestname------------------------------------Habe in der quest_function (Serverside) das eingefügt:q.getcurrentquestnameKann mir vllt. einer ein Beispiel machen wie ich es zum laufen bringen kann das meine Queste dort angezeigt werdenbzw. wie man Sie dort einfügen kann.MFG. English: Hey Community, have a question. of the system (Quest Categories). Screen: I have inserted this only I do not know how to create Queste or like quests appear there. Have a function in the Src inserted, namely the following: ------------------------------------ getcurrentquestname ------------------------------------ I inserted in the quest_function (Serverside): q.getcurrentquestname I can probably. Let me give you an example of how I can make my quest appear there or how you can insert it there. Best regards Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
darkess 1 Posted December 13, 2017 Share Posted December 13, 2017 Hello there. I have a little problem on client 1213 19:45:05627 :: networkModule.py(line:200) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:25) <module> system.py(line:130) __pack_import networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unindent does not match any outer indentation level (uiCharacter.py, line 767) 1213 19:45:05627 :: ============================================================================================================ 1213 19:45:05627 :: Abort!!!! Someone know to help me? Link to comment Share on other sites More sharing options...
Antigene 1 Posted December 17, 2017 Share Posted December 17, 2017 Easy to Fix @darkess look at youre tabs buddy 1 Link to comment Share on other sites More sharing options...
darkess 1 Posted December 17, 2017 Share Posted December 17, 2017 (edited) Acum 4 ore, Antigene a spus: Easy to Fix @darkess look at youre tabs buddy I hate python xD I will look at tabs,thanks edit: Works perfectly now but i miss something xD Photo: Edited December 17, 2017 by darkess Link to comment Share on other sites More sharing options...
Risan 115 Posted June 13, 2018 Share Posted June 13, 2018 (edited) Is Works, have small bugs but is very good Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Recommended Posts