Jump to content

Metin2 - Dump Bonus Name


Recommended Posts

  • Forum Moderator

M2 Download Center

This is the hidden content, please
( Internal )

This is the hidden content, please
( 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
&
This is the hidden content, please
, is just to test how function works.

Just follow tutorial from 

This is the hidden content, please
.

 

This is the hidden content, please

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

  • Metin2 Dev 59
  • kekw 1
  • Eyes 1
  • Not Good 3
  • Sad 1
  • Smile Tear 1
  • Confused 1
  • Good 13
  • Love 1
  • Love 28
Link to comment
Share on other sites

  • Bronze
# 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

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

  • 3 years later...

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

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.