Mr. Kasch 4 Posted August 30, 2015 Share Posted August 30, 2015 (edited) How can fix the autopotion effect in 3^ Inventory? >_< https://metin2.download/picture/1O0k4KRyo0SZyUc1pi4CeCVSsCCitfIM/.gif Edited August 19, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium Galet 509 Posted August 30, 2015 Premium Share Posted August 30, 2015 There's a tutorial here Link to comment Share on other sites More sharing options...
Mr. Kasch 4 Posted August 30, 2015 Author Share Posted August 30, 2015 where? i haven't found... Link to comment Share on other sites More sharing options...
Mr. Kasch 4 Posted August 30, 2015 Author Share Posted August 30, 2015 def RefreshBagSlotWindow(self): getItemVNum=player.GetItemIndex getItemCount=player.GetItemCount setItemVNum=self.wndItem.SetItemSlot for i in xrange(player.INVENTORY_PAGE_SIZE*4): slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i) itemCount = getItemCount(slotNumber) if 0 == itemCount: self.wndItem.ClearSlot(i) continue elif 1 == itemCount: itemCount = 0 itemVnum = getItemVNum(slotNumber) setItemVNum(i, itemVnum, itemCount) if constInfo.IS_AUTO_POTION(itemVnum): metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)] if slotNumber >= player.INVENTORY_PAGE_SIZE: slotNumber -= player.INVENTORY_PAGE_SIZE isActivated = 0 != metinSocket[0] if isActivated: self.wndItem.ActivateSlot(i) potionType = 0; if constInfo.IS_AUTO_POTION_HP(itemVnum): potionType = player.AUTO_POTION_TYPE_HP elif constInfo.IS_AUTO_POTION_SP(itemVnum): potionType = player.AUTO_POTION_TYPE_SP usedAmount = int(metinSocket[1]) totalAmount = int(metinSocket[2]) player.SetAutoPotionInfo(potionType, isActivated, (totalAmount - usedAmount), totalAmount, self.__InventoryLocalSlotPosToGlobalSlotPos(i)) else: self.wndItem.DeactivateSlot(i) self.wndItem.RefreshSlot() if self.wndBelt: self.wndBelt.RefreshSlot() Change in uiinventory.py Thanks <3 i have fix it look please. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now