Jump to content

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 63
  • kekw 1
  • Eyes 1
  • Not Good 3
  • Sad 1
  • Smile Tear 1
  • Confused 1
  • Good 14
  • Love 1
  • Love 36
Link to comment
https://metin2.dev/topic/20985-metin2-dump-bonus-name/
Share on other sites

  • Active Member
# 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
https://metin2.dev/topic/20985-metin2-dump-bonus-name/#findComment-113828
Share on other sites

  • 3 years later...
  • Bot

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 :: 

english_banner.gif

Link to comment
https://metin2.dev/topic/20985-metin2-dump-bonus-name/#findComment-152114
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.