Jump to content

Max Bonus in Description


Recommended Posts

M2 Download Center

This is the hidden content, please
( Internal )

Hi friend.

Spoiler

283412telechargement-1-.png

 

In uitooltip.py,

Updated AFFECT_DICT like this:

Spoiler

283343telechargement.png

 

ex: at APPLY_MAX_HP ,3000 ,is the maximum value, change to all bonuses with your maximum value

next, modify this function like this:
    

def __GetAffectString(self, affectType, affectValue, smax = 0):
        if 0 == affectType:
            return None

        if 0 == affectValue:
            return None

        try:
            if self.AFFECT_DICT[affectType][1] == affectValue and smax != 0:
                return self.AFFECT_DICT[affectType][0](affectValue) + " |cFFFF0000|hMax"
            else:
                return self.AFFECT_DICT[affectType][0](affectValue)
        except TypeError:
            return "UNKNOWN_VALUE[%s] %s" % (affectType, affectValue)
        except KeyError:
            return "UNKNOWN_TYPE[%s] %s" % (affectType, affectValue)

            
Search for:

def __AppendAttributeInformation


change this line:

affectString = self.__GetAffectString(type, value)


 with this

 affectString = self.__GetAffectString(type, value, 1)


 

 

  • Metin2 Dev 45
  • Eyes 2
  • Dislove 1
  • Confused 3
  • Good 22
  • Love 3
  • Love 39
Link to comment
Share on other sites

  • 1 month later...

1018 16:59:09668 :: 
networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:23) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiAffectShower.py(line:8) <module>
system.py(line:130) __pack_import

networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:expected an indented block (uiToolTip.py, line 1386)

1018 16:59:09668 :: ============================================================================================================
1018 16:59:09668 :: Abort!!!!


 

Link to comment
Share on other sites

  • 2 weeks later...
On 10/18/2020 at 6:00 PM, Randaron said:

1018 16:59:09668 :: 
networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:23) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiAffectShower.py(line:8) <module>
system.py(line:130) __pack_import

networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:expected an indented block (uiToolTip.py, line 1386)

1018 16:59:09668 :: ============================================================================================================
1018 16:59:09668 :: Abort!!!!


 

You didn't indent spaces correctly in the uiToolTip.py file. Make sure the spaces are indented correctly with the [Tab] button. This is important in any programing language.

Edited by kevin

Life rips

__________________________

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...
  • 1 year later...

0206 10:47:17406 ::
networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:23) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiAffectShower.py(line:8) <module>
system.py(line:130) __pack_import

networkModule.SetSelectCharacterPhase - <type 'exceptions.SyntaxError'>:invalid syntax (uiToolTip.py, line 574)

0206 10:47:17406 :: ============================================================================================================
0206 10:47:17406 :: Abort!!!!

My 574, line

What is wrong?

        item.APPLY_CON : localeInfo.TOOLTIP_CON, 15,

  • Love 1
Link to comment
Share on other sites

  • 5 months later...
  • 4 weeks later...
  • 2 weeks later...

You forgot to put [ in front of localeInfo.
Example:          item.APPLY_MAX_HP : [localeInfo.TOOLTIP_MAX_HP, 3000],
Explicit example:         item.APPLY_MAX_HP : ->[<-localeInfo.TOOLTIP_MAX_HP, 3000],

From my source:
    AFFECT_DICT = {
        item.APPLY_MAX_HP : [localeInfo.TOOLTIP_MAX_HP, 3000],
        item.APPLY_MAX_SP : [localeInfo.TOOLTIP_MAX_SP,],
        item.APPLY_CON : [localeInfo.TOOLTIP_CON, 12],
        item.APPLY_INT : [localeInfo.TOOLTIP_INT, 12],
        item.APPLY_STR : [localeInfo.TOOLTIP_STR, 12],
        item.APPLY_DEX : [localeInfo.TOOLTIP_DEX, 12],
        item.APPLY_ATT_SPEED : [localeInfo.TOOLTIP_ATT_SPEED, 30],
        item.APPLY_MOV_SPEED : [localeInfo.TOOLTIP_MOV_SPEED, 20],
        item.APPLY_CAST_SPEED : [localeInfo.TOOLTIP_CAST_SPEED,],
        item.APPLY_HP_REGEN : [localeInfo.TOOLTIP_HP_REGEN, 30],
        item.APPLY_SP_REGEN : [localeInfo.TOOLTIP_SP_REGEN, 30],
        item.APPLY_POISON_PCT : [localeInfo.TOOLTIP_APPLY_POISON_PCT, 8],
        item.APPLY_STUN_PCT : [localeInfo.TOOLTIP_APPLY_STUN_PCT, 8],
        item.APPLY_SLOW_PCT : [localeInfo.TOOLTIP_APPLY_SLOW_PCT, 8],
        item.APPLY_CRITICAL_PCT : [localeInfo.TOOLTIP_APPLY_CRITICAL_PCT, 12],
        item.APPLY_PENETRATE_PCT : [localeInfo.TOOLTIP_APPLY_PENETRATE_PCT, 12],


Now understand?

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.