Jump to content

bumxd

Banned
  • Posts

    728
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by bumxd

  1.  

     

     

    add it like this

    char chatbuf_global[CHAT_MAX_LEN + 1];
    int len = snprintf(chatbuf_global, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    

     
    input_main.cpp: In member function 'int CInputMain::Chat(CHARACTER*, const char*, size_t)':
    input_main.cpp:747: error: 'chatbuf_global' was not declared in this scope
    input_main.cpp:747: warning: unused variable 'len'
    compile mining.cpp
    compile mob_manager.cpp
    compile monarch.cpp
    gmake: *** [OBJDIR/input_main.o] Error 1
    gmake: *** Waiting for unfinished jobs....
     
    error..
     
    this code:
    static const char* colorbuf[]={"|cFFffa200|H|h[Team-Member]|h|r", "|cFFff0000|H|h[Shinsoo]|h|r", "|cFFffc700|H|h[Chunjo]|h|r", "|cFF000bff|H|h[Jinno]|h|r"};
    int len = snprintf(chatbuf_global, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    char chatbuf_global[CHAT_MAX_LEN + 1];
    

    747 linea:

    int len = snprintf(chatbuf_global, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);

     

    not like that , like this :

    char chatbuf_global[CHAT_MAX_LEN + 1];
    static const char* colorbuf[]={"|cFFffa200|H|h[Team-Member]|h|r", "|cFFff0000|H|h[Shinsoo]|h|r", "|cFFffc700|H|h[Chunjo]|h|r", "|cFF000bff|H|h[Jinno]|h|r"};
    int len = snprintf(chatbuf_global, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    
    

    chatbuf_global must be declared b4 len

     

    In file included from char.cpp:25:
    shop_manager.h:40:7: warning: no newline at end of file
    In file included from char.cpp:62:
    PetSystem.h:163:31: warning: no newline at end of file
    char.cpp:7211: warning: this decimal constant is unsigned only in ISO C90
    compile char_change_empire.cpp
    compile char_horse.cpp
    In file included from char_battle.cpp:27:
    shop_manager.h:40:7: warning: no newline at end of file
    compile char_item.cpp
    compile char_manager.cpp
    In file included from char_horse.cpp:14:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile char_quickslot.cpp
    In file included from char_item.cpp:44:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from char_item.cpp:47:
    belt_inventory_helper.h:108:42: warning: no newline at end of file
    compile char_resist.cpp
    compile char_skill.cpp
    compile char_state.cpp
    compile PetSystem.cpp
    compile cmd.cpp
    compile cmd_emotion.cpp
    compile cmd_general.cpp
    In file included from char_state.cpp:25:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile cmd_gm.cpp
    compile cmd_oxevent.cpp
    compile config.cpp
    compile constants.cpp
    In file included from PetSystem.cpp:8:
    PetSystem.h:163:31: warning: no newline at end of file
    In file included from PetSystem.cpp:9:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    PetSystem.cpp:637:2: warning: no newline at end of file
    compile crc32.cpp
    compile cube.cpp
    char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
    char.cpp:3088: warning: comparison between signed and unsigned integer expressions
    In file included from cmd_general.cpp:36:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile db.cpp
    In file included from char_item.cpp:47:
    belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
    belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
    char_item.cpp:640: warning: comparison is always false due to limited range of data type
    char_item.cpp:666: warning: comparison is always false due to limited range of data type
    constants.cpp:276: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:277: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:278: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:279: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:280: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:281: warning: this decimal constant is unsigned only in ISO C90
    compile desc.cpp
    char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
    char_item.cpp:2387: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
    char_item.cpp:2391: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
    char_item.cpp:2403: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
    char_item.cpp:2407: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
    char_item.cpp:2434: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
    char_item.cpp:2442: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
    char_item.cpp:5090: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
    char_item.cpp:5162: warning: unused variable 'wDestCell'
    char_item.cpp:5163: warning: unused variable 'bDestInven'
    char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
    char_item.cpp:6167: warning: array subscript has type 'char'
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
    char_item.cpp:6231: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
    char_item.cpp:6243: warning: comparison between signed and unsigned integer expressions
    compile desc_client.cpp
    compile desc_manager.cpp
    PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
    PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
    PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
    PetSystem.cpp:552: warning: unused variable 'petVID'
    char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
    char_item.cpp:7429: warning: unused variable 'itemType'
    char_item.cpp:7430: warning: unused variable 'itemSubType'
    compile desc_p2p.cpp
    compile dev_log.cpp
    compile dungeon.cpp
    char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
    char_state.cpp:901: warning: unused variable 'rider'
    compile empire_text_convert.cpp
    desc_client.cpp: In member function 'void CLIENT_DESC::UpdateChannelStatus(DWORD, bool)':
    desc_client.cpp:299: warning: comparison between signed and unsigned integer expressions
    compile entity.cpp
    compile entity_view.cpp
    cube.cpp: In function 'bool Cube_make(CHARACTER*)':
    cube.cpp:544: warning: comparison between signed and unsigned integer expressions
    cube.cpp: In function 'void Cube_MakeCubeInformationText()':
    cube.cpp:716: warning: unused variable 'npcVNUM'
    cube.cpp: In function 'bool Cube_InformationInitialize()':
    cube.cpp:783: warning: comparison between signed and unsigned integer expressions
    cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:3935: warning: NULL used in arithmetic
    char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
    char_item.cpp:679: warning: control reaches end of non-void function
    compile event.cpp
    compile event_queue.cpp
    In file included from desc_manager.cpp:15:
    ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
    In file included from config.cpp:22:
    check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
    check_server.h:24: warning: comparison between signed and unsigned integer expressions
    config.cpp: In function 'void config_init(const std::string&)':
    config.cpp:442: warning: NULL used in arithmetic
    config.cpp:466: warning: NULL used in arithmetic
    config.cpp:490: warning: NULL used in arithmetic
    config.cpp:512: warning: unused variable 'line'
    compile exchange.cpp
    compile file_loader.cpp
    compile fishing.cpp
    compile gm.cpp
    compile guild.cpp
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
    char_item.cpp:6278: warning: 'pBuff' may be used uninitialized in this function
    cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:4357: warning: 'cell' may be used uninitialized in this function
    cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:3977: warning: 'n' may be used uninitialized in this function
    cmd_gm.cpp: In function 'void do_mob_ld(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:855: warning: 'x' may be used uninitialized in this function
    cmd_gm.cpp:855: warning: 'y' may be used uninitialized in this function
    compile guild_manager.cpp
    compile guild_war.cpp
    compile horse_rider.cpp
    compile horsename_manager.cpp
    compile input.cpp
    compile input_auth.cpp
    compile input_db.cpp
    compile input_login.cpp
    compile input_main.cpp
    compile input_p2p.cpp
    In file included from input_db.cpp:13:
    shop_manager.h:40:7: warning: no newline at end of file
    input_db.cpp:2722:2: warning: no newline at end of file
    compile input_teen.cpp
    compile input_udp.cpp
    compile ip_ban.cpp
    In file included from input_main.cpp:16:
    shop_manager.h:40:7: warning: no newline at end of file
    compile item.cpp
    In file included from item.cpp:22:
    belt_inventory_helper.h:108:42: warning: no newline at end of file
    In file included from item.cpp:23:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    item.cpp:2087:2: warning: no newline at end of file
    input_auth.cpp: In member function 'int CInputAuth::auth_OpenID(const char*, const char*, char*)':
    input_auth.cpp:467: warning: unused variable 'last'
    In file included from item.cpp:22:
    belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
    belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
    item.h: In constructor 'CItem::CItem(DWORD)':
    item.h:286: warning: 'CItem::m_pkRealTimeExpireEvent' will be initialized after
    item.h:283: warning:   'LPEVENT CItem::m_pkExpireEvent'
    item.cpp:25: warning:   when initialized here
    item.cpp: In function 'const bool CanPutIntoRing(CItem*, CItem*)':
    item.cpp:1728: warning: unused variable 'vnum'
    item.cpp: In member function 'bool CItem::CanPutInto(CItem*)':
    item.cpp:1761: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GiveMoreTime_Per(float)':
    item.cpp:2017: warning: comparison between signed and unsigned integer expressions
    item.cpp:2019: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GiveMoreTime_Fix(DWORD)':
    item.cpp:2041: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GetDuration()':
    item.cpp:2072: warning: array subscript has type 'char'
    compile item_addon.cpp
    compile item_attribute.cpp
    compile item_manager.cpp
    input_main.cpp: In member function 'int CInputMain::Chat(CHARACTER*, const char*, size_t)':
    input_main.cpp:750: error: expected primary-expression before 'p'
    input_main.cpp:752: error: 'p' was not declared in this scope
    input_main.cpp:748: warning: unused variable 'len'
    gmake: *** [OBJDIR/input_main.o] Error 1
    gmake: *** Waiting for unfinished jobs....
    In file included from item_manager.cpp:21:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    item_manager.cpp: In member function 'TItemTable* ITEM_MANAGER::GetTable(DWORD)':
    item_manager.cpp:604: warning: comparison between signed and unsigned integer expressions
    root@BddAdsa:/usr/src/mainline/Srcs/Server/game/src #
     
     
  2.  

    add it like this

    char chatbuf_global[CHAT_MAX_LEN + 1];
    int len = snprintf(chatbuf_global, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    
     
    input_main.cpp: In member function 'int CInputMain::Chat(CHARACTER*, const char*, size_t)':
    input_main.cpp:747: error: 'chatbuf_global' was not declared in this scope
    input_main.cpp:747: warning: unused variable 'len'
    compile mining.cpp
    compile mob_manager.cpp
    compile monarch.cpp
    gmake: *** [OBJDIR/input_main.o] Error 1
    gmake: *** Waiting for unfinished jobs....
     
    error..
     
    this code:
    static const char* colorbuf[]={"|cFFffa200|H|h[Team-Member]|h|r", "|cFFff0000|H|h[Shinsoo]|h|r", "|cFFffc700|H|h[Chunjo]|h|r", "|cFF000bff|H|h[Jinno]|h|r"};
    int len = snprintf(chatbuf_global, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    char chatbuf_global[CHAT_MAX_LEN + 1];
    

    747 linea:

    int len = snprintf(chatbuf_global, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);

  3. this is the definition in your old code

    char chatbuf_global[CHAT_MAX_LEN + 1];
    

    just do this :

    change

    int len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    

    to :

    int len = snprintf(chatbuf_global, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    

    and add this

    char chatbuf_global[CHAT_MAX_LEN + 1];
    

    above it

    where add?char chatbuf_global[CHAT_MAX_LEN + 1];

  4.  

     

    	static const char* colorbuf[]={"|cFFffa200|H|h[Team-Member]|h|r", "|cFFff0000|H|h[Shinsoo]|h|r", "|cFFffc700|H|h[Chunjo]|h|r", "|cFF000bff|H|h[Jinno]|h|r"};
    	int len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    

    they it

     

    change global chat code for your?

     

    me function change for this function?

     

    don`t compile:

     

    PetSystem.h:163:31: warning: no newline at end of file
    char.cpp:7211: warning: this decimal constant is unsigned only in ISO C90
    compile char_change_empire.cpp
    compile char_horse.cpp
    In file included from char_battle.cpp:27:
    shop_manager.h:40:7: warning: no newline at end of file
    compile char_item.cpp
    compile char_manager.cpp
    In file included from char_horse.cpp:14:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile char_quickslot.cpp
    In file included from char_item.cpp:44:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from char_item.cpp:47:
    belt_inventory_helper.h:108:42: warning: no newline at end of file
    compile char_resist.cpp
    compile char_skill.cpp
    compile char_state.cpp
    compile PetSystem.cpp
    compile cmd.cpp
    compile cmd_emotion.cpp
    compile cmd_general.cpp
    compile cmd_gm.cpp
    compile cmd_oxevent.cpp
    In file included from char_state.cpp:25:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile config.cpp
    In file included from cmd_general.cpp:36:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile constants.cpp
    In file included from PetSystem.cpp:8:
    PetSystem.h:163:31: warning: no newline at end of file
    In file included from PetSystem.cpp:9:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    PetSystem.cpp:637:2: warning: no newline at end of file
    char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
    char.cpp:3088: warning: comparison between signed and unsigned integer expressions
    compile crc32.cpp
    compile cube.cpp
    compile db.cpp
    compile desc.cpp
    constants.cpp:276: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:277: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:278: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:279: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:280: warning: this decimal constant is unsigned only in ISO C90
    constants.cpp:281: warning: this decimal constant is unsigned only in ISO C90
    compile desc_client.cpp
    compile desc_manager.cpp
    compile desc_p2p.cpp
    In file included from char_item.cpp:47:
    belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
    belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
    In file included from desc_manager.cpp:15:
    ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
    char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
    char_item.cpp:640: warning: comparison is always false due to limited range of data type
    char_item.cpp:666: warning: comparison is always false due to limited range of data type
    char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
    char_item.cpp:2387: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
    char_item.cpp:2391: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
    char_item.cpp:2403: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
    char_item.cpp:2407: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
    char_item.cpp:2434: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
    char_item.cpp:2442: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
    char_item.cpp:5090: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
    char_item.cpp:5162: warning: unused variable 'wDestCell'
    char_item.cpp:5163: warning: unused variable 'bDestInven'
    char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
    char_item.cpp:6167: warning: array subscript has type 'char'
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
    char_item.cpp:6231: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
    char_item.cpp:6243: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
    char_item.cpp:7429: warning: unused variable 'itemType'
    char_item.cpp:7430: warning: unused variable 'itemSubType'
    compile dev_log.cpp
    desc_client.cpp: In member function 'void CLIENT_DESC::UpdateChannelStatus(DWORD, bool)':
    desc_client.cpp:299: warning: comparison between signed and unsigned integer expressions
    cube.cpp: In function 'bool Cube_make(CHARACTER*)':
    cube.cpp:544: warning: comparison between signed and unsigned integer expressions
    cube.cpp: In function 'void Cube_MakeCubeInformationText()':
    cube.cpp:716: warning: unused variable 'npcVNUM'
    cube.cpp: In function 'bool Cube_InformationInitialize()':
    cube.cpp:783: warning: comparison between signed and unsigned integer expressions
    PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
    PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
    PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
    PetSystem.cpp:552: warning: unused variable 'petVID'
    compile dungeon.cpp
    compile empire_text_convert.cpp
    In file included from config.cpp:22:
    check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
    check_server.h:24: warning: comparison between signed and unsigned integer expressions
    config.cpp: In function 'void config_init(const std::string&)':
    config.cpp:442: warning: NULL used in arithmetic
    config.cpp:466: warning: NULL used in arithmetic
    config.cpp:490: warning: NULL used in arithmetic
    config.cpp:512: warning: unused variable 'line'
    char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
    char_state.cpp:901: warning: unused variable 'rider'
    compile entity.cpp
    char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
    char_item.cpp:679: warning: control reaches end of non-void function
    compile entity_view.cpp
    compile event.cpp
    cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:3935: warning: NULL used in arithmetic
    compile event_queue.cpp
    compile exchange.cpp
    compile file_loader.cpp
    compile fishing.cpp
    compile gm.cpp
    compile guild.cpp
    compile guild_manager.cpp
    compile guild_war.cpp
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
    char_item.cpp:6278: warning: 'pBuff' may be used uninitialized in this function
    cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:4357: warning: 'cell' may be used uninitialized in this function
    cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:3977: warning: 'n' may be used uninitialized in this function
    cmd_gm.cpp: In function 'void do_mob_ld(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:855: warning: 'x' may be used uninitialized in this function
    cmd_gm.cpp:855: warning: 'y' may be used uninitialized in this function
    compile horse_rider.cpp
    compile horsename_manager.cpp
    compile input.cpp
    compile input_auth.cpp
    compile input_db.cpp
    compile input_login.cpp
    compile input_main.cpp
    In file included from input_db.cpp:13:
    shop_manager.h:40:7: warning: no newline at end of file
    input_db.cpp:2722:2: warning: no newline at end of file
    compile input_p2p.cpp
    In file included from input_main.cpp:16:
    shop_manager.h:40:7: warning: no newline at end of file
    input_auth.cpp: In member function 'int CInputAuth::auth_OpenID(const char*, const char*, char*)':
    input_auth.cpp:467: warning: unused variable 'last'
    compile input_teen.cpp
    compile input_udp.cpp
    compile ip_ban.cpp
    compile item.cpp
    compile item_addon.cpp
    compile item_attribute.cpp
    compile item_manager.cpp
    compile item_manager_idrange.cpp
    compile locale.cpp
    In file included from item_manager.cpp:21:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from item.cpp:22:
    belt_inventory_helper.h:108:42: warning: no newline at end of file
    In file included from item.cpp:23:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    item.cpp:2087:2: warning: no newline at end of file
    input_main.cpp: In member function 'int CInputMain::Chat(CHARACTER*, const char*, size_t)':
    input_main.cpp:752: error: 'chatbuf_global' was not declared in this scope
    input_main.cpp:746: warning: unused variable 'len'
    compile locale_service.cpp
    compile log.cpp
    gmake: *** [OBJDIR/input_main.o] Error 1
    gmake: *** Waiting for unfinished jobs....
    item_manager.cpp: In member function 'TItemTable* ITEM_MANAGER::GetTable(DWORD)':
    item_manager.cpp:604: warning: comparison between signed and unsigned integer expressions
    In file included from item.cpp:22:
    belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
    belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
    item.h: In constructor 'CItem::CItem(DWORD)':
    item.h:286: warning: 'CItem::m_pkRealTimeExpireEvent' will be initialized after
    item.h:283: warning:   'LPEVENT CItem::m_pkExpireEvent'
    item.cpp:25: warning:   when initialized here
    item.cpp: In function 'const bool CanPutIntoRing(CItem*, CItem*)':
    item.cpp:1728: warning: unused variable 'vnum'
    item.cpp: In member function 'bool CItem::CanPutInto(CItem*)':
    item.cpp:1761: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GiveMoreTime_Per(float)':
    item.cpp:2017: warning: comparison between signed and unsigned integer expressions
    item.cpp:2019: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GiveMoreTime_Fix(DWORD)':
    item.cpp:2041: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GetDuration()':
    item.cpp:2072: warning: array subscript has type 'char'
    root@BddAdsa:/usr/src/mainline/Srcs/Server/game/src #
  5.  

    	static const char* colorbuf[]={"|cFFffa200|H|h[Team-Member]|h|r", "|cFFff0000|H|h[Shinsoo]|h|r", "|cFFffc700|H|h[Chunjo]|h|r", "|cFF000bff|H|h[Jinno]|h|r"};
    	int len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    

    they it

     

    change global chat code for your?

     

    me function change for this function?

  6. me code:

    const char* kingdoms[4] = {"|cFF47DA00|H|h[admin]|cFFA7FFD4|H|h","|cFFff0000|H|h[Shinsoo]|cFFA7FFD4|H|h","|cFFFFFF00|H|h[Chunjo]|cFFA7FFD4|H|h","|cFF0080FF|H|h[Jinno]|cFFA7FFD4|H|h"};
            char chatbuf_global[CHAT_MAX_LEN + 1];
            int my_level = ch->GetLevel();
            if (gSpecialShout == 1)
            {
                if (ch->GetGMLevel() != GM_PLAYER)
                {
                    if (MasterGhostChat == 1)
                    {
                        int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s : %s",kingdoms[0], buf);
                    }
                    else
                    {
                        if ((MasterColorEmpire == 1) and (MasterLevelChat == 0))
                        {
                            int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s %s : %s",ch->GetName(), kingdoms[ch->GetEmpire()], buf);
                        }
                        else if ((MasterColorEmpire == 1) and (MasterLevelChat == 1))
                        {
                            int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s %s [%d] : %s",ch->GetName(), kingdoms[ch->GetEmpire()], my_level, buf);
                        }
                        else if ((MasterColorEmpire == 0) and (MasterLevelChat == 1))
                        {
                            int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s [%d] : %s",ch->GetName(), my_level, buf);
                        }
                        else
                        {
                            int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s : %s",ch->GetName(), buf);
                        }
                    }
                }
                else
                {
                    if ((PlayerColorEmpire == 1) and (PlayerLevelChat == 0))
                    {
                        int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s %s : %s",ch->GetName(), kingdoms[ch->GetEmpire()], buf);
                    }
                    else if ((PlayerColorEmpire == 1) and (PlayerLevelChat == 1))
                    {
                        int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s %s [%d] : %s",ch->GetName(), kingdoms[ch->GetEmpire()], my_level, buf);
                    }
                    else if ((PlayerColorEmpire == 0) and (PlayerLevelChat == 1))
                    {
                        int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s [%d] : %s",ch->GetName(), my_level, buf);
                    }
                    else
                    {
                        int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s : %s",ch->GetName(), buf);
                    }
                }
            }
            else
            {
                int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s : %s",ch->GetName(), buf);
            }
    
  7. 	static const char* colorbuf[]={"|cFFffa200|H|h[Team-Member]|h|r", "|cFFff0000|H|h[Shinsoo]|h|r", "|cFFffc700|H|h[Chunjo]|h|r", "|cFF000bff|H|h[Jinno]|h|r"};
    	int len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    

    they it

     

    change global chat code for your?

  8. 0302 20:16:06292 :: CPythonSkill::RegisterSkillTable(locale/pl/SkillTable.txt) - NOT EXIST SkillDesc [Vnum:158 Line:56]
    0302 20:16:06292 :: CPythonSkill::RegisterSkillTable(locale/pl/SkillTable.txt) - NOT EXIST SkillDesc [Vnum:159 Line:57]
    0302 20:16:06293 :: CPythonSkill::RegisterSkillTable(locale/pl/SkillTable.txt) - NOT EXIST SkillDesc [Vnum:160 Line:58]
    0302 20:16:06293 :: CPythonSkill::RegisterSkillTable(locale/pl/SkillTable.txt) - NOT EXIST SkillDesc [Vnum:161 Line:59]
    0302 20:16:06293 :: CPythonSkill::RegisterSkillTable(locale/pl/SkillTable.txt) - NOT EXIST SkillDesc [Vnum:162 Line:60]
    0302 20:16:06293 :: CPythonSkill::RegisterSkillTable(locale/pl/SkillTable.txt) - NOT EXIST SkillDesc [Vnum:256 Line:61]
    0302 20:16:06293 :: CPythonSkill::RegisterSkillTable(locale/pl/SkillTable.txt) - NOT EXIST SkillDesc [Vnum:257 Line:62]
    0302 20:16:06293 :: CPythonSkill::RegisterSkillTable(locale/pl/SkillTable.txt) - NOT EXIST SkillDesc [Vnum:258 Line:63]
    0302 20:16:06293 :: CPythonSkill::RegisterSkillTable(locale/pl/SkillTable.txt) - NOT EXIST SkillDesc [Vnum:259 Line:64]
    0302 20:16:06293 :: CPythonSkill::RegisterSkillTable(locale/pl/SkillTable.txt) - NOT EXIST SkillDesc [Vnum:260 Line:65]
    0302 20:16:06294 :: CPythonSkill::RegisterSkillTable(locale/pl/SkillTable.txt) - NOT EXIST SkillDesc [Vnum:261 Line:66]
    0302 20:16:06294 :: CPythonSkill::RegisterSkillTable(locale/pl/SkillTable.txt) - NOT EXIST SkillDesc [Vnum:262 Line:67]
    0302 20:16:06294 :: CPythonSkill::RegisterSkillTable(locale/pl/SkillTable.txt) - NOT EXIST SkillDesc [Vnum:6 Line:77]
    0302 20:16:06294 :: CPythonSkill::RegisterSkillTable(locale/pl/SkillTable.txt) - NOT EXIST SkillDesc [Vnum:21 Line:78]
    replace skilldescskilltable.txt
     
    and for other error.. check your pcpc2effect maybe replace with other
    • Love 1
  9.  

     

    You use this?

     

     

    This is bugged on stack item

    yes this.. but how fix stack?

     

     

    bool CClientManager::InitializeItemTable()
    {
        char query[4096];
        snprintf(query, sizeof(query),
            "SELECT vnum, vnum_range, name, %s, type, subtype, gold, shop_buy_price, weight, size, flag, wearflag, "
            "antiflag, immuneflag+0, refined_vnum, refine_set, magic_pct, socket_pct, addon_type, "
            "limittype0, limitvalue0, limittype1, limitvalue1, "
            "applytype0, applyvalue0, applytype1, applyvalue1, applytype2, applyvalue2, "
            "value0, value1, value2, value3, value4, value5 "
            "FROM item_proto%s ORDER BY vnum",
            g_stLocaleNameColumn.c_str(), GetTablePostfix());
    
    
        std::auto_ptr<SQLMsg> pkMsg(CDBManager::instance().DirectQuery(query));
        SQLResult * pRes = pkMsg->Get();
    
    
        if (!pRes->uiNumRows)
        {
            sys_err("Could not load item_proto. No results!");
            return false;
        }
    
    
        sys_log(0, "ITEM_PROTO loading...");
    
    
        if (!m_vec_itemTable.empty())
        {
            sys_log(0, "RELOAD: item_proto");
            m_vec_itemTable.clear();
            m_map_itemTableByVnum.clear();
        }
    
    
        m_vec_itemTable.resize(pRes->uiNumRows);
        memset(&m_vec_itemTable[0], 0, sizeof(TItemTable) * m_vec_itemTable.size());
        TItemTable * item_table = &m_vec_itemTable[0];
    
    
        MYSQL_ROW data;
        int col;
    
    
        while ((data = mysql_fetch_row(pRes->pSQLResult)))
        {
            col = 0;
    
    
            str_to_number(item_table->dwVnum, data[col++]);
            str_to_number(item_table->dwVnumRange, data[col++]);
            strlcpy(item_table->szName, data[col++], sizeof(item_table->szName));
            strlcpy(item_table->szLocaleName, data[col++], sizeof(item_table->szLocaleName));
            str_to_number(item_table->bType, data[col++]);
            str_to_number(item_table->bSubType, data[col++]);
            str_to_number(item_table->dwGold, data[col++]);
            str_to_number(item_table->dwShopBuyPrice, data[col++]);
            str_to_number(item_table->bWeight, data[col++]);
            str_to_number(item_table->bSize, data[col++]);
            str_to_number(item_table->dwFlags, data[col++]);
            str_to_number(item_table->dwWearFlags, data[col++]);
            str_to_number(item_table->dwAntiFlags, data[col++]);
            str_to_number(item_table->dwImmuneFlag, data[col++]);
            str_to_number(item_table->dwRefinedVnum, data[col++]);
            str_to_number(item_table->wRefineSet, data[col++]);
            str_to_number(item_table->bAlterToMagicItemPct, data[col++]);
            str_to_number(item_table->bGainSocketPct, data[col++]);
            str_to_number(item_table->sAddonType, data[col++]);
    
    
            item_table->cLimitRealTimeFirstUseIndex = -1;
            item_table->cLimitTimerBasedOnWearIndex = -1;
    
    
            int i;
            for (i = 0; i < ITEM_LIMIT_MAX_NUM; ++i)
            {
                str_to_number(item_table->aLimits[i].bType, data[col++]);
                str_to_number(item_table->aLimits[i].lValue, data[col++]);
    
    
                if (LIMIT_REAL_TIME_START_FIRST_USE == item_table->aLimits[i].bType)
                    item_table->cLimitRealTimeFirstUseIndex = (char)i;
    
    
                if (LIMIT_TIMER_BASED_ON_WEAR == item_table->aLimits[i].bType)
                    item_table->cLimitTimerBasedOnWearIndex = (char)i;
            }
    
    
            for (i = 0; i < ITEM_APPLY_MAX_NUM; ++i)
            {
                str_to_number(item_table->aApplies[i].bType, data[col++]);
                str_to_number(item_table->aApplies[i].lValue, data[col++]);
            }
    
    
            for (i = 0; i < ITEM_VALUES_MAX_NUM; ++i)
                str_to_number(item_table->alValues[i], data[col++]);
    
    
            sys_log(1, "ITEM: #%-5lu %-24s %-24s VAL: %ld %ld %ld %ld %ld %ld WEAR %lu ANTI %lu IMMUNE %lu REFINE %lu REFINE_SET %u MAGIC_PCT %u",
                    item_table->dwVnum,item_table->szName,item_table->szLocaleName,
                    item_table->alValues[0],item_table->alValues[1],item_table->alValues[2],
                    item_table->alValues[3],item_table->alValues[4],item_table->alValues[5],
                    item_table->dwWearFlags,item_table->dwAntiFlags,item_table->dwImmuneFlag,
                    item_table->dwRefinedVnum,item_table->wRefineSet,item_table->bAlterToMagicItemPct);
    
    
            m_map_itemTableByVnum.insert(std::map<DWORD, TItemTable *>::value_type(item_table->dwVnum, item_table));
            ++item_table;
        }
    
    
        sort(m_vec_itemTable.begin(), m_vec_itemTable.end(), FCompareVnum());
        sys_log(0, "CClientManager::InitializeMobTable:: %d items loaded.n", m_vec_itemTable.size());
        return true;
    }

     

    with your code i haven`t connect with server..item proto don`t load

  10. you can fix it on me function?

    bool CClientManager::InitializeItemTable()

    {

    /* I needed to make 2 mysql queries because with only 1 there was always a stackoverflow....

      * However^^ It works so idc :)

    */

    const char * c_ist_doof = "SELECT refined_vnum, refine_set, magic_pct FROM item_proto ORDER BY vnum";

    SQLMsg* sqlMsg1 = CDBManager::instance().DirectQuery(c_ist_doof);

     

    const char * query = "SELECT vnum, name, locale_name, type, subtype, weight, size, antiflag+0,"

    "flag+0, wearflag+0, immuneflag+0, gold, shop_buy_price, refined_vnum,"

    "refine_set, magic_pct, limittype0, limitvalue0, limittype1, limitvalue1,"

    "applytype0, applyvalue0, applytype1, applyvalue1, applytype2, applyvalue2,"

    "value0, value1, value2, value3, value4, value5, socket0, socket1, socket2,"

    "socket3, socket4, socket5, specular, socket_pct, addon_type FROM item_proto ORDER BY vnum";

    SQLMsg* sqlMsg = CDBManager::instance().DirectQuery(query);

     

    MYSQL_RES* pRes1 = sqlMsg1->vec_pkResult[0]->pSQLResult;

    MYSQL_RES* pRes = sqlMsg->vec_pkResult[0]->pSQLResult;

    if (sizeof(pRes) <= 1 || sizeof(pRes1) <= 1)

    {

      sys_err("Kein Ergebnis aus Item_Proto!");

      return false;

    }

    if (!m_vec_itemTable.empty()) {

      sys_log(0, "Reloading Item_Proto");

      m_vec_itemTable.clear();

    }

    MYSQL_ROW data;

    MYSQL_ROW data1;

    while ((data = mysql_fetch_row(pRes)) && (data1 = mysql_fetch_row(pRes1)))

    {

      TItemTable t;

      TItemTable baum;

     

      str_to_number(baum.dwRefinedVnum, data1[0]);

      str_to_number(baum.wRefineSet, data1[1]);

      str_to_number(baum.bAlterToMagicItemPct, data1[2]);

     

      str_to_number(t.dwVnum, data[0]);  

      strlcpy(t.szName, data[1], sizeof(t.szName));

      strlcpy(t.szLocaleName, data[2], sizeof(t.szLocaleName));

      str_to_number(t.bType, data[3]);

      str_to_number(t.bSubType, data[4]);

      str_to_number(t.bWeight, data[5]);

      str_to_number(t.bSize, data[6]);

      str_to_number(t.dwAntiFlags, data[7]);

      str_to_number(t.dwFlags, data[8]);

      str_to_number(t.dwWearFlags, data[9]);

      str_to_number(t.dwImmuneFlag, data[10]);

      str_to_number(t.dwGold, data[11]);

      str_to_number(t.dwShopBuyPrice,data[12]);

      str_to_number(t.aLimits[0].bType, data[16]);

      str_to_number(t.aLimits[0].lValue, data[17]);

      str_to_number(t.aLimits[1].bType, data[18]);

      str_to_number(t.aLimits[1].lValue, data[19]);

      str_to_number(t.aApplies[0].bType, data[20]);

      str_to_number(t.aApplies[0].lValue, data[21]);

      str_to_number(t.aApplies[1].bType, data[22]);

      str_to_number(t.aApplies[1].lValue, data[23]);

      str_to_number(t.aApplies[2].bType, data[24]);

      str_to_number(t.aApplies[2].lValue, data[25]);

      str_to_number(t.alValues[0], data[26]);

      str_to_number(t.alValues[1], data[27]);

      str_to_number(t.alValues[2], data[28]);

      str_to_number(t.alValues[3], data[29]);

      str_to_number(t.alValues[4], data[30]);

      str_to_number(t.alValues[5], data[31]);

      str_to_number(t.alSockets[0], data[32]);

      str_to_number(t.alSockets[1], data[33]);

      str_to_number(t.alSockets[2], data[34]);

      str_to_number(t.alSockets[3], data[35]);

      str_to_number(t.alSockets[4], data[36]);

      str_to_number(t.alSockets[5], data[37]);

      str_to_number(t.bSpecular, data[38]);

      str_to_number(t.bGainSocketPct, data[39]);

      str_to_number(t.sAddonType, data[40]); 

      t.cLimitRealTimeFirstUseIndex = -1;

      t.cLimitTimerBasedOnWearIndex = -1;

      for (int i = 0; i < ITEM_LIMIT_MAX_NUM; ++i) {

       if (LIMIT_REAL_TIME_START_FIRST_USE == t.aLimits.bType)

        t.cLimitRealTimeFirstUseIndex = (char) i;

       if (LIMIT_TIMER_BASED_ON_WEAR == t.aLimits.bType)

       t.cLimitTimerBasedOnWearIndex = (char) i;

      }

     

      // Conversion

      t.dwRefinedVnum = baum.dwRefinedVnum;

      t.wRefineSet = baum.wRefineSet;

      t.bAlterToMagicItemPct = baum.bAlterToMagicItemPct;

       

      //Debug

      //sys_log(0,"%d %d %d",t.dwRefinedVnum, t.wRefineSet, t.bAlterToMagicItemPct);

      //sys_log(0,"%d %d %d",baum.dwRefinedVnum, baum.wRefineSet, baum.bAlterToMagicItemPct);

     

      m_vec_itemTable.push_back(t);

    }  

    m_map_itemTableByVnum.clear();

    __gnu_cxx::__normal_iterator<SItemTable*, std::vector<SItemTable, std::allocator<SItemTable> > > it = m_vec_itemTable.begin();

    while (it != m_vec_itemTable.end())

    {

      TItemTable * item_table = &(*(it++));

      sys_log(0,"Item %s geladen", item_table->szLocaleName); 

      m_map_itemTableByVnum.insert(std::map<DWORD, TItemTable *>::value_type(item_table->dwVnum, item_table));

    }

    sort(m_vec_itemTable.begin(), m_vec_itemTable.end(), FCompareVnum());

    return true;

    }

  11.  

     

    You use this?

     

     

    This is bugged on stack item

    yes this.. but how fix stack?

     

     

    bool CClientManager::InitializeItemTable()
    {
        char query[4096];
        snprintf(query, sizeof(query),
            "SELECT vnum, vnum_range, name, %s, type, subtype, gold, shop_buy_price, weight, size, flag, wearflag, "
            "antiflag, immuneflag+0, refined_vnum, refine_set, magic_pct, socket_pct, addon_type, "
            "limittype0, limitvalue0, limittype1, limitvalue1, "
            "applytype0, applyvalue0, applytype1, applyvalue1, applytype2, applyvalue2, "
            "value0, value1, value2, value3, value4, value5 "
            "FROM item_proto%s ORDER BY vnum",
            g_stLocaleNameColumn.c_str(), GetTablePostfix());
    
    
        std::auto_ptr<SQLMsg> pkMsg(CDBManager::instance().DirectQuery(query));
        SQLResult * pRes = pkMsg->Get();
    
    
        if (!pRes->uiNumRows)
        {
            sys_err("Could not load item_proto. No results!");
            return false;
        }
    
    
        sys_log(0, "ITEM_PROTO loading...");
    
    
        if (!m_vec_itemTable.empty())
        {
            sys_log(0, "RELOAD: item_proto");
            m_vec_itemTable.clear();
            m_map_itemTableByVnum.clear();
        }
    
    
        m_vec_itemTable.resize(pRes->uiNumRows);
        memset(&m_vec_itemTable[0], 0, sizeof(TItemTable) * m_vec_itemTable.size());
        TItemTable * item_table = &m_vec_itemTable[0];
    
    
        MYSQL_ROW data;
        int col;
    
    
        while ((data = mysql_fetch_row(pRes->pSQLResult)))
        {
            col = 0;
    
    
            str_to_number(item_table->dwVnum, data[col++]);
            str_to_number(item_table->dwVnumRange, data[col++]);
            strlcpy(item_table->szName, data[col++], sizeof(item_table->szName));
            strlcpy(item_table->szLocaleName, data[col++], sizeof(item_table->szLocaleName));
            str_to_number(item_table->bType, data[col++]);
            str_to_number(item_table->bSubType, data[col++]);
            str_to_number(item_table->dwGold, data[col++]);
            str_to_number(item_table->dwShopBuyPrice, data[col++]);
            str_to_number(item_table->bWeight, data[col++]);
            str_to_number(item_table->bSize, data[col++]);
            str_to_number(item_table->dwFlags, data[col++]);
            str_to_number(item_table->dwWearFlags, data[col++]);
            str_to_number(item_table->dwAntiFlags, data[col++]);
            str_to_number(item_table->dwImmuneFlag, data[col++]);
            str_to_number(item_table->dwRefinedVnum, data[col++]);
            str_to_number(item_table->wRefineSet, data[col++]);
            str_to_number(item_table->bAlterToMagicItemPct, data[col++]);
            str_to_number(item_table->bGainSocketPct, data[col++]);
            str_to_number(item_table->sAddonType, data[col++]);
    
    
            item_table->cLimitRealTimeFirstUseIndex = -1;
            item_table->cLimitTimerBasedOnWearIndex = -1;
    
    
            int i;
            for (i = 0; i < ITEM_LIMIT_MAX_NUM; ++i)
            {
                str_to_number(item_table->aLimits[i].bType, data[col++]);
                str_to_number(item_table->aLimits[i].lValue, data[col++]);
    
    
                if (LIMIT_REAL_TIME_START_FIRST_USE == item_table->aLimits[i].bType)
                    item_table->cLimitRealTimeFirstUseIndex = (char)i;
    
    
                if (LIMIT_TIMER_BASED_ON_WEAR == item_table->aLimits[i].bType)
                    item_table->cLimitTimerBasedOnWearIndex = (char)i;
            }
    
    
            for (i = 0; i < ITEM_APPLY_MAX_NUM; ++i)
            {
                str_to_number(item_table->aApplies[i].bType, data[col++]);
                str_to_number(item_table->aApplies[i].lValue, data[col++]);
            }
    
    
            for (i = 0; i < ITEM_VALUES_MAX_NUM; ++i)
                str_to_number(item_table->alValues[i], data[col++]);
    
    
            sys_log(1, "ITEM: #%-5lu %-24s %-24s VAL: %ld %ld %ld %ld %ld %ld WEAR %lu ANTI %lu IMMUNE %lu REFINE %lu REFINE_SET %u MAGIC_PCT %u",
                    item_table->dwVnum,item_table->szName,item_table->szLocaleName,
                    item_table->alValues[0],item_table->alValues[1],item_table->alValues[2],
                    item_table->alValues[3],item_table->alValues[4],item_table->alValues[5],
                    item_table->dwWearFlags,item_table->dwAntiFlags,item_table->dwImmuneFlag,
                    item_table->dwRefinedVnum,item_table->wRefineSet,item_table->bAlterToMagicItemPct);
    
    
            m_map_itemTableByVnum.insert(std::map<DWORD, TItemTable *>::value_type(item_table->dwVnum, item_table));
            ++item_table;
        }
    
    
        sort(m_vec_itemTable.begin(), m_vec_itemTable.end(), FCompareVnum());
        sys_log(0, "CClientManager::InitializeMobTable:: %d items loaded.n", m_vec_itemTable.size());
        return true;
    }

     

    this without txt db?

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