Jump to content
×
×
  • Create New...

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 8
  • Love 8
  • Love 1
  • Good 3
  • Confused 2
  • Dislove 1
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...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 36

      Destroy Item System

    2. 1

      Brillances

    3. 0

      Fusion.org is Looking for Staff Members

    4. 1

      Brillances

    5. 3

      ELONIA2 | PVM-MEDIUM | 11 LANGUAGES | INTERNATIONAL | A NEW STORY

    6. 4

      Spider Queen not spawining in spider dungeon v1

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.