Trial 234 Posted October 24, 2014 Share Posted October 24, 2014 Hi guys, I'll show yout how to simply open your safebox by inventory button. 1) First you'll need to replace "def ClickMallButton" in "uiinventory.py" by : def ClickMallButton(self): self.choix = ui.BoardWithTitleBar() self.choix.SetSize(210, 80) self.choix.SetCenterPosition() self.choix.AddFlag('float') self.choix.AddFlag('movable') self.choix.SetTitleName("Ouverture entrepôt") self.choix.Show() self.EntrepotIs = ui.Button() self.EntrepotIs.SetEvent(self.OpenIs) self.EntrepotIs.SetParent(self.choix) self.EntrepotIs.SetPosition(35, 40) self.EntrepotIs.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub") self.EntrepotIs.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub") self.EntrepotIs.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub") self.EntrepotIs.SetText("ItemShop") self.EntrepotIs.SetToolTipText("Ouvrir l'entrepot ItemShop") self.EntrepotIs.Show() self.Magasinier = ui.Button() self.Magasinier.SetEvent(self._normal_mall) self.Magasinier.SetParent(self.choix) self.Magasinier.SetPosition(105, 40) self.Magasinier.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub") self.Magasinier.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub") self.Magasinier.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub") self.Magasinier.SetText("Magasinier") self.Magasinier.SetToolTipText("Ouvrir le magasinier") self.Magasinier.Show() 2) Then add this under : def OpenIs(self): self.EntrepotIs.Hide() self.choix.Hide() self.Magasinier.Hide() net.SendChatPacket("/click_mall") def _normal_mall(self): self.EntrepotIs.Hide() self.Magasinier.Hide() self.choix.Hide() net.SendChatPacket("/click_safebox") 3) Open cmd_general.cpp (game src) and search for : ACMD(do_click_mall) { ch->ChatPacket(CHAT_TYPE_COMMAND, "ShowMeMallPassword"); } then add this below : ACMD(do_click_safebox) { ch->ChatPacket(CHAT_TYPE_COMMAND, "ShowMeSafeboxPassword"); } 4) Open cmd.cpp (still game src) and search for : ACMD(do_click_mall); then add this below : ACMD(do_click_safebox); in same file search for : { "click_mall", do_click_mall, 0, POS_DEAD, GM_PLAYER }, and add this below : { "click_safebox", do_click_safebox, 0, POS_DEAD, GM_PLAYER }, 5) You'll need to remove distance limit to open safebox so open "char.cpp" and search for else if (GetDistanceFromSafeboxOpen() > 1000) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<â°í> °Å¸®°¡ ¸Ö¾î¼ â°í¸¦ ¿ ¼ö ¾ø½À´Ï´Ù.")); return; } here you juste need to comment this block, like this : /* else if (GetDistanceFromSafeboxOpen() > 1000) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<â°í> °Å¸®°¡ ¸Ö¾î¼ â°í¸¦ ¿ ¼ö ¾ø½À´Ï´Ù.")); return; } */ 6) You're done, now you'll get this menu (you will be able to choose between mall or safebox) Spoiler 1 24 Link to comment Share on other sites More sharing options...
terrorr 15 Posted November 4, 2014 Share Posted November 4, 2014 This is possible make this in 2089? Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted November 4, 2014 Premium Share Posted November 4, 2014 This is possible make this in 2089? No, only r40k +. Or maybe with some diff, but I odn't think so. Nice tutorial Trial Link to comment Share on other sites More sharing options...
kanzo 0 Posted November 8, 2014 Share Posted November 8, 2014 You lost me at " 3) Open cmd_general.cpp (game src)" how can i do that help me i'm a bit beginner with game file modifications. Link to comment Share on other sites More sharing options...
Management Karbust 4885 Posted November 14, 2014 Management Share Posted November 14, 2014 I think it's possible do this just with python and lua... But thanks for share Link to comment Share on other sites More sharing options...
Azrog 1 Posted November 14, 2014 Share Posted November 14, 2014 I think it's possible do this just with python and lua... But thanks for share Optimization Link to comment Share on other sites More sharing options...
ScreamMyName 100 Posted November 14, 2014 Share Posted November 14, 2014 You can do it on any rev using python.. 1 Link to comment Share on other sites More sharing options...
marvin 93 Posted November 24, 2014 Share Posted November 24, 2014 You can do it on any rev using python.. And lua Link to comment Share on other sites More sharing options...
Cripplez 40 Posted March 7, 2021 Share Posted March 7, 2021 (edited) I did everything but i have this syserr in client 0307 15:48:03293 :: networkModule.py(line:200) SetSelectCharacterPhase system.py(line:177) __hybrid_import system.py(line:142) _process_result introSelect.py(line:30) <module> system.py(line:177) __hybrid_import system.py(line:142) _process_result interfaceModule.py(line:12) <module> system.py(line:177) __hybrid_import networkModule.SetSelectCharacterPhase - <type 'exceptions.SyntaxError'>:invalid syntax (uiInventory.py, line 834) 0307 15:48:03293 :: ============================================================================================================ 0307 15:48:03293 :: Abort!!!! Spoiler Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Honorable Member Mali 41882 Posted March 8, 2021 Honorable Member Share Posted March 8, 2021 (edited) 19 hours ago, Cripplez said: I did everything but i have this syserr in client 0307 15:48:03293 :: networkModule.py(line:200) SetSelectCharacterPhase system.py(line:177) __hybrid_import system.py(line:142) _process_result introSelect.py(line:30) <module> system.py(line:177) __hybrid_import system.py(line:142) _process_result interfaceModule.py(line:12) <module> system.py(line:177) __hybrid_import networkModule.SetSelectCharacterPhase - <type 'exceptions.SyntaxError'>:invalid syntax (uiInventory.py, line 834) 0307 15:48:03293 :: ============================================================================================================ 0307 15:48:03293 :: Abort!!!! Reveal hidden contents Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts