本文整理汇总了C++中CDPDatabaseClient::CalluspXXXMultiServer方法的典型用法代码示例。如果您正苦于以下问题:C++ CDPDatabaseClient::CalluspXXXMultiServer方法的具体用法?C++ CDPDatabaseClient::CalluspXXXMultiServer怎么用?C++ CDPDatabaseClient::CalluspXXXMultiServer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDPDatabaseClient
的用法示例。
在下文中一共展示了CDPDatabaseClient::CalluspXXXMultiServer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Init
BOOL CRunObject::Init( void )
{
if( LoadAIScript() == FALSE )
return FALSE;
//
m_hClose = CreateEvent( NULL, FALSE, FALSE, NULL );
DWORD dwThreadId;
m_hRunObject = chBEGINTHREADEX( NULL, 0, _Run, (LPVOID)this, 0, &dwThreadId );
//
/*
#ifdef __GIFTBOX0213
if( !CDPAccountClient::GetInstance()->ConnectToServer( s_szAccountAddr, PN_ACCOUNTSRVR_2, TRUE ) )
{
OutputDebugString( "Can't connect to account server." );
return FALSE;
}
CGiftboxMan::GetInstance()->Upload( CDPAccountClient::GetInstance() );
#endif // __GIFTBOX0213
*/
if( !g_DPSrvr.StartServer( (u_short)( g_uKey + PN_WORLDSRVR ), TRUE ) )
{
OutputDebugString( "Can't start server." );
return FALSE;
}
if( !g_DPCoreClient.Run( g_szCoreAddr, PN_CORESRVR + 0, g_uKey ) )
{
OutputDebugString( "Can't connect to core server." );
return FALSE;
}
if( !g_dpDBClient.ConnectToServer( g_szDBAddr, PN_DBSRVR_1, TRUE ) )
{
OutputDebugString( "Can't connect to database server." );
return FALSE;
}
if ( g_eLocal.GetState( ENABLE_GUILD_INVENTORY ) )
g_dpDBClient.SendQueryGuildBank();
if( g_eLocal.GetState( EVE_WORMON ) )
g_dpDBClient.SendQueryGuildQuest();
#if __VER >= 13 // __RAINBOW_RACE
if( g_eLocal.GetState( EVE_RAINBOWRACE ) )
g_dpDBClient.SendRainbowRaceReqLoad();
#endif // __RAINBOW_RACE
#ifdef __INVALID_LOGIN_0320
g_dpDBClient.CalluspXXXMultiServer( g_uIdofMulti, NULL );
#else // __INVALID_LOGIN_0320
g_dpDBClient.CalluspXXXMultiServer( g_uIdofMulti, 0 );
#endif // __INVALID_LOGIN_0320
if( !CXMasEvent::GetInstance()->LoadScript( "spevent.txt" ) )
{
OutputDebugString( "can't read spevent.txt" );
return FALSE;
}
if( g_eLocal.GetState( EVE_SCHOOL ) )
{
#ifdef __IDC
if( !CEveSchool::GetInstance()->LoadPos( "..\\script\\school.txt" ) ) //
#else // __IDC
if( !CEveSchool::GetInstance()->LoadPos( "school.txt" ) )
#endif // __IDC
{
OutputDebugString( "school.txt not found" );
return FALSE;
}
}
if( g_eLocal.GetState( EVE_GUILDCOMBAT ) && !g_GuildCombatMng.LoadScript( "GuildCombat.txt" ) )
{
OutputDebugString( "GuildCombat.txt not found" );
return FALSE;
}
#if __VER >= 12 // __ITEMCREATEMON_S0602
#if __VER < 12 // __NEW_ITEMCREATEMON_SERVER
if( !g_CreateMonster.LoadScript( "CreateMonster.txt" ) )
{
OutputDebugString( "CreateMonster.txt Not Found!" );
return FALSE;
}
#endif // __NEW_ITEMCREATEMON_SERVER
#endif // __ITEMCREATEMON_S0602
return TRUE;
}