⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menuserver.h

📁 国内著名网络游戏dragon的服务端完整源码 内附完整数据库结构
💻 H
📖 第 1 页 / 共 3 页
字号:
extern void ReturnResultByName( char *name, int cmd_type );		// 捞抚栏肺 酒捞叼甫 茫酒辑 橇肺配妮阑 傈价秦霖促.
extern void CheckMyMailOnStartGame( short int cn );				// 酒捞袍 
extern void makemyjobexpsetting( int skillno , CHARLIST *ch );
extern void SendToLoginserver( short int cn );
extern void SendLoginToClientPublicBbsOnlyOne( t_packet *p );
extern void SendLoginServerHunterRegist( k_hunter_regist *p, int size, short int cn );
extern void SendLoginServerReqHunterList( int id, short int cn );
extern void RecvLoginServerAndSendHunterList( k_login_game_hunter_list *login_list );
extern void RecvHunterList( int id, short int cn );
extern void RecvHunterListOk( k_send_kill_hunter_list *p );
extern void ReturnDangerByHunter( short int target_id, char type);
extern int IsCheckPartyLevel( int type, CHARLIST *target_ch, CHARLIST *ch );

extern void RecvReqManToMan( short int target_id, short int cn );
extern void SendReqManToManResult( char ret, short int cn );
extern void RecvManToManConsent( short int target_id, short int cn );
extern void RecvReqQuestIndex( char page, short int cn );
extern void SendLearnedItem( t_connection c[], short int cn )	;
extern void SendDeleteBox( DWORD box_id );
extern bool IsConnectLogin(int idUser); // CSD-030515 
extern bool IsConnectJoin(int idUser);  // CSD-030515
extern CHARLIST* CheckServerId(WORD id);
extern CHARLIST* CheckServerName( const char* szName );// kyo 
extern CHARLIST* GetCharListPtr(WORD idObject);
extern CHARLIST* CheckNpcId(short int cn); // CSD-031014
extern CHARLIST* CheckNpcName(const char* pName); // CSD-031014
extern bool CheckServerIndex( short int id );
//extern void RecvManToManItemEach( short int target_id, short int cn );//021030 lsw 捞力 酒捞袍阑 棵府瘤 给钦聪促.
extern int SendServerItemEachAuto( CHARLIST *ch, ItemAttr *item );		// 后镑阑 茫酒 焊郴霖促. 后镑捞 乐栏搁 1阑 府畔 绝栏搁 0阑 府畔
extern void ResultManToMan( short int cn, short int target_id, int flag );					// 1:1 俊辑 搬苞啊 唱吭阑 版快 酒捞袍 悸泼~
extern void SendTeamBattleMessageAddCharOk( char team_num, short int cn );
extern void CheckFightMap( char *mapname, short int &x, short int &y, CHARLIST *ch );
extern void ResetManToManItemWhenCloseConnect( CHARLIST *you );
//011022 lsw >
extern void SendStartSkillExp( int inc, t_skillexp exp, t_connection c[], int cn );
//011022 lsw <
extern void RecvChangeScriptValue( t_packet *p, short int cn);
extern bool IsSameNation( CHARLIST *party_ch, CHARLIST *ch );
// 020428 YGI acer
extern int	BreakItemByDuration( ItemAttr *item, CHARLIST *ch, POS pos );
extern void SendItemAttrDurationChange( t_connection c[], int cn, int pos );
extern void SendChangeDurationByKein( POS *pos, DWORD dur, int cn );
extern void CheckBoxAndDownDuration( );
extern void SendCheckName( short int cn, char *name );		// 叼厚 单阁栏肺 某腐磐 粮犁 咯何 夸没 风凭
extern void SendCheckNameForNation( char *name, short int cn );
extern void RecvAndSendLoginCheckRegistCandidate( short int cn );
extern void CheckVote( short int cn );
extern void RecvAndSendCheckVote_Ok( t_packet *p, short int cn );
extern void RecvRegistCandidate( short int cn );
extern void RecvAndSendRegistCandidateResult( t_packet *p );
extern void RecvSetValueOfVote( t_packet *p );
extern void SendVoteGame2Login( t_packet *t, short int cn );
extern int ReturnCheckVoteNot( short int client_id, int ret );
extern void ReqVoteScore( short int cn );
extern void SendClientRepVoteScore( t_packet *p );
extern void RecvGetSkillInfo( t_packet *p, short int cn );
extern void SendSkillInfo( short int target_id, int top_exp, int top_job, short int cn ,const bool bCast= false);//021113 lsw
extern void RecvClienNationMassage( t_packet *p, short int cn );
extern void RecvAndSendNationMassage( t_packet *p );
extern void RecvDemonYouAreKing( t_packet *p, int type );
extern void RecvLoginYouAreKing( t_packet *p, int type );
extern void RecvGuildExit( t_packet *p, short int cn );		// 辨靛 呕硼 疙飞
extern void RecvGuildJoin( t_packet *p, short int cn );
extern void RecvGuildJoinResult( t_packet *p );
extern void RecvGuildJoinConfirmOk( t_packet *p, short int cn );
extern void RecvGuildJoinConfirmNot( t_packet *p, short int cn );
extern void RecvScanTarget( short int cn );
extern void RecvGuildAllMsg( t_packet *p, short int cn );
extern void RecvGuildAllMsg_FromServer( t_packet *p );
extern void RecvChangeGuildEachLevel( t_packet *p, short int cn );
extern void SendBbsAll( char *name, int type );
extern void RecvGmRegist( t_packet *p, short int cn, int makemode = 0 );
extern void DirectSend( t_packet *p, int type = 0 );
extern void RecvReqStopWarGame2Login( t_packet *p, short int cn );
extern void RecvRepStopWarAccept( t_packet *p, short int cn );		// 铰倡茄 荤角阑 肺弊牢 辑滚肺 朝妨葛滴俊霸 臂阑 谎妨林霸 茄促.
extern void RecvRepStopWarRefusal( t_packet *p );
extern void RecvReqStopWarGame2Client( t_packet *p );		// 绒傈且 惑措惫狼 空俊霸 狼氢阑 拱绢夯促.
extern void RecvRepStopWarGame2Client( t_packet *p );		// 葛滴俊霸 绒傈狼 荤角阑 焊郴霖促.

