Jump to content
×
×
  • Create New...
  • 0

SIGN FOR PLUS ITEMS BUG(PROBLEM)


yunusemredamgaci

Question

 

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 .

Link to comment

9 answers to this question

Recommended Posts

  • 0
  • Premium

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

  • Love 1
Link to comment
  • 0
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
  • 0

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")

"All for one and one for all." Alexandre Dumas

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.