Jump to content

ReeX

Inactive Member
  • Posts

    17
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by ReeX

  1. So upon declaring a war against another guild. I can't enter in the guild war arena through the quest for some reason (when I click Accept nothing happens on the guild war enter quest).

     

    (Here's a gif demonstration of what exactly happens)

    https://metin2.download/picture/063wk3S2lfBrw8vlc37YTKFM9EyOLEY3/.gif

     

    My guild war enter quest

    Spoiler

    quest guild_war_join begin
        state start begin
        when letter begin
            local e = guild.get_any_war()

            if e != 0 and pc.get_war_map() == 0 then
            setskin(NOWINDOW)
            makequestbutton(locale.guild.war_join_request)
            end
        end

        when button begin
            local e = guild.get_any_war()

            if e == 0 then
            say(locale.guild.war_over)
            else
            say(locale.guild.war_entry_ask_head..guild.name(e)..locale.guild.war_entry_ask_tail)

            local s = select(locale.yes, locale.no)

            if s == 1 then
                guild.war_enter(e)
            else
                setskin(NOWINDOW)
                makequestbutton(locale.guild.war_join_request)
            end
            end
        end
        end
    end
     

     

    Guild_war_join Function

    Spoiler

        int guild_war_enter(lua_State* L)
        {
            if (!lua_isnumber(L, 1))
            {
                sys_err("invalid argument");
                return 0;
            }

            CQuestManager& q = CQuestManager::instance();
            LPCHARACTER ch = q.GetCurrentCharacterPtr();

            if (ch->GetGuild())
                ch->GetGuild()->GuildWarEntryAccept((DWORD) lua_tonumber(L, 1), ch);

            return 0;
        }

     

    Note: I have MAP ALLOW for maps 110 and 111 on Game99 only

    Thanks

  2. Hi! I'm trying to compile my server source but I'm getting these errors!

    Spoiler

    In file included from AsyncSQL.cpp:8:
    AsyncSQL.h:11:25: error: mysql/mysql.h: No such file or directory
    AsyncSQL.h:12:26: error: mysql/errmsg.h: No such file or directory
    AsyncSQL.h:13:32: error: mysql/mysqld_error.h: No such file or directory
    In file included from AsyncSQL.cpp:8:
    AsyncSQL.h:35: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
    AsyncSQL.h:35: error: expected ';' before '*' token
    AsyncSQL.h: In constructor '_SQLResult::_SQLResult()':
    AsyncSQL.h:22: error: class '_SQLResult' does not have any field named 'pSQLResult'
    AsyncSQL.h: In destructor '_SQLResult::~_SQLResult()':
    AsyncSQL.h:28: error: 'pSQLResult' was not declared in this scope
    AsyncSQL.h:30: error: 'mysql_free_result' was not declared in this scope
    AsyncSQL.h: At global scope:
    AsyncSQL.h:98: error: ISO C++ forbids declaration of 'MYSQL' with no type
    AsyncSQL.h:98: error: expected ';' before '*' token
    AsyncSQL.h: In constructor '_SQLMsg::_SQLMsg()':
    AsyncSQL.h:43: error: class '_SQLMsg' does not have any field named 'm_pkSQL'
    AsyncSQL.h: In member function 'void _SQLMsg::Store()':
    AsyncSQL.h:64: error: 'struct _SQLResult' has no member named 'pSQLResult'
    AsyncSQL.h:64: error: 'm_pkSQL' was not declared in this scope
    AsyncSQL.h:64: error: 'mysql_store_result' was not declared in this scope
    AsyncSQL.h:65: error: 'mysql_insert_id' was not declared in this scope
    AsyncSQL.h:66: error: 'mysql_affected_rows' was not declared in this scope
    AsyncSQL.h:68: error: 'struct _SQLResult' has no member named 'pSQLResult'
    AsyncSQL.h:70: error: 'struct _SQLResult' has no member named 'pSQLResult'
    AsyncSQL.h:70: error: 'mysql_num_rows' was not declared in this scope
    AsyncSQL.h:78: error: 'm_pkSQL' was not declared in this scope
    AsyncSQL.h:78: error: 'mysql_next_result' was not declared in this scope
    AsyncSQL.h: At global scope:
    AsyncSQL.h:139: error: ISO C++ forbids declaration of 'MYSQL' with no type
    AsyncSQL.h:139: error: expected ';' before '*' token
    AsyncSQL.h:165: error: 'MYSQL' does not name a type
    AsyncSQL.cpp: In constructor 'CAsyncSQL::CAsyncSQL()':
    AsyncSQL.cpp:30: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp: In member function 'void CAsyncSQL::Destroy()':
    AsyncSQL.cpp:44: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp:47: error: 'mysql_close' was not declared in this scope
    AsyncSQL.cpp: In member function 'bool CAsyncSQL::QueryLocaleSet()':
    AsyncSQL.cpp:103: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp:103: error: 'mysql_set_character_set' was not declared in this scope
    AsyncSQL.cpp:105: error: 'mysql_errno' was not declared in this scope
    AsyncSQL.cpp:105: error: 'mysql_error' was not declared in this scope
    AsyncSQL.cpp: In member function 'bool CAsyncSQL::Connect()':
    AsyncSQL.cpp:116: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp:116: error: 'mysql_init' was not declared in this scope
    AsyncSQL.cpp:128: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp:128: error: 'MYSQL_SET_CHARSET_NAME' was not declared in this scope
    AsyncSQL.cpp:128: error: 'mysql_options' was not declared in this scope
    AsyncSQL.cpp:130: error: 'mysql_error' was not declared in this scope
    AsyncSQL.cpp:134: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp:134: error: 'CLIENT_MULTI_STATEMENTS' was not declared in this scope
    AsyncSQL.cpp:134: error: 'mysql_real_connect' was not declared in this scope
    AsyncSQL.cpp:136: error: 'mysql_error' was not declared in this scope
    AsyncSQL.cpp:140: error: 'my_bool' was not declared in this scope
    AsyncSQL.cpp:140: error: expected `;' before 'reconnect'
    AsyncSQL.cpp:142: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp:142: error: 'MYSQL_OPT_RECONNECT' was not declared in this scope
    AsyncSQL.cpp:142: error: 'reconnect' was not declared in this scope
    AsyncSQL.cpp:142: error: 'mysql_options' was not declared in this scope
    AsyncSQL.cpp:143: error: 'mysql_error' was not declared in this scope
    AsyncSQL.cpp:145: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp:152: error: 'mysql_thread_id' was not declared in this scope
    AsyncSQL.cpp: In member function 'SQLMsg* CAsyncSQL::DirectQuery(const char*)':
    AsyncSQL.cpp:250: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp:250: error: 'mysql_thread_id' was not declared in this scope
    AsyncSQL.cpp:259: error: 'struct _SQLMsg' has no member named 'm_pkSQL'
    AsyncSQL.cpp:259: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp:263: error: 'mysql_real_query' was not declared in this scope
    AsyncSQL.cpp:269: error: 'mysql_error' was not declared in this scope
    AsyncSQL.cpp:272: error: 'mysql_errno' was not declared in this scope
    AsyncSQL.cpp: In member function 'void CAsyncSQL::AsyncQuery(const char*)':
    AsyncSQL.cpp:283: error: 'struct _SQLMsg' has no member named 'm_pkSQL'
    AsyncSQL.cpp:283: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp: In member function 'void CAsyncSQL::ReturnQuery(const char*, void*)':
    AsyncSQL.cpp:294: error: 'struct _SQLMsg' has no member named 'm_pkSQL'
    AsyncSQL.cpp:294: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp: In member function 'void CAsyncSQL::ChildLoop()':
    AsyncSQL.cpp:554: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp:554: error: 'mysql_thread_id' was not declared in this scope
    AsyncSQL.cpp:561: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp:561: error: 'mysql_real_query' was not declared in this scope
    AsyncSQL.cpp:563: error: 'mysql_errno' was not declared in this scope
    AsyncSQL.cpp:565: error: 'mysql_error' was not declared in this scope
    AsyncSQL.cpp:570: error: 'CR_SOCKET_CREATE_ERROR' was not declared in this scope
    AsyncSQL.cpp:571: error: 'CR_CONNECTION_ERROR' was not declared in this scope
    AsyncSQL.cpp:572: error: 'CR_IPSOCK_ERROR' was not declared in this scope
    AsyncSQL.cpp:573: error: 'CR_UNKNOWN_HOST' was not declared in this scope
    AsyncSQL.cpp:574: error: 'CR_SERVER_GONE_ERROR' was not declared in this scope
    AsyncSQL.cpp:575: error: 'CR_CONN_HOST_ERROR' was not declared in this scope
    AsyncSQL.cpp:576: error: 'ER_NOT_KEYFILE' was not declared in this scope
    AsyncSQL.cpp:577: error: 'ER_CRASHED_ON_USAGE' was not declared in this scope
    AsyncSQL.cpp:578: error: 'ER_CANT_OPEN_FILE' was not declared in this scope
    AsyncSQL.cpp:579: error: 'ER_HOST_NOT_PRIVILEGED' was not declared in this scope
    AsyncSQL.cpp:580: error: 'ER_HOST_IS_BLOCKED' was not declared in this scope
    AsyncSQL.cpp:581: error: 'ER_PASSWORD_NOT_ALLOWED' was not declared in this scope
    AsyncSQL.cpp:582: error: 'ER_PASSWORD_NO_MATCH' was not declared in this scope
    AsyncSQL.cpp:583: error: 'ER_CANT_CREATE_THREAD' was not declared in this scope
    AsyncSQL.cpp:584: error: 'ER_INVALID_USE_OF_NULL' was not declared in this scope
    AsyncSQL.cpp:616: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp:616: error: 'mysql_thread_id' was not declared in this scope
    AsyncSQL.cpp:623: error: 'm_hDB' was not declared in this scope
    AsyncSQL.cpp:623: error: 'mysql_real_query' was not declared in this scope
    AsyncSQL.cpp:625: error: 'mysql_errno' was not declared in this scope
    AsyncSQL.cpp:627: error: 'mysql_error' was not declared in this scope
    AsyncSQL.cpp:632: error: 'CR_SOCKET_CREATE_ERROR' was not declared in this scope
    AsyncSQL.cpp:633: error: 'CR_CONNECTION_ERROR' was not declared in this scope
    AsyncSQL.cpp:634: error: 'CR_IPSOCK_ERROR' was not declared in this scope
    AsyncSQL.cpp:635: error: 'CR_UNKNOWN_HOST' was not declared in this scope
    AsyncSQL.cpp:636: error: 'CR_SERVER_GONE_ERROR' was not declared in this scope
    AsyncSQL.cpp:637: error: 'CR_CONN_HOST_ERROR' was not declared in this scope
    AsyncSQL.cpp:638: error: 'ER_NOT_KEYFILE' was not declared in this scope
    AsyncSQL.cpp:639: error: 'ER_CRASHED_ON_USAGE' was not declared in this scope
    AsyncSQL.cpp:640: error: 'ER_CANT_OPEN_FILE' was not declared in this scope
    AsyncSQL.cpp:641: error: 'ER_HOST_NOT_PRIVILEGED' was not declared in this scope
    AsyncSQL.cpp:642: error: 'ER_HOST_IS_BLOCKED' was not declared in this scope
    AsyncSQL.cpp:643: error: 'ER_PASSWORD_NOT_ALLOWED' was not declared in this scope
    AsyncSQL.cpp:644: error: 'ER_PASSWORD_NO_MATCH' was not declared in this scope
    AsyncSQL.cpp:645: error: 'ER_CANT_CREATE_THREAD' was not declared in this scope
    AsyncSQL.cpp:646: error: 'ER_INVALID_USE_OF_NULL' was not declared in this scope
    AsyncSQL.cpp: At global scope:
    AsyncSQL.cpp:677: error: expected constructor, destructor, or type conversion before '*' token
    AsyncSQL.cpp: In member function 'size_t CAsyncSQL::EscapeString(char*, size_t, const char*, size_t)':
    AsyncSQL.cpp:707: error: 'GetSQLHandle' was not declared in this scope
    AsyncSQL.cpp:707: error: 'mysql_real_escape_string' was not declared in this scope
    gmake[2]: *** [Makefile:37: AsyncSQL.o] Error 1
    gmake[2]: Leaving directory '/root/workspace/Poodle/Server/libsql'
    gmake[1]: *** [Makefile:21: default] Error 2
    gmake[1]: Leaving directory '/root/workspace/Poodle/Server/libsql'
    gmake: *** [Makefile:87: all] Error 2
     

     

    • Metin2 Dev 1
  3. Hello, I'm fairly new and I'd like some help implementing this bonus page as I'm not sure where these codelines (Note: I do know how to unpack client's  pack files).

    Side Note: I'd like the bonus page to pop up when I press F5.

    Any help would be much appreciated!!

     

    BonusPage code:

    Spoiler

    import ui 
    import wndMgr
    import player

    class BonusPage(ui.ScriptWindow): 

        def __init__(self): 
            ui.ScriptWindow.__init__(self) 
            self.ExstaUpdate = 0
            self.LoadGUI() 
            self.ExstaBonus()
            
        def __del__(self): 
            ui.ScriptWindow.__del__(self) 

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

        def OnUpdate(self): 
            self.ExstaUpdate+=1 
            if self.ExstaUpdate==25: 
                self.ExstaUpdate=0 
                self.ExstaBonus()
        
        def LoadGUI(self): 
            try:
                pyScrLoader = ui.PythonScriptLoader()
                pyScrLoader.LoadScriptFile(self, "bonuspage.py")
            except:
                import exception
                exception.Abort("Si è im*******ta la gui")    
                
        def ExstaBonus(self):
            try:
                self.GetChild("Dif_spada_Value").SetText(str(self.Spada())) #Spada 29
               self.GetChild("Dif_spadone_Value").SetText(str(self.Spadone())) #Spadone 30
               self.GetChild("Dif_pugnale_Value").SetText(str(self.Pugnale())) #Pugnale 31
               self.GetChild("Res_magia_Value").SetText(str(self.ResMagia())) #Res Magia 37
               self.GetChild("Res_freccia_Value").SetText(str(self.Freccia())) #Freccia 34
               self.GetChild("Blocco_Value").SetText(str(self.Blocco())) #Res Veleno 41
               self.GetChild("Res_war_Value").SetText(str(self.ResWar())) #Res War 78
               self.GetChild("Res_Sura_Value").SetText(str(self.ResSura())) #Res Sura 80
               self.GetChild("Res_Ninja_Value").SetText(str(self.ResNinja())) #Res Ninja 79
               self.GetChild("Res_Shamy_Value").SetText(str(self.ResShamy())) #Res Shamy 81
               self.GetChild("Mezziuomini_Value").SetText(str(self.Mezzi()))#Mezzi 17
               self.GetChild("Danni_medi_Value").SetText(str(self.Medi()))#Medi 72
               self.GetChild("Danni_abi_Value").SetText(str(self.Abilita())) #Abi 71
               self.GetChild("Mostri_Value").SetText(str(self.Mostri())) # Vel Magia 9
               self.GetChild("Vs_zombie_Value").SetText(str(self.Zombie())) # Zombie 21
               self.GetChild("Critici_Value").SetText(str(self.Critici())) #Critici 15
               self.GetChild("Trafiggenti_Value").SetText(str(self.Trafi())) #Trafi 16
               self.GetChild("Rig_HP_Value").SetText(str(self.RigHP())) #Rig HP 10
               self.GetChild("Rig_MP_Value").SetText(str(self.RigMP())) #Rig MP 11
               self.GetChild("Veleno_Value").SetText(str(self.Avvelenamento())) #Avvelenamento 12
               
            except:
                import exception
                exception.Abort("Qualcosa è andato a puttane nella Funzione")

        def Spada(self):
            exsta = 69
            return player.GetStatus(exsta)
            
        def Spadone(self):
            exsta = 70
            return player.GetStatus(exsta)    
            
        def Pugnale(self):
            exsta = 71
            return player.GetStatus(exsta)    
            
        def ResMagia(self):
            exsta = 77
            return player.GetStatus(exsta)    
            
        def Freccia(self):
            exsta = 74
            return player.GetStatus(exsta)    
            
        def Blocco(self):
            exsta = 67
            return player.GetStatus(exsta)    
            
        def ResWar(self):
            exsta = 59
            return player.GetStatus(exsta)
            
        def ResSura(self):
            exsta = 61
            return player.GetStatus(exsta)
            
        def ResNinja(self):
            exsta = 60
            return player.GetStatus(exsta)
            
        def ResShamy(self):
            exsta = 62
            return player.GetStatus(exsta)
        
        def Mezzi(self):
            exsta = 43
            return player.GetStatus(exsta)
            
        def Medi(self):
            exsta = 122
            return player.GetStatus(exsta)
            
        def Abilita(self):
            exsta = 121
            return player.GetStatus(exsta)
            
        def Mostri(self):
            exsta = 53
            return player.GetStatus(exsta)
            
        def Zombie(self):
            exsta = 47
            return player.GetStatus(exsta)    
            
        def Critici(self):
            exsta = 40
            return player.GetStatus(exsta)    
            
        def Trafi(self):
            exsta = 41
            return player.GetStatus(exsta)
            
        def RigHP(self):
            exsta = 32
            return player.GetStatus(exsta)
            
        def RigMP(self):
            exsta = 33
            return player.GetStatus(exsta)
            
        def Avvelenamento(self):
            exsta = 37
            return player.GetStatus(exsta)

    BonusPage GUI

    Spoiler

    import uiScriptLocale

    SMALL_VALUE_FILE = "d:/ymir work/ui/public/Parameter_Slot_00.sub"
    MIDDLE_VALUE_FILE = "d:/ymir work/ui/public/Parameter_Slot_01.sub"
    LARGE_VALUE_FILE = "d:/ymir work/ui/public/Parameter_Slot_03.sub"
    ROOT_PATH = "d:/ymir work/ui/game/windows/"
    LOCALE_PATH = uiScriptLocale.WINDOWS_PATH

    window = {
        "name" : "CharacterWindow",
        "style" : ("movable", "float",),

        "x" : 24,
        "y" : (SCREEN_HEIGHT - 37 - 361) / 2,

        "width" : 253,
        "height" : 361,

        "children" :
        (
            {
                "name" : "Board",
                "type" : "board_with_titlebar",

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

                "width" : 253,
                "height" : 361,

                "title" : "Bonus Page",

                "children" :
                (
                    ## Page Area
                   {
                        "name" : "Bonus_Page",
                        "type" : "window",
                        "style" : ("attach",),

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

                        "width" : 270,
                        "height" : 304,

                        "children" :
                        (
                            ## Barra
                           { "name":"Bonus_Bar_Difese", "type":"horizontalbar", "x":12, "y":11, "width":233, },
                            { "name":"Bonus_Bar_Text_Difese", "type":"text", "x":15, "y":13, "text":"Bonus Difese" },

                            
                            { "name":"Difesa_spada", "type":"text", "x":10, "y":35, "text":"Dif. Spada:" },
                            {
                                "name":"Dif_spada", "type":"window", "x":75, "y":35, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Dif_spada_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Dif_spada_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":"Difesa_spadone", "type":"text", "x":10, "y":60, "text":"Dif. Spadone:" },
                            {
                                "name":"Dif_spada", "type":"window", "x":75, "y":60, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Dif_spadone_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Dif_spadone_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":"Difesa_pugnale", "type":"text", "x":10, "y":85, "text":"Dif. Pugnale:" },
                            {
                                "name":"Dif_pugnale", "type":"window", "x":75, "y":85, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Dif_pugnale_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Dif_pugnale_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":"Resistenza_magia", "type":"text", "x":10, "y":110, "text":"Res. magia:" },
                            {
                                "name":"Res_magia", "type":"window", "x":75, "y":110, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Res_magia_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Res_magia_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":"Resistenza_freccia", "type":"text", "x":10, "y":135, "text":"Res. Freccia:" },
                            {
                                "name":"Res_freccia", "type":"window", "x":75, "y":135, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Res_freccia_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Res_freccia_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":"Blocco", "type":"text", "x":135, "y":35, "text":"Blocco:" },
                            {
                                "name":"Blocco", "type":"window", "x":190, "y":35, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Blocco_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Blocco_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":"Res_War", "type":"text", "x":135, "y":60, "text":"Res. War:" },
                            {
                                "name":"Res_war", "type":"window", "x":190, "y":60, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Res_war_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Res_war_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":"Res_Sura", "type":"text", "x":135, "y":85, "text":"Res. Sura:" },
                            {
                                "name":"Res_Sura", "type":"window", "x":190, "y":85, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Res_Sura_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Res_Sura_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":"Res_Ninja", "type":"text", "x":135, "y":110, "text":"Res. Ninja:" },
                            {
                                "name":"Res_Ninja", "type":"window", "x":190, "y":110, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Res_Ninja_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Res_Ninja_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":"Res_Shamy", "type":"text", "x":135, "y":135, "text":"Res. Shamy:" },
                            {
                                "name":"Res_Shamy", "type":"window", "x":190, "y":135, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Res_Shamy_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Res_Shamy_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" },
                                )
                            },

                            ## Barra Generali
                           { "name":"Reaction_Bar", "type":"horizontalbar", "x":12, "y":158, "width":233, },
                            { "name":"Reaction_Bar_Text", "type":"text", "x":15, "y":160, "text":"Bonus Generici" },


                            { "name":"Vs_mezzi", "type":"text", "x":10, "y":180, "text":"Vs. Mezzi:" },
                            {
                                "name":"Mezziuomini", "type":"window", "x":75, "y":180, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Mezziuomini_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Mezziuomini_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":"Danni_medi", "type":"text", "x":10, "y":205, "text":"Danni medi:" },
                            {
                                "name":"Danni_medi", "type":"window", "x":75, "y":205, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Danni_medi_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Danni_medi_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":"Danni_abi", "type":"text", "x":10, "y":230, "text":"Danni abilità:" },
                            {
                                "name":"Danni_abi", "type":"window", "x":75, "y":230, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Danni_abi_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Danni_abi_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":"Mostri", "type":"text", "x":10, "y":255, "text":"Mostri:" },
                            {
                                "name":"Mostri", "type":"window", "x":75, "y":255, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Mostri_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Mostri_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":"Vs_zombie", "type":"text", "x":10, "y":280, "text":"Vs Zombie:" },
                            {
                                "name":"Vs_zombie", "type":"window", "x":75, "y":280, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Vs_zombie_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Vs_zombie_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":"Critici", "type":"text", "x":135, "y":180, "text":"Critici:" },
                            {
                                "name":"Critici", "type":"window", "x":190, "y":180, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Critici_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Critici_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":"Trafiggenti", "type":"text", "x":135, "y":205, "text":"Trafiggenti:" },
                            {
                                "name":"Trafiggenti", "type":"window", "x":190, "y":205, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Trafiggenti_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Trafiggenti_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":"Rig_HP", "type":"text", "x":135, "y":230, "text":"Rig. HP:" },
                            {
                                "name":"Rig_HP", "type":"window", "x":190, "y":230, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Rig_HP_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Rig_HP_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":"Rig_MP", "type":"text", "x":135, "y":255, "text":"Rig. MP:" },
                            {
                                "name":"Rig_MP", "type":"window", "x":190, "y":255, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Rig_MP_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Rig_MP_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":"Veleno", "type":"text", "x":135, "y":280, "text":"Veleno:" },
                            {
                                "name":"Veleno", "type":"window", "x":190, "y":280, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Veleno_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Veleno_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":"Credit_Bar", "type":"horizontalbar", "x":10, "y":305, "width":233, },
                            { "name":"Credit_Bar_Text", "type":"text", "x":15, "y":305, "text":"Made By Exsta" },
                            
                        ),
                    },
                ),
            },
        ),
    }

    SMALL_VALUE_FILE = "d:/ymir work/ui/public/Parameter_Slot_00.sub"
    MIDDLE_VALUE_FILE = "d:/ymir work/ui/public/Parameter_Slot_01.sub"
    LARGE_VALUE_FILE = "d:/ymir work/ui/public/Parameter_Slot_03.sub"
    ROOT_PATH = "d:/ymir work/ui/game/windows/"
    LOCALE_PATH = uiScriptLocale.WINDOWS_PATH

    window = {
        "name" : "CharacterWindow",
        "style" : ("movable", "float",),

        "x" : 24,
        "y" : (SCREEN_HEIGHT - 37 - 361) / 2,

        "width" : 253,
        "height" : 361,

        "children" :
        (
            {
                "name" : "Board",
                "type" : "board_with_titlebar",

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

                "width" : 253,
                "height" : 361,

                "title" : "Bonus Page",

                "children" :
                (
                    ## Page Area
                   {
                        "name" : "Bonus_Page",
                        "type" : "window",
                        "style" : ("attach",),

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

                        "width" : 270,
                        "height" : 304,

                        "children" :
                        (
                            ## Barra
                           { "name":"Bonus_Bar_Difese", "type":"horizontalbar", "x":12, "y":11, "width":233, },
                            { "name":"Bonus_Bar_Text_Difese", "type":"text", "x":15, "y":13, "text":"Bonus Difese" },

                            
                            { "name":"Difesa_spada", "type":"text", "x":10, "y":35, "text":"Dif. Spada:" },
                            {
                                "name":"Dif_spada", "type":"window", "x":75, "y":35, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Dif_spada_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Dif_spada_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":"Difesa_spadone", "type":"text", "x":10, "y":60, "text":"Dif. Spadone:" },
                            {
                                "name":"Dif_spada", "type":"window", "x":75, "y":60, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Dif_spadone_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Dif_spadone_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":"Difesa_pugnale", "type":"text", "x":10, "y":85, "text":"Dif. Pugnale:" },
                            {
                                "name":"Dif_pugnale", "type":"window", "x":75, "y":85, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Dif_pugnale_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Dif_pugnale_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":"Resistenza_magia", "type":"text", "x":10, "y":110, "text":"Res. magia:" },
                            {
                                "name":"Res_magia", "type":"window", "x":75, "y":110, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Res_magia_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Res_magia_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":"Resistenza_freccia", "type":"text", "x":10, "y":135, "text":"Res. Freccia:" },
                            {
                                "name":"Res_freccia", "type":"window", "x":75, "y":135, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Res_freccia_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Res_freccia_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":"Blocco", "type":"text", "x":135, "y":35, "text":"Blocco:" },
                            {
                                "name":"Blocco", "type":"window", "x":190, "y":35, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Blocco_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Blocco_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":"Res_War", "type":"text", "x":135, "y":60, "text":"Res. War:" },
                            {
                                "name":"Res_war", "type":"window", "x":190, "y":60, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Res_war_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Res_war_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":"Res_Sura", "type":"text", "x":135, "y":85, "text":"Res. Sura:" },
                            {
                                "name":"Res_Sura", "type":"window", "x":190, "y":85, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Res_Sura_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Res_Sura_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":"Res_Ninja", "type":"text", "x":135, "y":110, "text":"Res. Ninja:" },
                            {
                                "name":"Res_Ninja", "type":"window", "x":190, "y":110, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Res_Ninja_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Res_Ninja_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":"Res_Shamy", "type":"text", "x":135, "y":135, "text":"Res. Shamy:" },
                            {
                                "name":"Res_Shamy", "type":"window", "x":190, "y":135, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Res_Shamy_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Res_Shamy_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" },
                                )
                            },

                            ## Barra Generali
                           { "name":"Reaction_Bar", "type":"horizontalbar", "x":12, "y":158, "width":233, },
                            { "name":"Reaction_Bar_Text", "type":"text", "x":15, "y":160, "text":"Bonus Generici" },


                            { "name":"Vs_mezzi", "type":"text", "x":10, "y":180, "text":"Vs. Mezzi:" },
                            {
                                "name":"Mezziuomini", "type":"window", "x":75, "y":180, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Mezziuomini_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Mezziuomini_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":"Danni_medi", "type":"text", "x":10, "y":205, "text":"Danni medi:" },
                            {
                                "name":"Danni_medi", "type":"window", "x":75, "y":205, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Danni_medi_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Danni_medi_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":"Danni_abi", "type":"text", "x":10, "y":230, "text":"Danni abilità:" },
                            {
                                "name":"Danni_abi", "type":"window", "x":75, "y":230, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Danni_abi_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Danni_abi_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":"Mostri", "type":"text", "x":10, "y":255, "text":"Mostri:" },
                            {
                                "name":"Mostri", "type":"window", "x":75, "y":255, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Mostri_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Mostri_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":"Vs_zombie", "type":"text", "x":10, "y":280, "text":"Vs Zombie:" },
                            {
                                "name":"Vs_zombie", "type":"window", "x":75, "y":280, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Vs_zombie_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Vs_zombie_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":"Critici", "type":"text", "x":135, "y":180, "text":"Critici:" },
                            {
                                "name":"Critici", "type":"window", "x":190, "y":180, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Critici_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Critici_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":"Trafiggenti", "type":"text", "x":135, "y":205, "text":"Trafiggenti:" },
                            {
                                "name":"Trafiggenti", "type":"window", "x":190, "y":205, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Trafiggenti_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Trafiggenti_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":"Rig_HP", "type":"text", "x":135, "y":230, "text":"Rig. HP:" },
                            {
                                "name":"Rig_HP", "type":"window", "x":190, "y":230, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Rig_HP_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Rig_HP_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":"Rig_MP", "type":"text", "x":135, "y":255, "text":"Rig. MP:" },
                            {
                                "name":"Rig_MP", "type":"window", "x":190, "y":255, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Rig_MP_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Rig_MP_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":"Veleno", "type":"text", "x":135, "y":280, "text":"Veleno:" },
                            {
                                "name":"Veleno", "type":"window", "x":190, "y":280, "width":50, "height":20, 
                                "children" :
                                (
                                    { "name":"Veleno_Slot", "type":"image", "x":0, "y":0, "image":MIDDLE_VALUE_FILE },
                                    { "name":"Veleno_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":"Credit_Bar", "type":"horizontalbar", "x":10, "y":305, "width":233, },
                            { "name":"Credit_Bar_Text", "type":"text", "x":15, "y":305, "text":"Made By Exsta" },
                            
                        ),
                    },
                ),
            },
        ),
    }

     

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