Jump to content
metin2dev
  • 0
Sign in to follow this  
Weles

solved Sash - Absorption in the inventory

Question

System: Shoulder Sash System
With: update_12_09_sash_system

1. Showing bonuses while absorbing - works
2. Absorption - Works
3. Pulled item shows bonuses before absorption
4. The item gives bonuses after absorption
5. Error? Showing bonuses before absorption after absorption in the inventory
 

this_is_bug.gif


The main question: Do you have a fix for this problem?

Share this post


Link to post
Share on other sites

16 answers to this question

Recommended Posts

  • 0

uitooltip.py

 

Search:

elif 0 != isCostumeItem:
			self.__AppendLimitInformation()
			
			if app.ENABLE_SASH_SYSTEM:
				if isCostumeSash:

 

replace with:

elif 0 != isCostumeItem:
			self.__AppendLimitInformation()
			
			if app.ENABLE_SASH_SYSTEM:
				if itemVnum >= 85001 and itemVnum <= 85024:

 

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

@ManiacRobert

I do not use the original dump_proto. I have other program. If not, it would not work at all. There is no problem with the costume of weapons. The only mistake is the bad showing of the bonus value in the eqpiament. Using item the character receives the same bonuses as shown in the absorption window. I think this problem lies somewhere on the uitooltip side because half of it was fixed after changing the code from TekkForCe.

Share this post


Link to post
Share on other sites
  • 0
10 hours ago, Weles said:

I do not use the original dump_proto. I have other program. If not, it would not work at all. There is no problem with the costume of weapons. The only mistake is the bad showing of the bonus value in the eqpiament. Using item the character receives the same bonuses as shown in the absorption window. I think this problem lies somewhere on the uitooltip side because half of it was fixed after changing the code from TekkForCe.

Don`t be a fool. @ManiacRobert just gave you the correct solution.
 

You have a mismatch somewhere, and it`s like 99% the subtype indexing.

Share this post


Link to post
Share on other sites
  • 0

@Fleon

Probably you are right. Of what I saw many people in the forum had a problem with this and probably no topic was resolved. Which of the files would you recommend looking through again to find the error?

Share this post


Link to post
Share on other sites
  • 0
Am 24.11.2017 um 18:13 schrieb Weles:

I said, the error was lying on the uitooltip side. I had to rewrite one function (it took me about 2h), now everything works fine.

 

3.png4.png5.png

Can you post the function ? I have the same problem... 

Share this post


Link to post
Share on other sites
  • 0
vor 13 Stunden schrieb Weles:

U must change one funcion in uitooltip.

U must change one funcion in uitooltip.

wich one bro? :| 

can you post the solution?

Share this post


Link to post
Share on other sites
  • 0
vor einer Stunde schrieb dextr:

wich one bro? :| 

can you post the solution?

Maybe that?

Am 23.11.2017 um 23:16 schrieb TekkForCe:

uitooltip.py

 

Search:


elif 0 != isCostumeItem:
			self.__AppendLimitInformation()
			
			if app.ENABLE_SASH_SYSTEM:
				if isCostumeSash:

 

replace with:


elif 0 != isCostumeItem:
			self.__AppendLimitInformation()
			
			if app.ENABLE_SASH_SYSTEM:
				if itemVnum >= 85001 and itemVnum <= 85024:

 

Best regards
Raylee

Share this post


Link to post
Share on other sites
  • 0
vor 6 Stunden schrieb Raylee:

Maybe that?

Best regards
Raylee

No but i found it.

 

	def __AppendAttributeInformation(self, attrSlot, itemAbsChance = 0, vnum = 0):
		if 0 != attrSlot:
			for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM):
				type = attrSlot[i][0]
				value = attrSlot[i][1]

				if 0 == value:
					continue

				affectString = self.__GetAffectString(type, value)

				if app.ENABLE_SASH_SYSTEM:
					if vnum >= 85001 and vnum <= 85024 or vnum >= 86001 and vnum <= 86058: ## THIS LINE NEED TO BE CHANGED LIKE THIS
						value = self.CalcSashValue(value, itemAbsChance)
						affectString = self.__GetAffectString(type, value)
				
				if affectString:
					affectColor = self.__GetAttributeColor(i, value)
					self.AppendTextLine(affectString, affectColor)

 

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×