Jump to content

Evler.

Inactive Member
  • Posts

    8
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Evler.

  1. Hello. I have a problem with the command:

    xmas_snow 0/1

    It works like this, that turns on the music and Christmas snowing. When we do relog, I just do not snowing or work muzyczka. Exactly as if something could not save this state. In syserr client pops up:

    Unknown Server Command xmas_snow 1 | xmas_snow

    Somebody help me, I can not fix it and I really want this. I will be grateful. 

    Ps. Sorry my bad english.

  2. 19 minutes ago, Syreldar said:

    Inside ori_to_new_table.txt, you must've got values like these ones:

    25041    39001
    70005    39002
    70020    39003
    70024    39004

    They're the original items' vnums, together with the corrispective new items, the ones with the "b" sign, like this one:Compass_for_Metin_Stones_B.png

    25041 is the original Magic Stone, while 39001 is the Magic Stone with the "b" sign.

    70005 is the original Experience Ring, while 39002 is the Experience Ring with the "b" sign

    etc.

     

    Thank you for the help topic you can be closed. I got a decent explanation! :)

  3. Hello, I have a problem. It would be nice if you would help me.  Pictures guild do not work. The server side is good, the dimensions of the image too. When I select the image:

    .png

    No one wants to help, you're my last hope. :( If you decide to help thank you in advance.     :) 

    MAINLINE_SG + SOURCE BIN TERENZO.

    Sorry my bad english, i'm not english man. :(

  4. if you compled your own game

     

     

    Open ClientManagerPlayer.cpp from your db source and find this piece of code:

    
            snprintf(queryStr, sizeof(queryStr), "INSERT INTO player%s_deleted SELECT * FROM player%s WHERE id=%d",
                    GetTablePostfix(), GetTablePostfix(), pi->player_id);
            std::auto_ptr<SQLMsg> pIns(CDBManager::instance().DirectQuery(queryStr));
    
    
            if (pIns->Get()->uiAffectedRows == 0 || pIns->Get()->uiAffectedRows == (uint32_t)-1)
            {
                sys_log(0, "PLAYER_DELETE FAILED %u CANNOT INSERT TO player%s_deleted", dwPID, GetTablePostfix());
    
    
                peer->EncodeHeader(HEADER_DG_PLAYER_DELETE_FAILED, pi->dwHandle, 1);
                peer->EncodeBYTE(pi->account_index);
                return;
            }

    and replace it to this(If you want to improve it you could make the deleted character data go to player_deleted,because I removed it here):

     
            snprintf(queryStr, sizeof(queryStr), "SELECT * FROM player%s WHERE id=%d",
    
                    GetTablePostfix(), pi->player_id);
            std::auto_ptr<SQLMsg> pIns(CDBManager::instance().DirectQuery(queryStr));
    
    
            if (pIns->Get()->uiNumRows == 0)
            {
                sys_log(0, "PLAYER_DELETE FAILED %u CANNOT INSERT TO player%s_deleted", dwPID, GetTablePostfix());
    
    
                peer->EncodeHeader(HEADER_DG_PLAYER_DELETE_FAILED, pi->dwHandle, 1);
                peer->EncodeBYTE(pi->account_index);
                return;
    
            }

    The character delete was actually bugged in the mainline (I don't know for the other branches).

    this was Written by Denis

    The deleted character does not get to the table player_deleted. :(

  5. Help me :( :

    In file included from char_horse.cpp:14:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    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
    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'
    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
    In file included from config.cpp:23:
    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:435: warning: NULL used in arithmetic
    config.cpp:459: warning: NULL used in arithmetic
    config.cpp:483: warning: NULL used in arithmetic
    config.cpp:505: warning: unused variable 'line'
    In file included from desc_manager.cpp:15:
    ClientPackageCryptInfo.h:117:41: 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'
    constants.cpp:1528: error: too many initializers for 'const int [301]'
    gmake: *** [OBJDIR/constants.o] Bł±d 1
    gmake: *** Oczekiwanie na niezakończone zadania....
    In file included from desc_client.cpp:14:
    party.h:171: error: 'int CParty::GetMemberMaxLevel()' cannot be overloaded
    party.h:170: error: with 'int CParty::GetMemberMaxLevel()'
    desc_client.cpp: In member function 'void CLIENT_DESC::UpdateChannelStatus(DWORD, bool)':
    desc_client.cpp:299: warning: comparison between signed and unsigned integer expressions
    gmake: *** [OBJDIR/desc_client.o] Bł±d 1
    In file included from char_state.cpp:25:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from char_state.cpp:11:
    party.h:171: error: 'int CParty::GetMemberMaxLevel()' cannot be overloaded
    party.h:170: error: with 'int CParty::GetMemberMaxLevel()'
    char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
    char_state.cpp:901: warning: unused variable 'rider'
    gmake: *** [OBJDIR/char_state.o] Bł±d 1
    In file included from char_manager.cpp:9:
    party.h:171: error: 'int CParty::GetMemberMaxLevel()' cannot be overloaded
    party.h:170: error: with 'int CParty::GetMemberMaxLevel()'
    gmake: *** [OBJDIR/char_manager.o] Bł±d 1
    In file included from char_skill.cpp:19:
    party.h:171: error: 'int CParty::GetMemberMaxLevel()' cannot be overloaded
    party.h:170: error: with 'int CParty::GetMemberMaxLevel()'
    gmake: *** [OBJDIR/char_skill.o] Bł±d 1
    In file included from cmd_general.cpp:36:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from cmd_general.cpp:20:
    party.h:171: error: 'int CParty::GetMemberMaxLevel()' cannot be overloaded
    party.h:170: error: with 'int CParty::GetMemberMaxLevel()'
    gmake: *** [OBJDIR/cmd_general.o] Bł±d 1
    In file included from dungeon.cpp:6:
    party.h:171: error: 'int CParty::GetMemberMaxLevel()' cannot be overloaded
    party.h:170: error: with 'int CParty::GetMemberMaxLevel()'
    gmake: *** [OBJDIR/dungeon.o] Bł±d 1
    In file included from char.cpp:4:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    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:7215:2: warning: no newline at end of file
    char.cpp:7207: warning: this decimal constant is unsigned only in ISO C90
    In file included from char.cpp:30:
    party.h:171: error: 'int CParty::GetMemberMaxLevel()' cannot be overloaded
    party.h:170: error: with 'int CParty::GetMemberMaxLevel()'
    char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
    char.cpp:3088: warning: comparison between signed and unsigned integer expressions
    gmake: *** [OBJDIR/char.o] Bł±d 1
    In file included from input_login.cpp:19:
    party.h:171: error: 'int CParty::GetMemberMaxLevel()' cannot be overloaded
    party.h:170: error: with 'int CParty::GetMemberMaxLevel()'
    gmake: *** [OBJDIR/input_login.o] Bł±d 1
    In file included from char_battle.cpp:27:
    shop_manager.h:40:7: warning: no newline at end of file
    In file included from char_battle.cpp:34:
    party.h:171: error: 'int CParty::GetMemberMaxLevel()' cannot be overloaded
    party.h:170: error: with 'int CParty::GetMemberMaxLevel()'
    gmake: *** [OBJDIR/char_battle.o] Bł±d 1
    In file included from input_p2p.cpp:12:
    party.h:171: error: 'int CParty::GetMemberMaxLevel()' cannot be overloaded
    party.h:170: error: with 'int CParty::GetMemberMaxLevel()'
    gmake: *** [OBJDIR/input_p2p.o] Bł±d 1
    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
    char_item.cpp:7541:2: warning: no newline at end of file
    In file included from char_item.cpp:25:
    party.h:171: error: 'int CParty::GetMemberMaxLevel()' cannot be overloaded
    party.h:170: error: with 'int CParty::GetMemberMaxLevel()'
    In file included from char_item.cpp:48:
    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
    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:5087: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
    char_item.cpp:5159: warning: unused variable 'wDestCell'
    char_item.cpp:5160: warning: unused variable 'bDestInven'
    char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
    char_item.cpp:6160: warning: array subscript has type 'char'
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
    char_item.cpp:6224: warning: comparison between signed and unsigned integer expressions
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
    char_item.cpp:6236: 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:7422: warning: unused variable 'itemType'
    char_item.cpp:7423: warning: unused variable 'itemSubType'
    gmake: *** [OBJDIR/char_item.o] Bł±d 1
    In file included from cmd_gm.cpp:30:
    party.h:171: error: 'int CParty::GetMemberMaxLevel()' cannot be overloaded
    party.h:170: error: with 'int CParty::GetMemberMaxLevel()'
    cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
    cmd_gm.cpp:3935: warning: NULL used in arithmetic
    gmake: *** [OBJDIR/cmd_gm.o] Bł±d 1
    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
    In file included from input_db.cpp:22:
    party.h:171: error: 'int CParty::GetMemberMaxLevel()' cannot be overloaded
    party.h:170: error: with 'int CParty::GetMemberMaxLevel()'
    gmake: *** [OBJDIR/input_db.o] Bł±d 1
    In file included from input_main.cpp:16:
    shop_manager.h:40:7: warning: no newline at end of file
    In file included from input_main.cpp:25:
    party.h:171: error: 'int CParty::GetMemberMaxLevel()' cannot be overloaded
    party.h:170: error: with 'int CParty::GetMemberMaxLevel()'
    gmake: *** [OBJDIR/input_main.o] Bł±d 1
    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:2084:2: warning: no newline at end of file
    In file included from item.cpp:23:
    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:1725: warning: unused variable 'vnum'
    item.cpp: In member function 'bool CItem::CanPutInto(CItem*)':
    item.cpp:1758: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GiveMoreTime_Per(float)':
    item.cpp:2014: warning: comparison between signed and unsigned integer expressions
    item.cpp:2016: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GiveMoreTime_Fix(DWORD)':
    item.cpp:2038: warning: comparison between signed and unsigned integer expressions
    item.cpp: In member function 'int CItem::GetDuration()':
    item.cpp:2069: warning: array subscript has type 'char'
    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
    

    15kowl.jpg

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