extern void SendServerItemAttr( short int cn, int type, POS pos, ItemAttr *item );

extern void RecvAndReqSalvation( short int cn );
extern void RecvAndSaveSalvation( t_packet *p, short int cn );
extern void Game2ClinetSalvation( t_packet *p );
extern void RecvDB2MapItem( t_packet *p );

extern void RecvChangeMoney( t_packet *p, short int cn );
extern void SendEatChcolate( char *name, DWORD limits, DWORD cn  );
extern void RecvEatChocolateOk( t_packet *p );

extern void RecvPayRumor( short int cn );
extern void RecvAndSendRumor( t_packet *p );
extern void MovePc( short int cn, int x, int y);

extern void SendOpenSChoolData( int cn, int item_no, int npc_id );
extern void RecvOpenSchoolResult( t_packet *p );
extern void RecvGuildExitGlobal( t_packet *p, short int cn );

extern void RecvGuildExitGlobalFromDB( t_packet *p );

extern void SendEatCandy( char *name, DWORD limit, DWORD total_id );
extern inline void SendNationPacket( t_packet *p, int nation );

extern void RecvReqLoan( t_packet *p, short int cn );
extern void RecvLoanInfo( short int cn );
extern NPCLev_to_Exp		NPC_Lev_Ref[Num_Of_NPC_Lev];
extern void RecvRepayment( t_packet *p, short int cn );
extern void RecvMerchantBBS( t_packet *p, short int cn );

