Most visitors online was 12720 , on 2 May 2024
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
#ifdef __WEAPON_RARITYYou need to check: DbManagerSave.cpp to see if the saved project is intact
Update your base value tbl maybe#ifdef __WEAPON_RARITY
",%d"
#endif // __WEAPON_RARITY
#ifdef __WEAPON_RARITY
, pItemElem->GetWeaponRarity()
#endif // __WEAPON_RARITY
How do I update the initial value in BASE_VALUE_TBL, can you teach me? I've tried a lot of methods, but I can't update it! Thanks in advance, big guy!Update your base value tbl maybe
this does not need to be updated.How do I update the initial value in BASE_VALUE_TBL, can you teach me? I've tried a lot of methods, but I can't update it! Thanks in advance, big guy!
you just need to put this on the right line on your#ifdef __WEAPON_RARITY
",%d"
#endif // __WEAPON_RARITY
#ifdef __WEAPON_RARITY
, pItemElem->GetWeaponRarity()
#endif // __WEAPON_RARITY
CDbManager::SaveOneItem
this does not need to be updated.
you just need to put this on the right line on your
C++:CDbManager::SaveOneItem
#ifdef __WEAPON_RARITY
",%d"
#endif // __WEAPON_RARITY
I've inserted this code, and still won't save it!You still getting the same problem after inserting the snippet "
in your SaveOneItem( CItemElem* pItemElem, PItemStruct pItemStruct ) function? That should fix the problem.Code:#ifdef __WEAPON_RARITY ",%d" #endif // __WEAPON_RARITY
if( pItemElem->m_dwItemId == II_SYS_SYS_SCR_SEALCHARACTER )
sprintf( pItemStruct->szItem, "%d,%d,%d,%d,,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d/",
pItemElem->m_dwObjId, pItemElem->m_dwItemId,
0, 0,
pItemElem->m_nItemNum, pItemElem->m_nRepairNumber,
pItemElem->m_nHitPoint, pItemElem->m_nRepair,
0, pItemElem->m_byFlag,
pItemElem->GetSerialNumber(), pItemElem->GetOption(),
pItemElem->m_bItemResist, pItemElem->m_nResistAbilityOption,
pItemElem->m_idGuild,
pItemElem->m_nResistSMItemId
);
else
sprintf( pItemStruct->szItem, "%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d"",%d"",%d"",%d"",%d"",%d"",%d"",%d"",%d"
#ifdef __LOOKCHANGE
",%d"
#endif
#ifdef __WEAPON_RARITY
",%d"
#endif // __WEAPON_RARITY
#ifdef __SYS_LOCK_ITEM
",%d"
#endif //__SYS_LOCK_ITEM
"/",
pItemElem->m_dwObjId, pItemElem->m_dwItemId,
0, 0, pItemElem->m_szItemText,
pItemElem->m_nItemNum, pItemElem->m_nRepairNumber,
pItemElem->m_nHitPoint, pItemElem->m_nRepair,
0, pItemElem->m_byFlag,
pItemElem->GetSerialNumber(), pItemElem->GetOption(),
pItemElem->m_bItemResist, pItemElem->m_nResistAbilityOption,
pItemElem->m_idGuild,
pItemElem->m_nResistSMItemId
#ifdef __LOOKCHANGE
, pItemElem->GetLook()
#endif
#ifdef __WEAPON_RARITY
, pItemElem->GetWeaponRarity() // 1x %d added.
#endif // __WEAPON_RARITY
#ifdef __SYS_LOCK_ITEM
, pItemElem->IsItemLocked() // 1x %d added.
#endif //__SYS_LOCK_ITEM
#ifdef __CHIP_PLAYERSHOP
pItemElem->m_nBuyMode, // 1x %d added.
#endif // __CHIP_PLAYERSHOP
#ifdef __UPGRADE_SUCCESS
pItemElem->m_nUpgradeTries // 1x %d added.
#endif //__UPGRADE_SUCCESS
#ifdef __WEAPON_MERGE
, pItemElem->GetMergedRandomOptItemId() // 1x %I64d added.
, pItemElem->GetMergedWeaponATK() // 1x %d added.
#endif //__WEAPON_MERGE
#ifdef __PET_GLOW
, pItemElem->m_nPetGlow // 1x %d added.
#endif // __PET_GLOW
#ifdef __CRYSTAL
, pItemElem->GetCrystal() // 1x %d added.
#endif //__CRYSTAL
#ifdef __SWITCH_GLOW_OLDNEW
, pItemElem->m_bGlowOld
#endif // __SWITCH_GLOW_OLDNEW
#ifdef __RUNES_BONUS_FASHION
, pItemElem->m_dwRuneID
#endif
try to debug the database .I've inserted this code, and still won't save it!
This is the code in this function, it looks like there is no error, and it is estimated that it is a database problemTry this, you are missing a lot of format specifier.
Code:if( pItemElem->m_dwItemId == II_SYS_SYS_SCR_SEALCHARACTER ) sprintf( pItemStruct->szItem, "%d,%d,%d,%d,,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d/", pItemElem->m_dwObjId, pItemElem->m_dwItemId, 0, 0, pItemElem->m_nItemNum, pItemElem->m_nRepairNumber, pItemElem->m_nHitPoint, pItemElem->m_nRepair, 0, pItemElem->m_byFlag, pItemElem->GetSerialNumber(), pItemElem->GetOption(), pItemElem->m_bItemResist, pItemElem->m_nResistAbilityOption, pItemElem->m_idGuild, pItemElem->m_nResistSMItemId ); else sprintf( pItemStruct->szItem, "%d,%d,%d,%d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d"",%d"",%d"",%d"",%d"",%d"",%d"",%d"",%d" #ifdef __LOOKCHANGE ",%d" #endif #ifdef __WEAPON_RARITY ",%d" #endif // __WEAPON_RARITY #ifdef __SYS_LOCK_ITEM ",%d" #endif //__SYS_LOCK_ITEM "/", pItemElem->m_dwObjId, pItemElem->m_dwItemId, 0, 0, pItemElem->m_szItemText, pItemElem->m_nItemNum, pItemElem->m_nRepairNumber, pItemElem->m_nHitPoint, pItemElem->m_nRepair, 0, pItemElem->m_byFlag, pItemElem->GetSerialNumber(), pItemElem->GetOption(), pItemElem->m_bItemResist, pItemElem->m_nResistAbilityOption, pItemElem->m_idGuild, pItemElem->m_nResistSMItemId #ifdef __LOOKCHANGE , pItemElem->GetLook() #endif #ifdef __WEAPON_RARITY , pItemElem->GetWeaponRarity() // 1x %d added. #endif // __WEAPON_RARITY #ifdef __SYS_LOCK_ITEM , pItemElem->IsItemLocked() // 1x %d added. #endif //__SYS_LOCK_ITEM #ifdef __CHIP_PLAYERSHOP pItemElem->m_nBuyMode, // 1x %d added. #endif // __CHIP_PLAYERSHOP #ifdef __UPGRADE_SUCCESS pItemElem->m_nUpgradeTries // 1x %d added. #endif //__UPGRADE_SUCCESS #ifdef __WEAPON_MERGE , pItemElem->GetMergedRandomOptItemId() // 1x %I64d added. , pItemElem->GetMergedWeaponATK() // 1x %d added. #endif //__WEAPON_MERGE #ifdef __PET_GLOW , pItemElem->m_nPetGlow // 1x %d added. #endif // __PET_GLOW #ifdef __CRYSTAL , pItemElem->GetCrystal() // 1x %d added. #endif //__CRYSTAL #ifdef __SWITCH_GLOW_OLDNEW , pItemElem->m_bGlowOld #endif // __SWITCH_GLOW_OLDNEW #ifdef __RUNES_BONUS_FASHION , pItemElem->m_dwRuneID #endif
Everything that needs to be added to the database has been added, but it just doesn't save it, and I haven't found the problem!try to debug the database .