Jump to content

SIGN FOR PLUS ITEMS BUG(PROBLEM)


Recommended Posts

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

.jpg.jpgZAjOtDk.jpggn7xBDT.jpgbUXordw.jpg

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 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
Share on other sites

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

  • 10 months later...

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

  • 5 years later...

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 by CantSt0p
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 11

      Multi Language System

    2. 0

      [FREE DESIGN] Interface + Logo + Discord Banner and Avatar

    3. 4

      Feeding game source to LLM

    4. 0

      Quest 6/7 Problem

    5. 5

      Effect weapons

    6. 0

      [C++] Fix Core Downer Using Negative Number in GM Codes

    7. 3

      Crystal Metinstone

    8. 4

      Feeding game source to LLM

    9. 113

      Ulthar SF V2 (TMP4 Base)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

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.