VegaS™

python [Py] Metin2 - Dump bonus name

4 posts in this topic

Get bonus name from tooltip affect dictionary as string, ignore the %value% and function SA, SNA etc.
Ignore the dump.txt & dump_test.py, is just to test how function works.

Just follow tutorial from localeInfo.py.

How-To-use

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:

  • Like 2
  • Thanks 2

Share this post


Link to post
Share on other sites
# 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("%","")

trollface-quest.png

  • Haha 2

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

  • Recently Browsing   0 members

    No registered users viewing this page.