Metin2 - Dump bonus name

  • Get bonus name from tooltip affect dictionary as string, ignore the %value% and function SA, SNA etc.
    Useful for some systems where you want to print just the bonus name, not with an percentage value.
    Ignore the dump.txt & dump_test.py, is just to test how function works.


    Just follow tutorial from localeInfo.py.

    How-To-use

    Python
    1. import localeInfo
    2. import item
    3. # FormatBonusNameString
    4. print localeInfo.FormatBonusNameString(item.APPLY_RESIST_SWORD)
    5. # FormatBonusNameDict
    6. for bonusIndex, bonusName in localeInfo.FormatBonusNameDict().iteritems():
    7. print '{:d}: {:s}'.format(bonusIndex, bonusName)

    GitHub repository:

    .

    Einmal editiert, zuletzt von VegaS ()