Jump to content

Absorbation Rate Shoulders Fix


AlexxD

Recommended Posts

Hi devs, today I'll share you the fix for Absorbation Rate that doesn't show, if it doesn't.

In uitooltip.py from root search:

 

    if isCostumeAcce != 0:
		if metinSlot != 0:
			absChance = int(metinSlot[1])
				if absChance > 0:
					self.AppendSpace(5)
					self.AppendTextLine(localeInfo.ACCE_ABSORB_CHANCE % (absChance), self.CONDITION_COLOR)

replace with:
 

    if itemVnum >= 85001 and itemVnum <= 85008:	
        if metinSlot != 0:
			absChance = int(metinSlot[1])
				if absChance > 0:
					self.AppendSpace(5)
					self.AppendTextLine(localeInfo.ACCE_ABSORB_CHANCE % (absChance), self.CONDITION_COLOR)

!!!! Keep an eye on TABULATORS.
Image: 
https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif/

Rata de absortie: Absorbation Rate :D 
You need to combine two shoulders to show the Absorbation Rate. ;) 

If your shoulders have different CODES in item_proto, put the right codes here:

if itemVnum >= 85001 and itemVnum <= 85008:


 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
  • Love 6

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

1107 05:01:06525 :: 
networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:15) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiToolTip.py(line:338) <module>
uiToolTip.py(line:1073) ItemToolTip

networkModule.SetSelectCharacterPhase - <type 'exceptions.NameError'>:name 'itemVnum' is not defined

1107 05:01:06525 :: ============================================================================================================
1107 05:01:06525 :: Abort!!!!

 

:/

  • Love 1
Link to comment
Share on other sites

1107 05:01:06525 :: 
networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:15) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiToolTip.py(line:338) <module>
uiToolTip.py(line:1073) ItemToolTip

networkModule.SetSelectCharacterPhase - <type 'exceptions.NameError'>:name 'itemVnum' is not defined

1107 05:01:06525 :: ============================================================================================================
1107 05:01:06525 :: Abort!!!!

 

:/

If your shoulders have different codes, change my codes here:
 

if itemVnum >= 85001 and itemVnum <= 85008:

with your codes
 

if itemVnum >= FIRST_SHOULDER_IN_ITEM_PROTO and itemVnum <= LAST_SHOULDER_IN_ITEM_PROTO:

 

  • Love 1

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

kJRya7.jpg

 

vnums 85001 & 85008 doenst work for me xD

 

 

1107 15:15:05149 :: 
networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:15) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiToolTip.py(line:338) <module>
uiToolTip.py(line:1073) ItemToolTip

networkModule.SetSelectCharacterPhase - <type 'exceptions.NameError'>:name 'itemVnum' is not defined

1107 15:15:05149 :: ============================================================================================================
1107 15:15:05149 :: Abort!!!!

 

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

  • 7 months later...
  • 1 month later...

Announcements



×
×
  • 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.