Jump to content

maniek19

Inactive Member
  • Posts

    30
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by maniek19

  1. Hello, can someone tell me how to make bonuses values eg in the form of "14.25%" instead of only "14%"? I have this character bonus window:
    in the uicharacter.py file it looks like this:

    self.GetChild("strzal_value").SetText(str(player.GetStatus(74))+"%")

    And in the characterwindow.py file like this:

    						{
    							"name" : "strzaly",
    							"type" : "text",
    							
    							"x" : 20, "y" : 30+125,
    							
    							"text" : "Odporność na Strzały:",
    							
    							"children" :
    							(
    								{
    									"name" : "slot",
    									"type" : "slotbar",
    									
    									"x" : 200, "y" : 0,
    									
    									"width" : 28, "height" : 18,
    									
    									"children":
    									(
    										{
    											"name" : "strzal_value",
    											"type" : "text",
    											
    											"x" : 0, "y" : 0,
    											
    											"text" : "0%",
    											"all_align" : "center",
    										},	
    									),
    								},
    							),	
    						},

     

  2. 1 godzinę temu, Mali61 napisał:

    Find in uitooltip.py:

    
    			return self.AFFECT_DICT[affectType](affectValue)

    Change:

    
    			return self.AFFECT_DICT[affectType]("{:0,.0f}".format(affectValue).replace(',', '.'))

    Code generated from this post

    Also you need to change bonus names from locale_game.txt. Because value has been converted to string...

    example:

    
    TOOLTIP_MAX_HP	Max. HP +%d	SA

    to:

    
    TOOLTIP_MAX_HP	Max. HP +%s	SA

    1f99cbbb27.png

    Ok, but....

    1203_145325.thumb.jpg.094fb2e1968a2344630ddf8dde9da155.jpg1203_145331.thumb.jpg.635f867e79b83b7134714985feb914aa.jpg

  3. Dnia 31.03.2019 o 15:01, sakincali58k9 napisał:

    "SELECT id, cost, prob, vnum0, count0, vnum1, count1, vnum2, count2,  vnum3, count3, vnum4, count4, vnum5, count5 FROM refine_proto%s",

    Then theoretically, you could give 6 enhancers, but unfortunately ... The problem arises when determining, for example, 4.

  4. Hello! :)

    I have a problem, I can not set 4 or 5 items needed for improvement in the refine_proto table. You can set a maximum of 3. What can I do to change it? In the source code in the item_length.h file, everything would match:

    REFINE_MATERIAL_MAX_NUM        = 5,

     

    Also in the ClientManagerBoot.cpp file everything seems to be:

    bool CClientManager::InitializeRefineTable()
    {
        char query[2048];
    
        snprintf(query, sizeof(query),
                "SELECT id, cost, prob, vnum0, count0, vnum1, count1, vnum2, count2,  vnum3, count3, vnum4, count4 FROM refine_proto%s",
                GetTablePostfix());

    What could be wrong?

     

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