Alguien sabe como quitar el bonus de inventario

Topic created · 3 Posts · 693 Views
  • Buenas uj me gustaria saber si alguien sabe como quitar el bonus de inventario sin errores, la verdad que es molesto eso y quisiera saeer como quitarlo, tengo estos 2 archivos que se que son los del bonus de inventario

    Locale/de/ui/inventorywindow.py
    [php]import uiScriptLocale

    MIDDLE_VALUE_FILE = "d:/ymir work/ui/public/Parameter_Slot_01.sub"
    EQUIPMENT_START_INDEX = 90

    window = {
    "name" : "InventoryWindow",

    ## 600 - (width + ¿À¸¥ÂÊÀ¸*Î ºÎÅÍ ¶ç¿ì±â 24 px)
    "x" : SCREEN_WIDTH - 124 - 176,
    "y" : SCREEN_HEIGHT - 37 - 565,

    "style" : ("movable", "float",),

    "width" : 176+124,
    "height" : 565,

    "children" :
    (
    {
    "name" : "board",
    "type" : "board",
    "style" : ("attach",),

    "x" : 0,
    "y" : 0,

    "width" : 176+124,
    "height" : 565,

    "children" :
    (
    ## Title
    {
    "name" : "TitleBar",
    "type" : "titlebar",
    "style" : ("attach",),

    "x" : 8,
    "y" : 7,

    "width" : 161+124,
    "color" : "yellow",

    "children" :
    (
    {
    "name":"TitleName",
    "type":"text",
    "x":77+62,
    "y":3,
    "text":uiScriptLocale.INVENTORY_TITLE,
    "text_horizontal_align":"center"
    },
    ),
    },

    ## Equipment Slot
    {
    "name" : "Equipment_Base",
    "type" : "image",

    "x" : 10,
    "y" : 33,

    "image" : "d:/ymir work/ui/game/windows/equipment_base.sub",

    "children" :
    (

    {
    "name" : "EquipmentSlot",
    "type" : "slot",

    "x" : 3,
    "y" : 3,

    "width" : 150,
    "height" : 182,

    "slot" : (
    {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
    {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
    {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
    {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
    {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
    {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":84, "width":32, "height":32},
    {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":52, "width":32, "height":32},
    {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":113, "width":32, "height":32},
    {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":113, "width":32, "height":32},
    {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":1, "width":32, "height":32},
    {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
    ),
    },
    ## MallButton
    {
    "name" : "MallButton",
    "type" : "button",

    "x" : 120,
    "y" : 150,

    "tooltip_text" : uiScriptLocale.MALL_TITLE,

    "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
    "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
    "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
    },
    ## CostumeButton
    {
    "name" : "CostumeButton",
    "type" : "button",

    "x" : 78,
    "y" : 5,

    "tooltip_text" : uiScriptLocale.COSTUME_TITLE,

    "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
    "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
    "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
    },
    {
    "name" : "Equipment_Tab_01",
    "type" : "radio_button",

    "x" : 86,
    "y" : 161,

    "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
    "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
    "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

    "children" :
    (
    {
    "name" : "Equipment_Tab_01_Print",
    "type" : "text",

    "x" : 0,
    "y" : 0,

    "all_align" : "center",

    "text" : "I",
    },
    ),
    },
    {
    "name" : "Equipment_Tab_02",
    "type" : "radio_button",

    "x" : 86 + 32,
    "y" : 161,

    "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
    "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
    "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

    "children" :
    (
    {
    "name" : "Equipment_Tab_02_Print",
    "type" : "text",

    "x" : 0,
    "y" : 0,

    "all_align" : "center",

    "text" : "II",
    },
    ),
    },

    ),
    },
    ##BonusPageDialog
    {
    "name" : "Bonus_Page",
    "type" : "window",
    "x" : 166,
    "y" : 34,
    "width" : 124,
    "height" : 565-24,
    "children" :
    (
    {
    "name" : "BonusBase1",
    "type" : "horizontalbar",
    "x" : 4,
    "y" : 0,
    "width" : 120,
    "children" :
    (
    {
    "name" : "bonus_text_1",
    "type" : "text",
    "x" : 0,
    "y" : 0,
    "all_align" : "center",
    "text" : "Defensa",
    },
    ),
    },
    {
    "name" : "Schwert_verteidigung",
    "type" : "text",
    "x" : 5,
    "y" : 1*18,
    "text" : "Def. Espada:"
    },
    {
    "name" : "Schwert_vert",
    "type" : "window",
    "x" : 72,
    "y" : 1*18,
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Schwert_vert_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Schwert_vert_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Zweihänder_verteidigung",
    "type" : "text",
    "x" : 5,
    "y" : 2*18,
    "text" : "Def.DosManos:"
    },
    {
    "name" : "Zweihänder_vert",
    "type" : "window",
    "x" : 72,
    "y" : 2*18,
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Zweihänder_vert_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Zweihänder_vert_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Dolche_verteidigung",
    "type" : "text",
    "x" : 5,
    "y" : 3*18,
    "text" : "Def. Daga:"
    },
    {
    "name" : "Dolche_vert",
    "type" : "window",
    "x" : 72,
    "y" : 3*18,
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Dolche_vert_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Dolche_vert_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Bogen_verteidigung",
    "type" : "text",
    "x" : 5,
    "y" : 4*18,
    "text" : "Res. Flechas:"
    },
    {
    "name" : "Bogen_vert",
    "type" : "window",
    "x" : 72,
    "y" : 4*18,
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Bogen_vert_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Bogen_vert_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Glocke_verteidigung",
    "type" : "text",
    "x" : 5,
    "y" : 5*18,
    "text" : "Def. Campana:"
    },
    {
    "name" : "Glocke_vert",
    "type" : "window",
    "x" : 72,
    "y" : 5*18,
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Glocke_vert_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Glocke_vert_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Fächer_verteidigung",
    "type" : "text",
    "x" : 5,
    "y" : 6*18,
    "text" : "Def. Fan:"
    },
    {
    "name" : "Fächer_vert",
    "type" : "window",
    "x" : 72,
    "y" : 6*18,
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Fächer_vert_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Fächer_vert_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Magie_verteidigung",
    "type" : "text",
    "x" : 5,
    "y" : 7*18,
    "text" : "Res. Magia:"
    },
    {
    "name" : "Magie_vert",
    "type" : "window",
    "x" : 72,
    "y" : 7*18,
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Magie_vert_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Magie_vert_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Gift_verteidigung",
    "type" : "text",
    "x" : 5,
    "y" : 8*18,
    "text" : "Res. :"
    },
    {
    "name" : "Gift_vert",
    "type" : "window",
    "x" : 72,
    "y" : 8*18,
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Gift_vert_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Gift_vert_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Krieger_verteidigung",
    "type" : "text",
    "x" : 5,
    "y" : 9*18,
    "text" : "Res. Guerrero:"
    },
    {
    "name" : "Krieger_vert",
    "type" : "window",
    "x" : 72,
    "y" : 9*18,
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Krieger_vert_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Krieger_vert_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Ninja_verteidigung",
    "type" : "text",
    "x" : 5,
    "y" : 10*18,
    "text" : "Res. Ninja:"
    },
    {
    "name" : "Ninja_vert",
    "type" : "window",
    "x" : 72,
    "y" : 10*18,
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Ninja_vert_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Ninja_vert_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Sura_verteidigung",
    "type" : "text",
    "x" : 5,
    "y" : 11*18,
    "text" : "Res. Sura:"
    },
    {
    "name" : "Sura_vert",
    "type" : "window",
    "x" : 72,
    "y" : 11*18,
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Sura_vert_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Sura_vert_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Schamane_verteidigung",
    "type" : "text",
    "x" : 5,
    "y" : 12*18,
    "text" : "Res. Chaman:"
    },
    {
    "name" : "Schamane_vert",
    "type" : "window",
    "x" : 72,
    "y" : 12*18,
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Schamane_vert_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Schamane_vert_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "BonusBase2",
    "type" : "horizontalbar",
    "x" : 4,
    "y" : 235,
    "width" : 120,
    "children" :
    (
    {
    "name" : "bonus_text_1",
    "type" : "text",
    "x" : 0,
    "y" : 0,
    "all_align" : "center",
    "text" : "Ataque",
    },
    ),
    },
    {
    "name" : "Critical_treffer",
    "type" : "text",
    "x" : 5,
    "y" : 235+(1*18),
    "text" : "G. Criticos:"
    },
    {
    "name" : "Krit",
    "type" : "window",
    "x" : 72,
    "y" : 235+(1*18),
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Krit_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Krit_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "DurchBohrenden_treffer",
    "type" : "text",
    "x" : 5,
    "y" : 235+(2*18),
    "text" : "G.Penetración:"
    },
    {
    "name" : "DurchBohrenden",
    "type" : "window",
    "x" : 72,
    "y" : 235+(2*18),
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "DurchBohrenden_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "DurchBohrenden_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "DSS_",
    "type" : "text",
    "x" : 5,
    "y" : 235+(3*18),
    "text" : "Daño De Media:"
    },
    {
    "name" : "DSS",
    "type" : "window",
    "x" : 72,
    "y" : 235+(3*18),
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "DSS_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "DSS_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "FKS_",
    "type" : "text",
    "x" : 5,
    "y" : 235+(4*18),
    "text" : "Daño De Habi.:"
    },
    {
    "name" : "FKS",
    "type" : "window",
    "x" : 72,
    "y" : 235+(4*18),
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "FKS_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "FKS_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Halbmenschen_gegen",
    "type" : "text",
    "x" : 5,
    "y" : 235+(5*18),
    "text" : "F. M.Humanos:"
    },
    {
    "name" : "Halbmenschen",
    "type" : "window",
    "x" : 72,
    "y" : 235+(5*18),
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Halbmenschen_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Halbmenschen_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Untote_gegen",
    "type" : "text",
    "x" : 5,
    "y" : 235+(6*18),
    "text" : "F. Nomuertos:"
    },
    {
    "name" : "Untote",
    "type" : "window",
    "x" : 72,
    "y" : 235+(6*18),
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Untote_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Untote_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Teufel_gegen",
    "type" : "text",
    "x" : 5,
    "y" : 235+(7*18),
    "text" : "F. Demonios:"
    },
    {
    "name" : "Teufel",
    "type" : "window",
    "x" : 72,
    "y" : 235+(7*18),
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Teufel_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Teufel_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Krieger_gegen",
    "type" : "text",
    "x" : 5,
    "y" : 235+(8*18),
    "text" : "F. Guerrero:"
    },
    {
    "name" : "Krieger_str",
    "type" : "window",
    "x" : 72,
    "y" : 235+(8*18),
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Krieger_str_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Krieger_str_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Ninja_gegen",
    "type" : "text",
    "x" : 5,
    "y" : 235+(9*18),
    "text" : "F. Ninja:"
    },
    {
    "name" : "Ninja_str",
    "type" : "window",
    "x" : 72,
    "y" : 235+(9*18),
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Ninja_str_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Ninja_str_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Sura_gegen",
    "type" : "text",
    "x" : 5,
    "y" : 235+(10*18),
    "text" : "F. Sura:"
    },
    {
    "name" : "Ninja_str",
    "type" : "window",
    "x" : 72,
    "y" : 235+(10*18),
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Sura_str_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Sura_str_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "Schamane_gegen",
    "type" : "text",
    "x" : 5,
    "y" : 235+(11*18),
    "text" : "F. Chaman:"
    },
    {
    "name" : "Schamane_str",
    "type" : "window",
    "x" : 72,
    "y" : 235+(11*18),
    "width" : 53,
    "height" : 19,
    "children" :
    (
    {
    "name" : "Schamane_str_Slot",
    "type" : "image",
    "x" : 0,
    "y" : 0,
    "image" : MIDDLE_VALUE_FILE
    },
    {
    "name" : "Schamane_str_Value",
    "type" : "text",
    "x" : 26,
    "y" : 3,
    "text" : "999",
    "r" : 1.0,
    "g" : 1.0,
    "b" : 1.0,
    "a" : 1.0,
    "text_horizontal_align":"center"
    },
    ),
    },
    {
    "name" : "CopyRight",
    "type" : "horizontalbar",
    "x" : 4,
    "y" : 470,
    "width" : 120,
    "children" :
    (
    {
    "name" : "(C)",
    "type" : "text",
    "x" : 0,
    "y" : 0,
    "all_align" : "center",
    "text" : "Bonus De Inventario",
    "r" : 1.0,
    "g" : 0.0,
    "b" : 0.0,
    "a" : 1.0,
    },
    ),
    },
    ),
    },

    ##InventoryTabs
    {
    "name" : "Inventory_Tab_01",
    "type" : "radio_button",

    "x" : 10,
    "y" : 33 + 191,

    "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
    "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
    "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
    "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,

    "children" :
    (
    {
    "name" : "Inventory_Tab_01_Print",
    "type" : "text",

    "x" : 0,
    "y" : 0,

    "all_align" : "center",

    "text" : "I",
    },
    ),
    },
    {
    "name" : "Inventory_Tab_02",
    "type" : "radio_button",

    "x" : 10 + 78,
    "y" : 33 + 191,

    "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
    "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
    "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
    "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,

    "children" :
    (
    {
    "name" : "Inventory_Tab_02_Print",
    "type" : "text",

    "x" : 0,
    "y" : 0,

    "all_align" : "center",

    "text" : "II",
    },
    ),
    },

    ## Item Slot
    {
    "name" : "ItemSlot",
    "type" : "grid_table",

    "x" : 8,
    "y" : 246,

    "start_index" : 0,
    "x_count" : 5,
    "y_count" : 9,
    "x_step" : 32,
    "y_step" : 32,

    "image" : "d:/ymir work/ui/public/Slot_Base.sub"
    },

    ## Print
    {
    "name":"Money_Slot",
    "type":"button",

    "x":8+20,
    "y":28,

    # "horizontal_align":"center",
    "vertical_align":"bottom",

    "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
    "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
    "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",

    "children" :
    (
    {
    "name":"Money_Icon",
    "type":"image",

    "x":-18,
    "y":2,

    "image":"d:/ymir work/ui/game/windows/money_icon.sub",
    },

    {
    "name" : "Money",
    "type" : "text",

    "x" : 3,
    "y" : 3,

    "horizontal_align" : "right",
    "text_horizontal_align" : "right",

    "text" : "123456789",
    },
    ),
    },

    ),
    },
    ),
    }
    [/php]

    root/uiinventory.py
    [php]######################################################################################
    # Datei: Kostümsystem
    # Dateiversion: 1.0.0.0
    # Erstellt von: Paylasici
    ######################################################################################

    import ui
    import player
    import mouseModule
    import net
    import app
    import snd
    import item
    import player
    import chat
    import grp
    import uiScriptLocale
    import uiRefine
    import uiAttachMetin
    import uiPickMoney
    import uiCommon
    import uiPrivateShopBuilder
    import locale
    import constInfo
    import ime
    import background
    import chr
    import uiTooltip

    ITEM_MALL_BUTTON_ENABLE = TRUE
    WARP_SCROLLS = [22011, 22000, 22010]
    POTIONS_BLOCK_VNUM = [27001, 27002, 27003, 27005, 27006, 71020, 70020]
    ITEM_FLAG_APPLICABLE = 1 << 14

    class CostumeWindow(ui.ScriptWindow):
    ######################################################################################
    # Datei: Kostümsystem
    # Dateiversion: 1.0.0.0
    # Erstellt von: Paylasici
    ######################################################################################

    def __init__(self, wndInventory):
    import exception

    # if not app.ENABLE_COSTUME_SYSTEM:
    # exception.Abort("What do you do?")
    # return

    if not wndInventory:
    exception.Abort("wndInventory parameter must be set to InventoryWindow")
    return

    ui.ScriptWindow.__init__(self)

    self.isLoaded = 0
    self.wndInventory = wndInventory;

    self.costumeSystem_Main = None
    self.costumeSystem_Hair = None
    self.__LoadWindow()

    def __del__(self):
    ui.ScriptWindow.__del__(self)

    def Show(self):
    self.__LoadWindow()
    # self.RefreshCostumeSlot()

    ui.ScriptWindow.Show(self)

    def Close(self):
    self.Hide()

    def __LoadWindow(self):
    if self.isLoaded == 1:
    return

    self.isLoaded = 1

    try:
    pyScrLoader = ui.PythonScriptLoader()
    pyScrLoader.LoadScriptFile(self, "UIScript/CostumeWindow.py")

    except:
    import exception
    exception.Abort("CostumeWindow.LoadWindow.LoadObject")

    try:
    GetObject = self.GetChild

    self.costumeIcon = GetObject("Costume_Base")

    self.GetChild("TitleBar").SetCloseEvent(ui.__mem_func__(self.Close))
    wndEquip = self.GetChild("CostumeSlot")

    except:
    import exception
    exception.Abort("CostumeWindow.LoadWindow.BindObject")

    ## Equipment
    wndEquip.SetOverInItemEvent(ui.__mem_func__(self.wndInventory.OverInItem))
    wndEquip.SetOverOutItemEvent(ui.__mem_func__(self.wndInventory.OverOutItem))
    wndEquip.SetUnselectItemSlotEvent(ui.__mem_func__(self.wndInventory.UseItemSlot))
    wndEquip.SetUseSlotEvent(ui.__mem_func__(self.wndInventory.UseItemSlot))
    wndEquip.SetSelectEmptySlotEvent(ui.__mem_func__(self.wndInventory.SelectEmptySlot))
    wndEquip.SetSelectItemSlotEvent(ui.__mem_func__(self.wndInventory.SelectItemSlot))

    self.wndEquip = wndEquip

    # def RefreshCostumeSlot(self):
    # getItemVNum = player.GetItemIndex

    # for i in xrange(item.COSTUME_SLOT_COUNT):
    # slotNumber = item.COSTUME_SLOT_START + i
    # self.wndEquip.SetItemSlot(slotNumber, getItemVNum(slotNumber), 0)

    # self.wndEquip.RefreshSlot()

    def OnUpdate(self):
    if constInfo.COSTUME_SYSTEM_MAIN == 1:
    self.costumeSystem_Main = ui.ExpandedImageBox()
    self.costumeSystem_Main.LoadImage(constInfo.COSTUME_SYSTEM_MAIN_ICON)
    self.costumeSystem_Main.SetParent(self.costumeIcon)
    self.costumeSystem_Main.SetPosition(65, 49)
    self.costumeSystem_Main.Show()
    else:
    if self.costumeSystem_Main != None:
    self.costumeSystem_Main.Hide()

    if constInfo.COSTUME_SYSTEM_HAIR == 1:
    self.costumeSystem_Hair = ui.ExpandedImageBox()
    self.costumeSystem_Hair.LoadImage(constInfo.COSTUME_SYSTEM_HAIR_ICON)
    self.costumeSystem_Hair.SetParent(self.costumeIcon)
    self.costumeSystem_Hair.SetPosition(65, 12)
    self.costumeSystem_Hair.Show()
    else:
    if self.costumeSystem_Hair != None:
    self.costumeSystem_Hair.Hide()

    class InventoryWindow(ui.ScriptWindow):

    USE_TYPE_TUPLE = ("USE_CLEAN_SOCKET", "USE_CHANGE_ATTRIBUTE", "USE_ADD_ATTRIBUTE", "USE_ADD_ATTRIBUTE2", "USE_ADD_ACCESSORY_SOCKET", "USE_PUT_INTO_ACCESSORY_SOCKET")

    def __init__(self):
    ui.ScriptWindow.__init__(self)
    self.questionDialog = None
    self.tooltipItem = None
    self.itemVNum = 0
    self.sellingSlotNumber = -1
    self.isLoaded = 0
    self.isOpenedCostumeWindowWhenClosingInventory = 0

    self.__LoadWindow()

    def __del__(self):
    ui.ScriptWindow.__del__(self)

    def Show(self):
    self.__LoadWindow()

    ui.ScriptWindow.Show(self)

    if self.isOpenedCostumeWindowWhenClosingInventory and self.wndCostume:
    self.wndCostume.Show()

    def __LoadWindow(self):
    if self.isLoaded == 1:
    return

    self.isLoaded = 1

    try:
    pyScrLoader = ui.PythonScriptLoader()

    if ITEM_MALL_BUTTON_ENABLE:
    pyScrLoader.LoadScriptFile(self, uiScriptLocale.LOCALE_UISCRIPT_PATH + "InventoryWindow.py")
    else:
    pyScrLoader.LoadScriptFile(self, "UIScript/InventoryWindow.py")
    except:
    import exception
    exception.Abort("InventoryWindow.LoadWindow.LoadObject")

    try:
    wndItem = self.GetChild("ItemSlot")
    wndEquip = self.GetChild("EquipmentSlot")
    self.GetChild("TitleBar").SetCloseEvent(ui.__mem_func__(self.Close))
    self.wndMoney = self.GetChild("Money")
    self.wndMoneySlot = self.GetChild("Money_Slot")
    self.mallButton = self.GetChild2("MallButton")

    self.costumeButton = self.GetChild2("CostumeButton")
    ##BonusPageDialog
    self.GetChild("Schwert_vert_Value").SetText(str(player.GetStatus(69)))
    self.GetChild("Zweihänder_vert_Value").SetText(str(player.GetStatus(70)))
    self.GetChild("Dolche_vert_Value").SetText(str(player.GetStatus(71)))
    self.GetChild("Bogen_vert_Value").SetText(str(player.GetStatus(74)))
    self.GetChild("Glocke_vert_Value").SetText(str(player.GetStatus(72)))
    self.GetChild("Fächer_vert_Value").SetText(str(player.GetStatus(73)))
    self.GetChild("Magie_vert_Value").SetText(str(player.GetStatus(77)))
    self.GetChild("Gift_vert_Value").SetText(str(player.GetStatus(81)))
    self.GetChild("Krieger_vert_Value").SetText(str(player.GetStatus(59)))
    self.GetChild("Ninja_vert_Value").SetText(str(player.GetStatus(60)))
    self.GetChild("Sura_vert_Value").SetText(str(player.GetStatus(61)))
    self.GetChild("Schamane_vert_Value").SetText(str(player.GetStatus(62)))
    self.GetChild("Krit_Value").SetText(str(player.GetStatus(40)))
    self.GetChild("DurchBohrenden_Value").SetText(str(player.GetStatus(41)))
    self.GetChild("DSS_Value").SetText(str(player.GetStatus(122)))
    self.GetChild("FKS_Value").SetText(str(player.GetStatus(121)))
    self.GetChild("Halbmenschen_Value").SetText(str(player.GetStatus(43)))
    self.GetChild("Untote_Value").SetText(str(player.GetStatus(47)))
    self.GetChild("Teufel_Value").SetText(str(player.GetStatus(48)))
    self.GetChild("Krieger_str_Value").SetText(str(player.GetStatus(54)))
    self.GetChild("Ninja_str_Value").SetText(str(player.GetStatus(55)))
    self.GetChild("Sura_str_Value").SetText(str(player.GetStatus(56)))
    self.GetChild("Schamane_str_Value").SetText(str(player.GetStatus(57)))
    ##BonusPageDialog

    self.inventoryTab = []
    self.inventoryTab.append(self.GetChild("Inventory_Tab_01"))
    self.inventoryTab.append(self.GetChild("Inventory_Tab_02"))

    self.equipmentTab = []
    self.equipmentTab.append(self.GetChild("Equipment_Tab_01"))
    self.equipmentTab.append(self.GetChild("Equipment_Tab_02"))

    # if self.costumeButton and not app.ENABLE_COSTUME_SYSTEM:
    # self.costumeButton.Hide()
    # self.costumeButton.Destroy()
    # self.costumeButton = 0
    except:
    import exception
    exception.Abort("InventoryWindow.LoadWindow.BindObject")

    ## Item
    wndItem.SetSelectEmptySlotEvent(ui.__mem_func__(self.SelectEmptySlot))
    wndItem.SetSelectItemSlotEvent(ui.__mem_func__(self.SelectItemSlot))
    wndItem.SetUnselectItemSlotEvent(ui.__mem_func__(self.UseItemSlot))
    wndItem.SetUseSlotEvent(ui.__mem_func__(self.UseItemSlot))
    wndItem.SetOverInItemEvent(ui.__mem_func__(self.OverInItem))
    wndItem.SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))

    ## Equipment
    wndEquip.SetSelectEmptySlotEvent(ui.__mem_func__(self.SelectEmptySlot))
    wndEquip.SetSelectItemSlotEvent(ui.__mem_func__(self.SelectItemSlot))
    wndEquip.SetUnselectItemSlotEvent(ui.__mem_func__(self.UseItemSlot))
    wndEquip.SetUseSlotEvent(ui.__mem_func__(self.UseItemSlot))
    wndEquip.SetOverInItemEvent(ui.__mem_func__(self.OverInItem))
    wndEquip.SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))

    ## PickMoneyDialog
    dlgPickMoney = uiPickMoney.PickMoneyDialog()
    dlgPickMoney.LoadDialog()
    dlgPickMoney.Hide()

    ## RefineDialog
    self.refineDialog = uiRefine.RefineDialog()
    self.refineDialog.Hide()

    ## AttachMetinDialog
    self.attachMetinDialog = uiAttachMetin.AttachMetinDialog()
    self.attachMetinDialog.Hide()

    ## MoneySlot
    #self.wndMoneySlot.SetEvent(ui.__mem_func__(self.OpenPickMoneyDialog))

    self.inventoryTab[0].SetEvent(lambda arg=0: self.SetInventoryPage(arg))
    self.inventoryTab[1].SetEvent(lambda arg=1: self.SetInventoryPage(arg))
    self.inventoryTab[0].Down()

    self.equipmentTab[0].SetEvent(lambda arg=0: self.SetEquipmentPage(arg))
    self.equipmentTab[1].SetEvent(lambda arg=1: self.SetEquipmentPage(arg))
    self.equipmentTab[0].Down()
    self.equipmentTab[0].Hide()
    self.equipmentTab[1].Hide()

    self.wndItem = wndItem
    self.wndEquip = wndEquip
    self.dlgPickMoney = dlgPickMoney

    # MallButton
    if self.mallButton:
    self.mallButton.SetEvent(ui.__mem_func__(self.ClickMallButton))

    # Costume Button
    if self.costumeButton:
    self.costumeButton.SetEvent(ui.__mem_func__(self.ClickCostumeButton))

    self.wndCostume = None
    #####

    ## Refresh
    self.SetInventoryPage(0)
    self.SetEquipmentPage(0)
    self.RefreshItemSlot()
    self.RefreshStatus()
    self.RefreshBonus()

    def Destroy(self):
    self.ClearDictionary()

    self.dlgPickMoney.Destroy()
    self.dlgPickMoney = 0

    self.refineDialog.Destroy()
    self.refineDialog = 0

    self.attachMetinDialog.Destroy()
    self.attachMetinDialog = 0

    self.tooltipItem = None
    self.wndItem = 0
    self.wndEquip = 0
    self.dlgPickMoney = 0
    self.wndMoney = 0
    self.wndMoneySlot = 0
    self.questionDialog = None
    self.mallButton = None

    if self.wndCostume:
    self.wndCostume.Destroy()
    self.wndCostume = 0
    self.inventoryTab = []
    self.equipmentTab = []

    def Close(self):
    if None != self.tooltipItem:
    self.tooltipItem.HideToolTip()

    if self.wndCostume:
    self.isOpenedCostumeWindowWhenClosingInventory = self.wndCostume.IsShow()
    self.wndCostume.Close()
    self.OnCloseQuestionDialog()
    self.dlgPickMoney.Close()
    self.Hide()

    def SetInventoryPage(self, page):
    self.inventoryPageIndex = page
    self.inventoryTab[1-page].SetUp()
    self.RefreshBagSlotWindow()

    def SetEquipmentPage(self, page):
    self.equipmentPageIndex = page
    self.equipmentTab[1-page].SetUp()
    self.RefreshEquipSlotWindow()

    def ClickMallButton(self):
    print "click_mall_button"
    net.SendChatPacket("/click_mall")

    def ClickCostumeButton(self):
    print "Click Costume Button"
    self.wndCostume = CostumeWindow(self)
    self.wndCostume.Show()

    # if self.wndCostume:
    # if self.wndCostume.IsShow():
    # self.wndCostume.Hide()
    # else:
    # self.wndCostume.Show()
    # else:
    # self.wndCostume = CostumeWindow(self)
    # self.wndCostume.Show()

    def OpenPickMoneyDialog(self):

    if mouseModule.mouseController.isAttached():

    attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
    if player.SLOT_TYPE_SAFEBOX == mouseModule.mouseController.GetAttachedType():

    if player.ITEM_MONEY == mouseModule.mouseController.GetAttachedItemIndex():
    net.SendSafeboxWithdrawMoneyPacket(mouseModule.mouseController.GetAttachedItemCount())
    snd.PlaySound("sound/ui/money.wav")

    mouseModule.mouseController.DeattachObject()

    else:
    curMoney = player.GetElk()

    if curMoney

  • quita de ambos ##BonusPageDialog

  • lo hice pero se queda en la barra de carga y de hay no pasa

Log in to reply