[REQUEST] WEAPON_LEVELING DATABASE

06/16/2015 15:51 Ecrypter#1
any one know about the weapon leveling not to rollback? may leveling not save, i think there is a database support.

thnx and advance

rip english
06/16/2015 16:36 banktakung#2
database server that all you need to code.
06/17/2015 12:10 raventh1984#3
Did you edited DbManagerSave.cpp?
void CDbManager::SaveOneItem( CItemElem* pItemElem, PItemStruct pItemStruct )
sprintf( pItemStruct->szItem, "%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,% d,%d,%d/",

And
#ifdef __WEAPON_LEVELING
, pItemElem->m_nWeaponLevel
, pItemElem->m_nWeaponExp
#endif

And
06/17/2015 12:52 Ecrypter#4
i dont know if this is the right
PHP Code:
void CDbManager::SaveOneItemCItemElempItemElemPItemStruct pItemStruct )
{
    
char szPiercing[32]        = {0,};

    if( 
pItemElem->IsEmpty() == FALSE )
    {
#if __VER >= 11 // __MA_VER11_05    // Äɸ¯ÅÍ ºÀÀΠ°Å·¡ ±â´É world,database,neuz
        
if( pItemElem->m_dwItemId == II_SYS_SYS_SCR_SEALCHARACTER )
#if __VER >= 19
            
sprintfpItemStruct->szItem"%d,%d,%d,%d,,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",
#else
            
sprintfpItemStruct->szItem"%d,%d,%d,%d,,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d/",
#endif
                    
pItemElem->m_dwObjIdpItemElem->m_dwItemId,
                    
00
                    
pItemElem->m_nItemNumpItemElem->m_nRepairNumber,
                    
pItemElem->m_nHitPointpItemElem->m_nRepair,
                    
0pItemElem->m_byFlag,
                    
pItemElem->GetSerialNumber(), pItemElem->GetOption(), 
                      
pItemElem->m_bItemResistpItemElem->m_nResistAbilityOption,
                      
pItemElem->m_idGuild,
                    
pItemElem->m_nResistSMItemId
                
);
        else
#if __VER >= 19
            
sprintfpItemStruct->szItem"%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",
#else
            
sprintfpItemStruct->szItem"%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d/",
#ifdef    __WEAPON_LEVELING
                    
sprintfpItemStruct->szItem"%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d/",
#else
                    
sprintfpItemStruct->szItem"%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d/",
#endif //__WEAPON_LEVELING
#endif
                    
pItemElem->m_dwObjIdpItemElem->m_dwItemId,
                    
00pItemElem->m_szItemText,
                    
pItemElem->m_nItemNumpItemElem->m_nRepairNumber,
                    
pItemElem->m_nHitPointpItemElem->m_nRepair,
                    
0pItemElem->m_byFlag,
                    
pItemElem->GetSerialNumber(), pItemElem->GetOption(), 
                      
pItemElem->m_bItemResistpItemElem->m_nResistAbilityOption,
                      
pItemElem->m_idGuild,
                    
pItemElem->m_nResistSMItemId

#ifdef __WEAPON_LEVELING
                    
pItemElem->m_nWeaponLevel
                    
pItemElem->m_nWeaponExp
#endif 
pls till me were i can add/remove code to save weapon leveling?

thnx

up