Jump to content
  • We need you!

    You must register to discover all the features of our community!

[Python] MAX bonus in description

Recommended Posts

Hi friend.

Img: http://prntscr.com/u5hi7x


In uitooltip.py,Updated AFFECT_DICT like this:


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

            if self.AFFECT_DICT[affectType][1] == affectValue and smax != 0:
                return self.AFFECT_DICT[affectType][0](affectValue) + " |cFFFF0000|hMax"
                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)



Edited by Catalin2o14
correction (see edit history)
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.