yunusemredamgaci 0 Posted February 6, 2017 Share Posted February 6, 2017 (edited) Hi, Devs have a nice day, I will want your help a problem have today, SIGN FOR PLUS ITEMS , You everyone know the system. + Effect does not work in some parts, I took your photos. Operations in uiiventory.py ### Search: setItemVNum(i, itemVnum, itemCount) ### Add After: if app.SIGN_FOR_PLUS_ITEMS: ITEM_AND_POS = { #aici pui itemele care vrei sa aiba plusul pozitionat altcumva si pozitia plusului 30071 : [12,12], #fiere de urs } if item.GetItemName()[-1:] == "+": if itemVnum in ITEM_AND_POS: self.wndItem.AppendPlusOnSlot(i, ITEM_AND_POS[itemVnum][0], ITEM_AND_POS[itemVnum][1]) else: self.wndItem.AppendPlusOnSlot(i, 12, -1) #pozitia standard (12,-1) else: self.wndItem.AppendPlusOnSlot(i, 0, 0) I'm waiting for your help, Thank you nice forums . Spoiler Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted February 6, 2017 Premium Share Posted February 6, 2017 On inventory, you added the code on the: RefreshBagSlotWindow In order to appear on trading, shop and safebox, you need to code it. Try adding the code like you did for inventory, but on the files bellow: File uiexchange, in defs: RefreshOwnerSlot RefreshTargetSlot File uisafebox, in defs: RefreshSafebox File uisop, in defs: Refresh 1 Link to comment Share on other sites More sharing options...
yunusemredamgaci 0 Posted February 6, 2017 Author Share Posted February 6, 2017 58 minutes ago, tierrilopes said: On inventory, you added the code on the: RefreshBagSlotWindow In order to appear on trading, shop and safebox, you need to code it. Try adding the code like you did for inventory, but on the files bellow: File uiexchange, in defs: RefreshOwnerSlot RefreshTargetSlot File uisafebox, in defs: RefreshSafebox File uisop, in defs: Refresh Could you do the codes? Link to comment Share on other sites More sharing options...
yunusemredamgaci 0 Posted February 6, 2017 Author Share Posted February 6, 2017 I am waiting for everyone help, please Link to comment Share on other sites More sharing options...
yunusemredamgaci 0 Posted February 7, 2017 Author Share Posted February 7, 2017 up Link to comment Share on other sites More sharing options...
yunusemredamgaci 0 Posted February 8, 2017 Author Share Posted February 8, 2017 upp Link to comment Share on other sites More sharing options...
yunusemredamgaci 0 Posted February 8, 2017 Author Share Posted February 8, 2017 up please Link to comment Share on other sites More sharing options...
yunusemredamgaci 0 Posted February 9, 2017 Author Share Posted February 9, 2017 up Link to comment Share on other sites More sharing options...
TRBizeps 49 Posted December 25, 2017 Share Posted December 25, 2017 push, since i have the same problem - and it isn't solved i know how i fix the problems, but im having issues with linking the function. for example self.wndItem.AppendPlusOnSlot(i, 0, 0) if i write a function with this in uitooltip - i dont know howto link, could anyone help please? (def AppendPlusOnSlot is in "ui.py") Link to comment Share on other sites More sharing options...
TRBizeps 49 Posted December 26, 2017 Share Posted December 26, 2017 anyone? Link to comment Share on other sites More sharing options...
CantSt0p 50 Posted August 2, 2023 Share Posted August 2, 2023 (edited) I know, that this topic isn't active since 2017. However for Safebox in uisafebox.py: Spoiler Search for: setItemID(i, getItemID(slotIndex), itemCount) in def RefreshOwnerSlot(self): # SIGN_FOR_PLUS_ITEM if app.SIGN_FOR_PLUS_ITEMS: if item.GetItemName()[-1:] == "+": self.wndItem.AppendPlusOnSlot(i, 12, -1) else: self.wndItem.AppendPlusOnSlot(i, 0, 0) # END_SIGN_FOR_PLUS_ITEMS For Exchange in uiexchange.py: Spoiler Search for: self.OwnerSlot.SetItemSlot(i, itemIndex, itemCount) in def RefreshSafebox(self): add: if app.SIGN_FOR_PLUS_ITEMS: if item.GetItemName()[-1:] == "+": self.OwnerSlot.AppendPlusOnSlot(i, 12, -1) else: self.OwnerSlot.AppendPlusOnSlot(i, 0, 0) # END_SIGN_FOR_PLUS_ITEMS Search for: self.OwnerSlot.SetItemSlot(i, itemIndex, itemCount) in def RefreshTargetSlot(self): add: # SIGN_FOR_PLUS_ITEM if app.SIGN_FOR_PLUS_ITEMS: if item.GetItemName()[-1:] == "+": self.TargetSlot.AppendPlusOnSlot(i, 12, -1) else: self.TargetSlot.AppendPlusOnSlot(i, 0, 0) # END_SIGN_FOR_PLUS_ITEMS Edited August 2, 2023 by CantSt0p 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