Premium Galet 510 Posted November 11, 2015 Premium Share Posted November 11, 2015 (edited) Hello, I saw lot of people having This bug so I decided to create a simple fix in order to help them ! Let's go ! Open uiinventory.py and search : def DetachMetinFromItem(self, scrollSlotPos, targetSlotPos): Then replace the whole function by : def DetachMetinFromItem(self, scrollSlotPos, targetSlotPos): ## Resetting Sash Stats Fix - Galet - 11/11/2015 - 17h45 - Tribute to the victims of the war scrollIndex = player.GetItemIndex(scrollSlotPos) targetIndex = player.GetItemIndex(targetSlotPos) for i in xrange(player.INVENTORY_PAGE_SIZE*2): slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i) getItemVNum=player.GetItemIndex itemVnum = getItemVNum(slotNumber) if 85009 == itemVnum: item.SelectItem(targetIndex) if item.GetItemSubType() == item.COSTUME_TYPE_ACCE: if self.GetAcceAttribute(targetSlotPos) == 0: return self.questionDialog = uiCommon.QuestionDialog() self.questionDialog.SetText("Would you like to reset your sash shoulder stats?") self.questionDialog.SetAcceptEvent(ui.__mem_func__(self.OnDetachMetinFromItem)) self.questionDialog.SetCancelEvent(ui.__mem_func__(self.OnCloseQuestionDialog)) self.questionDialog.Open() self.questionDialog.sourcePos = scrollSlotPos self.questionDialog.targetPos = targetSlotPos else: return else: if not player.CanDetach(scrollIndex, targetSlotPos): chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.REFINE_FAILURE_METIN_INSEPARABLE_ITEM) return self.questionDialog = uiCommon.QuestionDialog() self.questionDialog.SetText(localeInfo.REFINE_DO_YOU_SEPARATE_METIN) self.questionDialog.SetAcceptEvent(ui.__mem_func__(self.OnDetachMetinFromItem)) self.questionDialog.SetCancelEvent(ui.__mem_func__(self.OnCloseQuestionDialog)) self.questionDialog.Open() self.questionDialog.sourcePos = scrollSlotPos self.questionDialog.targetPos = targetSlotPos If you want it on pastebin, here you go : http://pastebin.com/UG4Tvkv6 WARNING : This fix is only for people who have 2 inventory pages, maybe it's working with more but as it is untested I prefer to precise this, even if I'm pretty sure that the fix are completely working with the actual code, regardless on how many pages you got : If you got more than 2 pages, you must replace (player.INVENTORY_PAGE_SIZE*2) With (player.INVENTORY_PAGE_SIZE*NUMBEROFPAGES) "NUMBEROFPAGES" is simply the number of the inventory pages you got, so 4 for 4, 9 for 9, 2147483647 for 2147483647 It is probably not the best way to fix it but should works like a charm ! If you got any problems I can provide you the help needed on Metin2Dev in English and on Skype in English, German, French and Spanish Have a nice day all Edited November 11, 2015 by galet 10 Link to comment Share on other sites More sharing options...
Veneno 7 Posted November 17, 2015 Share Posted November 17, 2015 @galet Hello and thanks for this but when I'm trying to do it this syserr happens: Spoiler 1117 18:18:14232 :: networkModule.py(line:201) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:30) ? system.py(line:130) __pack_import system.py(line:110) _process_result interfaceModule.py(line:12) ? system.py(line:130) __pack_import networkModule.SetSelectCharacterPhase - exceptions.IndentationError:expected an indented block (line 873) 1117 18:18:14233 :: ============================================================================================================ 1117 18:18:14233 :: Abort!!!! Can you help me with this please? Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted November 17, 2015 Author Premium Share Posted November 17, 2015 Of course, just google the error, be carefull of tab, you need to replace spaces by tabs :) Link to comment Share on other sites More sharing options...
garticosss 0 Posted November 19, 2015 Share Posted November 19, 2015 I have this error: networkModule.SetSelectCharacterPhase - <type 'exceptions.SyntaxError'>:'return' outside function (uiInventory.py, line 890) Line 890= return Ok resolved thx ;) Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted November 19, 2015 Author Premium Share Posted November 19, 2015 Everything is working fine ^^ Your welcome ! :) Link to comment Share on other sites More sharing options...
Eigenartig 7 Posted December 15, 2015 Share Posted December 15, 2015 thank you Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted December 16, 2015 Author Premium Share Posted December 16, 2015 You're welcome Link to comment Share on other sites More sharing options...
[Dev]Medo 4 Posted December 26, 2016 Share Posted December 26, 2016 thank you for the good tut Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted December 29, 2016 Author Premium Share Posted December 29, 2016 Yes indeed ! Thanks, you're welcome you two Link to comment Share on other sites More sharing options...
Recommended Posts