Forum Moderator VegaS™ 10268 Posted April 5, 2019 Forum Moderator Share Posted April 5, 2019 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) This is the hidden content, please Sign In or Sign Up ( GitHub ) Get bonus name from tooltip affect dictionary as string, ignore the %value% and function SA, SNA etc. Ignore the This is the hidden content, please Sign In or Sign Up & This is the hidden content, please Sign In or Sign Up , is just to test how function works. Just follow tutorial from This is the hidden content, please Sign In or Sign Up . This is the hidden content, please Sign In or Sign Up import localeInfo import item # FormatBonusNameString print localeInfo.FormatBonusNameString(item.APPLY_RESIST_SWORD) # FormatBonusNameDict for bonusIndex, bonusName in localeInfo.FormatBonusNameDict().iteritems(): print '{:d}: {:s}'.format(bonusIndex, bonusName) GitHub repository: This is the hidden content, please Sign In or Sign Up 59 1 1 3 1 1 1 13 1 29 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
HK-DEV 47 Posted April 5, 2019 Share Posted April 5, 2019 Tnx Vegas. O K E Y Link to comment Share on other sites More sharing options...
Active Member Exygo 1091 Posted April 6, 2019 Active Member Share Posted April 6, 2019 (edited) # Using ymir function affFunc = self.toolTipItem.GetAffectString(bonus_index, 99) affFunc = affFunc.replace("+99","") affFunc = affFunc.replace("+99%","") affFunc = affFunc.replace("99%","") affFunc = affFunc.replace("99","") affFunc = affFunc.replace("%","") Edited August 26, 2022 by Metin2 Dev Core X - External 2 Internal 2 https://www.youtube.com/channel/UCQ8mAeda9TWq6SsTzB53emw/videos Link to comment Share on other sites More sharing options...
Maurage 1 Posted April 8, 2019 Share Posted April 8, 2019 We add how the lines for bonuses? Link to comment Share on other sites More sharing options...
blackList 2 Posted September 24, 2022 Share Posted September 24, 2022 0924 23:40:27432 :: 0924 23:40:27432 :: for bonusIndex, bonusName in localeInfo.FormatBonusNameDict().iteritems(): 0924 23:40:27432 :: File "localeInfo.py", line 688, in FormatBonusNameDict 0924 23:40:27433 :: File "localeInfo.py", line 678, in FormatBonusNameString 0924 23:40:27433 :: TypeError 0924 23:40:27433 :: : 0924 23:40:27433 :: 'tuple' object is not callable 0924 23:40:27433 :: Link to comment Share on other sites More sharing options...
Recommended Posts