extern void RecvMerchantBBS( t_packet *p, short int cn );
extern void RecvMerchantBBSAllMap( t_packet *p, short int cn );
extern void RecvPartyAllFree( short int cn );
extern void InitJoinGameWho( CHARLIST *ch );		// 穿焙啊 捞 甘栏肺 甸绢吭促.		// 010410 YGI
extern void RecvMerchantItemBBS( t_packet *p, short int cn );
extern void RecvMerchantItemBBSAllMap( t_packet *p, short int cn );
extern int UpdateLadderScore( CHARLIST *ch );
extern void RecvReqRankLadder( t_packet *p, short int cn );
extern void RecvDirectClient( t_packet *p );

extern void RecvDirectDB( t_packet *p, short int cn );
extern inline int GetOwnPort();
extern void RecvReqVisa( t_packet *p, short int cn );
extern void RecvBuyVisa( t_packet *p, short int cn );

extern void RecvNationInfo( t_packet *p );		// 捞 cn篮 霸烙辑滚
extern inline int GetNationByMapName( char *mapname );
extern void RecvReqManToManRefusal( short int target_id, short int cn );
extern void RecvReqManToManRefusal( short int target_id, CHARLIST *ch );

extern void RecvExitGuildHimSelf( short int cn );		// 胶胶肺 辨靛 呕硼 疙飞绢 // 010613 YGI
extern void RecvReqistGuildImsi( t_packet *p, short int cn );
extern void RecvReqistGuildImsiOk( t_packet *p );
extern void RecvReqistGuild( t_packet *p, short int cn );
extern void RecvSetGuildInfo( t_packet *p );
extern void RecvTest( t_packet *p, short int cn );


extern void RecvGuildInfo(t_packet *p, short int cn);
extern void SendGuildName(int guild_code, short int cn); // CSD-030326
extern void RecvGuildNumberInfo( t_packet *p );
extern void RecvGuildDegreeInfo( t_packet *p );
extern void RecvGuildIntroduction( short int cn );

extern void SendSaveGuildMemberList( char *target_name, int old_guild_code, int guild_code, int degree );
extern void RecvDb2ClientGuildMail( t_packet *p );

extern void KillWho( CHARLIST *death_ch, CHARLIST *attack_ch );

extern void TransDbGuildMailId( t_packet *p, short int cn );
extern void RecvGameToClientRepGuildMailTitle( int type, k_login_to_game_guild_mail_title *t );

extern void TransDB_DeleteGuildMail( DWORD mail_id, int cn );
extern void RecvCheckGuild( t_packet *p, short int cn );

extern void RecvGuildChatMap( t_packet *p );
extern void RecvGuildChat( t_packet *p, short int cn );
extern void RecvReqResetAbility( short int cn );
extern int SendCharInfo( short int cn );
extern void RecvDeleteGuild( t_packet *p, short int cn );
extern void RecvDeleteGuildOk( t_packet *p );
extern void RecvGuildDegreeInfo2( t_packet *p );
extern void RecvGetGhostQuestInfo( short int cn );

// 011019 ygi
extern void RecvSearchDualCharacter( t_packet *p, short int cn );
extern void RecvChangeColor( t_packet *p, short int cn );
extern inline int ChoiceParam( int *arg, int arg_count, int cmp_value );
extern inline void SendDirectMap( t_packet *p, short int port );
extern void RecvGetNationMoney( short int cn, int nation = 0 );


////////////////////////////////////////////////////////////
struct k_money_to_fame_basic
{
	DWORD money;
	int fame;
};

class CMoneyToFame	// 扁何咀俊 蝶弗 疙己 刘啊摹
{
	int m_nCount;
	k_money_to_fame_basic	data[10];
public : 
	CMoneyToFame() 
	{
		Refresh();
	}
	int Refresh()
	{
		memset( data, 0, sizeof( k_money_to_fame_basic ) );
		return 1;
	}
	int LoadData();
	int GetFame( DWORD money );
};

