Jump to content

ladcatalin

Inactive Member
  • Posts

    36
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by ladcatalin

  1. For offline shop:

    offlineshop_manager.cpp

    search: void COfflineShopManager::Buy(LPCHARACTER ch, BYTE pos)

    and after     LPOFFLINESHOP pkOfflineShop = ch->GetOfflineShop();

    add:

    	if (ch->IsGM())
        {
            ch->ChatPacket(CHAT_TYPE_INFO, "GameMasters cannot buy items from players' shops.");
            return;
        }
    	
    • Love 2
  2. Hi. After i make a offline shop on my server, when i try to open it (by click), it disapear and i recive this error in syserr:

    	SYSERR: Aug 17 20:49:52 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'applytype0' in 'field list'
    query: SELECT pos,count,vnum,price,socket0,socket1,socket2, attrtype0, attrvalue0, attrtype1, attrvalue1, attrtype2, attrvalue2, attrtype3, attrvalue3, attrtype4, attrvalue4, attrtype5, attrvalue5, attrtype6, attrvalue6, applytype0, applyvalue0, applytype1, applyvalue1, applytype2, applyvalue2, applytype3, applyvalue3, applytype4, applyvalue4, applytype5, applyvalue5, applytype6, applyvalue6, applytype7, applyvalue7 FROM offline_shop_item WHERE owner_id = 1183
    	

  3. 18 hours ago, ladcatalin said:

    Hello. I tried to install offline shop system on my server and when i tried to compile binary i had 4 errors:

     

    
    
    Error    297    error C2065: 'SHOP_SUBHEADER_GC_CHECK_RESULT' : undeclared identifier    e:\Sursa server\SursaLauncher BUNA\UserInterface\PythonNetworkStreamPhaseGame.cpp    4325    UserInterface
    Error    298    error C2051: case expression not constant    e:\Sursa server\SursaLauncher BUNA\UserInterface\PythonNetworkStreamPhaseGame.cpp    4325    UserInterface

     

    Solved ^^^

    I added in 

    enum EPacketShopSubHeaders

    from

    Packet.h

    this: 

        SHOP_SUBHEADER_GC_CHECK_RESULT,

  4. Error    295    error C2653: 'CPythonPlayer' : is not a class or namespace name    e:\Sursa server\SursaLauncher BUNA\UserInterface\PythonNetworkStreamPhaseGameItem.cpp    897    UserInterface
    Error    296    error C2039: 'HasOfflineShop' : is not a member of 'CPythonNetworkStream'    e:\Sursa server\SursaLauncher BUNA\UserInterface\PythonNetworkStreamPhaseGameItem.cpp    897    UserInterface

    I solved this ^. 

    I added 

    #include PythonPlayer.h in PythonNetworkStreamPhaseGameItem.cpp header.

     

    But i cant fix 3rd and 4th error...

  5. Hello. I tried to install offline shop system on my server and when i tried to compile binary i had 4 errors:

    	Error    295    error C2653: 'CPythonPlayer' : is not a class or namespace name    e:\Sursa server\SursaLauncher BUNA\UserInterface\PythonNetworkStreamPhaseGameItem.cpp    897    UserInterface
    Error    296    error C2039: 'HasOfflineShop' : is not a member of 'CPythonNetworkStream'    e:\Sursa server\SursaLauncher BUNA\UserInterface\PythonNetworkStreamPhaseGameItem.cpp    897    UserInterface
    Error    297    error C2065: 'SHOP_SUBHEADER_GC_CHECK_RESULT' : undeclared identifier    e:\Sursa server\SursaLauncher BUNA\UserInterface\PythonNetworkStreamPhaseGame.cpp    4325    UserInterface
    Error    298    error C2051: case expression not constant    e:\Sursa server\SursaLauncher BUNA\UserInterface\PythonNetworkStreamPhaseGame.cpp    4325    UserInterface
    

  6. This looks very good, but i have a error when i try to compile binary source:

    	Error    1    fatal error C1083: Cannot open include file: 'boost/property_tree/ptree.hpp': No such file or directory    e:\Sursa server\SursaLauncher BUNA\UserInterface\PythonSystem.cpp    6    UserInterface
    Error    2    error BK1506 : cannot open file '.\Release\PythonSystem.sbr': No such file or directory    BSCMAKE    UserInterface
    

  7. On 7/29/2016 at 10:40 PM, ladcatalin said:

    i have a error when i try to cmpile db.

    
    
    compile ClientManager.cpp
    ClientManager.cpp: In member function 'bool CClientManager::__GetAdminInfo(const char*, std::vector<TAdminInfo, std::allocator<TAdminInfo> >&)':
    ClientManager.cpp:3686: error: 'GM_VIP' was not declared in this scope
    gmake: *** [.obj/ClientManager.o] Error 1
    root@:/usr/src/newoffsource/db/src #
    
    
    
    #ifdef __VIP_SYSTEM__ //3684
            else if (!stAuth.compare("VIP")) //3685
                Info.m_Authority = GM_VIP; //3686
    #endif //3687
    	

    Do you know how to solve this?...

  8. Hello. I have a error when i try to compile db..

    Can someone to help me, please?

    Sorry for my bad English.

     

    compile ClientManager.cpp
    ClientManager.cpp: In member function 'bool CClientManager::__GetAdminInfo(const char*, std::vector<TAdminInfo, std::allocator<TAdminInfo> >&)':
    ClientManager.cpp:3686: error: 'GM_VIP' was not declared in this scope
    gmake: *** [.obj/ClientManager.o] Error 1
    root@:/usr/src/newoffsource/db/src #
    
    
    //-->clientmanager.cpp_lines_with_error
    #ifdef __VIP_SYSTEM__ //3684
            else if (!stAuth.compare("VIP")) //3685
                Info.m_Authority = GM_VIP; //3686
    #endif //3687
    //-->end_of_lines_with_error
    //3684, 3685...are means number of lines.
  9. Sorry...but.. where i should add this?

     

    1 hour ago, VegaS said:

    Example:

    
    	LPITEM item ; 
    	if (IS_SET (item ->GetAntiFlag(), ITEM_ANTIFLAG_GIVE | ITEM_ANTIFLAG_PKDROP | ITEM_ANTIFLAG_SELL))
    		return ;

     

    
    enum EItemAntiFlag { 
    	ITEM_ANTIFLAG_FEMALE	 = ( 1 << 0 ), 
    	ITEM_ANTIFLAG_MALE		 = ( 1 << 1 ), 
    	ITEM_ANTIFLAG_WARRIOR	 = ( 1 << 2 ), 
    	ITEM_ANTIFLAG_ASSASSIN	 = ( 1 << 3 ), 
    	ITEM_ANTIFLAG_SURA		 = ( 1 << 4 ), 
    	ITEM_ANTIFLAG_SHAMAN	 = ( 1 << 5 ), 
    	ITEM_ANTIFLAG_GET		 = ( 1 << 6 ), 
    	ITEM_ANTIFLAG_DROP		 = ( 1 << 7 ), 
    	ITEM_ANTIFLAG_SELL		 = ( 1 << 8 ), 
    	ITEM_ANTIFLAG_EMPIRE_A	 = ( 1 << 9 ), 
    	ITEM_ANTIFLAG_EMPIRE_B	 = ( 1 << 10 ), 
    	ITEM_ANTIFLAG_EMPIRE_C	 = ( 1 << 11 ), 
    	ITEM_ANTIFLAG_SAVE		 = ( 1 << 12 ), 
    	ITEM_ANTIFLAG_GIVE		 = ( 1 << 13 ), 
    	ITEM_ANTIFLAG_PKDROP	 = ( 1 << 14 ),  
    	ITEM_ANTIFLAG_STACK		 = ( 1 << 15 ), 
    	ITEM_ANTIFLAG_MYSHOP	 = ( 1 << 16 ), 
    	ITEM_ANTIFLAG_SAFEBOX	 = ( 1 << 17 ), 
    }; 
                                                          

     

    And..After i do this, my problem will be solved?...

  10. i have a error when i try to cmpile db.

    
    compile ClientManager.cpp
    ClientManager.cpp: In member function 'bool CClientManager::__GetAdminInfo(const char*, std::vector<TAdminInfo, std::allocator<TAdminInfo> >&)':
    ClientManager.cpp:3686: error: 'GM_VIP' was not declared in this scope
    gmake: *** [.obj/ClientManager.o] Error 1
    root@:/usr/src/newoffsource/db/src #
    
    
    
    #ifdef __VIP_SYSTEM__ //3684
            else if (!stAuth.compare("VIP")) //3685
                Info.m_Authority = GM_VIP; //3686
    #endif //3687
    	
  11. 3 hours ago, galet said:

    The only problem is that you can delete everything, including unique item and this is dangerous so you must create a check with flags :/

    Sorry, but this "dropdialog" is used for destroy any items. If u set this to destroy just items which can be sold in shop or dropped, this system will be useless.

    We need this for destroy any items from inventory...

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