Jump to content

Max Bonus in Description


Recommended Posts

  • VIP

M2 Download Center

Download Here ( 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)


 

 

Link to post
  • 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 post
  • 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 post
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



Shoutbox

Shoutbox

Chatroom Rules

 

Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules

 

×
×
  • 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.