extern bool CheckContinueLint( char check );
extern CMoneyToFame g_Money_to_Fame;
extern int InitRefreshMenu();
extern int InitOnlyStart_kein();
extern void __stdcall MakeMapDataFile(DWORD dwValue);//020511 lsw;	// VK_F7
extern ItemAttr MakeGambleItem( int house, int grade, int item_no );

struct k_GambleRateDataBasic
{
	int rune2band[8];
	int lv2band[10];		// 饭骇俊 蝶弗 龟靛 歹秦咙荐
	int choice_house[10][5];	// 规阑 急琶且 犬伏
	int house_band_class[5][11][6];
	int item2house_type[10][6];
	int give_gamble_item_rate[16][2];
	int map2band[6][2];
	int create_today_item[8];
	int get_today_item;
};

class CGambleRateData : public k_GambleRateDataBasic
{
public :
	int LoadData();
	int SaveData();
};

extern CGambleRateData g_game_rate_data;
extern void SaveGambleLogFile( CHARLIST *ch, int house, int class_type, int user_count, ItemAttr *item, int resource_type, int lv_band );
extern void RecvGambleItem( t_packet *p, short int cn );
extern int InitDataFromNewDay( int day, int month );
extern void RecvGambleStart( short int cn );
extern void SendMessageGambleItem( CHARLIST *ch, ItemAttr *item );
extern void RecvLogoutChar( t_packet *p, short int cn );
extern void SendPutMenuString( int type, int str_num, short int cn );
extern void SendDirectClientOtherMap( int type, short int server_id, short int port, void *msg, int size );
extern int RecvSEND_DIRECT_CLIENT_TO_MAP( t_packet *p );
extern void RecvReporterMode( t_packet *p, short int cn );

extern void SendPacket2Maps(t_packet* p);
extern void RecvDeleteTodayGambleItem();
extern void RecvGetTodayGambleItem( short int cn );
extern void RecvSetTodayGambleItem( t_packet *p );
extern void RecvChangePartySelectExp( t_packet *p, short int cn );
extern int WinOfRandFunction( int count );



struct SMapPotalUnit
{
	char m_MapFile[50];
	int m_MapNumber;
	int m_Money;
	int x;
	int y;
	int m_Level;

	SMapPotalUnit()
	{
		m_MapNumber = 0;
		m_MapFile[0] = 0;
		m_Money = 0;
		x = 0;
		y = 0;
		m_Level = 0;
	}
};


class CMapPotalNation
{
public :
	SMapPotalUnit m_MapNation[MAX_POTAL_MAP];
	int m_Count;

public :
	CMapPotalNation()
	{
		clear();
	}
	int clear() { m_Count = 0; return 1; }
	int InsertMap( char *map_name, int map_number, int money, int x, int y, int level );
	char *GetPotalMap( int num ) 
	{
		if( num < 0 || num >= MAX_POTAL_MAP ) return NULL;
		return m_MapNation[num].m_MapFile;
	}
	int GetCount() { return m_Count; } // 努扼捞攫飘 傈价阑 困秦
	int GetMapNumber( int num )
	{
		if( num < 0 || num >= MAX_POTAL_MAP ) return 0;
		return m_MapNation[num].m_MapNumber;
	}
	int GetMapMoney( int num )
	{
		if( num < 0 || num >= MAX_POTAL_MAP ) return 0;
		return m_MapNation[num].m_Money;
	}
	int GetMapLevel ( int num )
	{
		if( num < 0 || num >= MAX_POTAL_MAP ) return 0;
		return m_MapNation[num].m_Level;
	}
	int GetMapXY( int num, int &x, int &y )
	{
		if( num < 0 || num >= MAX_POTAL_MAP ) return 0;
		x = m_MapNation[num].x;
		y = m_MapNation[num].y;
		return 1;
	}
};

extern CMapPotalNation g_MapPotal[MAX_NATION];
extern int LoadMapPotal();
extern void RecvGetPotalMap( short int cn );
extern void RecvGotoPotal( t_packet *p, short int cn );

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -