Display blend affect without edit source

  • Bitte melden Sie sich an, um dieses Bild zu sehen.


    File: locale_game.txt

    Add (set your description):

    Code
    1. TOOLTIP_BLEND_AFFECT_1 Red SNA
    2. TOOLTIP_BLEND_AFFECT_2 Yellow SNA
    3. TOOLTIP_BLEND_AFFECT_3 Blue SNA
    4. TOOLTIP_BLEND_AFFECT_4 White SNA
    5. TOOLTIP_BLEND_AFFECT_5 Orange SNA
    6. TOOLTIP_BLEND_AFFECT_6 Green SNA


    File: uiAffectShower.py

    Search for:

    Code
    1. AFFECT_MAX_NUM = 32


    Add under:

    Code
    1. AFFECT_BLEND_START = 2000



    Search for

    Code
    1. AFFECT_DATA_DICT[chr.NEW_AFFECT_DRAGON_SOUL_DECK1] = (localeInfo.TOOLTIP_DRAGON_SOUL_DECK1, "d:/ymir work/ui/dragonsoul/buff_ds_sky1.tga")
    2. AFFECT_DATA_DICT[chr.NEW_AFFECT_DRAGON_SOUL_DECK2] = (localeInfo.TOOLTIP_DRAGON_SOUL_DECK2, "d:/ymir work/ui/dragonsoul/buff_ds_land1.tga")


    Add under:

    Code
    1. # AFFECT_DATA_DICT[AFFECT_BLEND_START + pointIdx]
    2. AFFECT_DATA_DICT[AFFECT_BLEND_START + 40] = (localeInfo.TOOLTIP_BLEND_AFFECT_1, "icon/item/50821.tga")
    3. AFFECT_DATA_DICT[AFFECT_BLEND_START + 41] = (localeInfo.TOOLTIP_BLEND_AFFECT_2, "icon/item/50822.tga")
    4. AFFECT_DATA_DICT[AFFECT_BLEND_START + 17] = (localeInfo.TOOLTIP_BLEND_AFFECT_3, "icon/item/50823.tga")
    5. AFFECT_DATA_DICT[AFFECT_BLEND_START + 6] = (localeInfo.TOOLTIP_BLEND_AFFECT_4, "icon/item/50824.tga")
    6. AFFECT_DATA_DICT[AFFECT_BLEND_START + 95] = (localeInfo.TOOLTIP_BLEND_AFFECT_5, "icon/item/50825.tga")
    7. AFFECT_DATA_DICT[AFFECT_BLEND_START + 95] = (localeInfo.TOOLTIP_BLEND_AFFECT_6, "icon/item/50826.tga")


    Search for:

    Code
    1. def BINARY_NEW_AddAffect(self, type, pointIdx, value, duration):


    Add before (make sure that you have the same blend affect index - 531):

    Code
    1. def IsBlendAffect(self, type):
    2. return (type == 531)


    Search for:

    Code
    1. if type == chr.NEW_AFFECT_MALL:
    2. affect = self.MALL_DESC_IDX_START + pointIdx
    3. else:
    4. affect = type


    Replace with:

    Code
    1. if type == chr.NEW_AFFECT_MALL:
    2. affect = self.MALL_DESC_IDX_START + pointIdx
    3. elif self.IsBlendAffect(type):
    4. affect = self.AFFECT_BLEND_START + pointIdx
    5. else:
    6. affect = type


    Search for:

    Code
    1. def BINARY_NEW_RemoveAffect(self, type, pointIdx):

    Replace whole method with:



    That's all. Tell me if you will find any bugs.

    Enjoy! ;)

    Einmal editiert, zuletzt von KoYGeR ()

  • Dieses Thema enthält 10 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind, bitte registrieren Sie sich oder melden Sie sich an um diese lesen zu können.