Honorable Member xP3NG3Rx 19679 Posted October 16, 2017 Honorable Member Share Posted October 16, 2017 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) Hello, This little thing is marks your pet seal into your inventory like the autopotion. This arrives with the v17.5 patch. Open PetSystem.cpp and replace or make it fit for you: void CPetActor::SetSummonItem(LPITEM pItem) { if (NULL == pItem) { LPITEM pSummonItem = ITEM_MANAGER::instance().FindByVID(m_dwSummonItemVID); if (NULL != pSummonItem) pSummonItem->SetSocket(1, FALSE); m_dwSummonItemVID = 0; m_dwSummonItemVnum = 0; return; } pItem->SetSocket(1, TRUE); m_dwSummonItemVID = pItem->GetVID(); m_dwSummonItemVnum = pItem->GetVnum(); } After that open the uiInventory.py and paste this code below the autopotion if-statement in the RefreshBagSlotWindow function. elif itemVnum >= 53001 and itemVnum <= 53256: metinSocket = [player.GetItemMetinSocket(globalSlotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]# <!> globalSlotNumber may be different <!> isActivated = 0 != metinSocket[1] if isActivated: self.wndItem.ActivateSlot(i) else: self.wndItem.DeactivateSlot(i) 57 1 1 21 1 55 Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted October 16, 2017 Premium Share Posted October 16, 2017 Thanks for the release dude ! Also I love your shinning effect Link to comment Share on other sites More sharing options...
Tasho 243 Posted October 16, 2017 Share Posted October 16, 2017 (edited) 48 minutes ago, Galet said: Thanks for the release dude ! Also I love your shinning effect Spoiler I don't think is a "shinning" effect, is just multiple effects added. Write me on private for weapon too. Example for armor: //InstanceBase.cpp //Search for: case CItemData::ITEM_TYPE_ARMOR: __ClearArmorRefineEffect(); //Add after: if (pItem->GetSubType() == CItemData::ARMOR_BODY) { DWORD dwVnum = pItem->GetIndex(); if ((11297 <= dwVnum && dwVnum <= 11299) || (11497 <= dwVnum && dwVnum <= 11499) || (11697 <= dwVnum && dwVnum <= 11699) || (11897 <= dwVnum && dwVnum <= 11899)) { for (int iCount = 0; iCount < 10; iCount++) __AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_REFINED7 + refine - 7); } } Thanks for release. Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal 2 Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted October 16, 2017 Premium Share Posted October 16, 2017 (edited) il y a 1 minute, Tasho a dit : Masquer le contenu I don't think is a "shinning" effect, is just multiple effects added. Write me on private for weapon too. Example for armor: //InstanceBase.cpp //Search for: case CItemData::ITEM_TYPE_ARMOR: __ClearArmorRefineEffect(); //Add after: if (pItem->GetSubType() == CItemData::ARMOR_BODY) { DWORD dwVnum = pItem->GetIndex(); if ((11297 <= dwVnum && dwVnum <= 11299) || (11497 <= dwVnum && dwVnum <= 11499) || (11697 <= dwVnum && dwVnum <= 11699) || (11897 <= dwVnum && dwVnum <= 11899)) { for (int iCount = 0; iCount < 10; iCount++) __AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_REFINED7 + refine - 7); } } Thanks for release. Yeah I know about how it's made but I find it more powerfull than the original, also thanks for the tips I appreciate ! Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal 3 Link to comment Share on other sites More sharing options...
Detro 7 Posted October 22, 2017 Share Posted October 22, 2017 XXXXX Link to comment Share on other sites More sharing options...
Premium mackabro2 216 Posted October 23, 2017 Premium Share Posted October 23, 2017 Does not work. Link to comment Share on other sites More sharing options...
AlexKenT 17 Posted October 23, 2017 Share Posted October 23, 2017 Acum 7 ore, mackabro2 a spus: Does not work. same here Link to comment Share on other sites More sharing options...
JeeX 38 Posted October 24, 2017 Share Posted October 24, 2017 Works perfect ! thank you! Link to comment Share on other sites More sharing options...
Premium Mano 22 Posted October 24, 2017 Premium Share Posted October 24, 2017 Working perfect! Thanks Link to comment Share on other sites More sharing options...
Premium phayara 424 Posted October 24, 2017 Premium Share Posted October 24, 2017 Don't work for me.. how fix?:) Link to comment Share on other sites More sharing options...
Xerneas 10 Posted October 24, 2017 Share Posted October 24, 2017 Same for me, didnt see the effect but nice release ! Link to comment Share on other sites More sharing options...
Jamie 12 Posted October 26, 2017 Share Posted October 26, 2017 Work, nice ! Link to comment Share on other sites More sharing options...
memett4545 6 Posted November 9, 2017 Share Posted November 9, 2017 (edited) 1108 21:08:31391 :: networkModule.py(line:209) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:30) <module> system.py(line:130) __pack_import system.py(line:110) _process_result interfaceModule.py(line:12) <module> system.py(line:130) __pack_import networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unexpected indent (uiInventory.py, line 709) 1108 21:08:31391 :: ============================================================================================================ 1108 21:08:31391 :: Abort!!!! help me pls Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted November 9, 2017 Premium Share Posted November 9, 2017 (edited) Il y a 1 heure, memett4545 a dit : 1108 21:08:31391 :: networkModule.py(line:209) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:30) <module> system.py(line:130) __pack_import system.py(line:110) _process_result interfaceModule.py(line:12) <module> system.py(line:130) __pack_import networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unexpected indent (uiInventory.py, line 709) 1108 21:08:31391 :: ============================================================================================================ 1108 21:08:31391 :: Abort!!!! help me pls Dude at least read the code, you just had to remove one tab (same for the if condition) instead of posting a screen here. Just look at the original code Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal 1 1 1 Link to comment Share on other sites More sharing options...
B0ne 15 Posted November 14, 2017 Share Posted November 14, 2017 uiInventory.py Search: def RefreshBagSlotWindow(self): Find this: self.wndItem.RefreshSlot() if self.wndBelt: self.wndBelt.RefreshSlot() Add below: if 53001 <= itemVnum and 53051 >= itemVnum: metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)] if slotNumber >= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex: slotNumber -= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex isActivated = 0 != metinSocket[1] if isActivated: self.wndItem.ActivateSlot(slotNumber) else: self.wndItem.DeactivateSlot(slotNumber) Link to comment Share on other sites More sharing options...
Itachi 44 Posted November 14, 2017 Share Posted November 14, 2017 En 9/11/2017 a las 13:04, Galet dijo: Dude at least read the code, you just had to remove one tab (same for the if condition) instead of posting a screen here. Just look at the original code metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]# <!> globalSlotNumber may be different <!> globalSlotNumber replace slotNumber Link to comment Share on other sites More sharing options...
Player Unknown 477 Posted November 14, 2017 Share Posted November 14, 2017 (edited) Ty https://metin2.download/picture/pn4ituF4Y5m0DD4yJ6adrJkajm6NzY8W/.gif Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal 4 1 Link to comment Share on other sites More sharing options...
kasko30 19 Posted January 11, 2018 Share Posted January 11, 2018 Is there a fix for it to show in taskbar ? Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19679 Posted January 11, 2018 Author Honorable Member Share Posted January 11, 2018 (edited) Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal 5 Link to comment Share on other sites More sharing options...
Daenerys 176 Posted January 11, 2018 Share Posted January 11, 2018 (edited) thanks, it works. Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
3bd0 181 Posted January 12, 2018 Share Posted January 12, 2018 (edited) it works perfectly fine of taskbar, but don;t work on inventory. here is the code No syserr Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
PeaceMaker 121 Posted February 3, 2018 Share Posted February 3, 2018 any idea how to make it work in taskbar ? it shows active in inventory only and no in taskbar Link to comment Share on other sites More sharing options...
alondark 59 Posted April 5, 2018 Share Posted April 5, 2018 not working, pet time is crazied 1 Link to comment Share on other sites More sharing options...
Tasho 243 Posted April 5, 2018 Share Posted April 5, 2018 (edited) 1 hour ago, alondark said: not working, pet time is crazied With time crazied you mean something like this? Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Active Member Helia01 2134 Posted August 6, 2018 Active Member Share Posted August 6, 2018 (edited) On 2/3/2018 at 11:25 PM, PeaceMaker said: any idea how to make it work in taskbar ? it shows active in inventory only and no in taskbar it's easy: open file: uitaskbar.py find string: if constInfo.IS_AUTO_POTION(itemIndex): and past this code under block Example: Spoiler elif itemIndex >= 53001 and itemVnum <= 53005: metinSocket = [player.GetItemMetinSocket(Position, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)] isActivated = 0 != metinSocket[1] if isActivated: slot.ActivateSlot(slotNumber) else: slot.DeactivateSlot(slotNumber) Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Recommended Posts