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

📄 gmcmdmanager.cpp

📁 奇迹世界 部分源代码奇迹世界 部分源代码奇迹世界 部分源代码
💻 CPP
📖 第 1 页 / 共 2 页
字号:
		{
			//捞 版快俊绰 傍瘤 陛瘤 - 穿备 妇措肺? 郴 妇措肺-_-;
			MessageOut( eCRITICAL_LOG, "某腐磐 急琶 芒俊辑 傍瘤 夸没(%s)", pUser->GetCharName().c_str() );
			MSG_CW_GM_STRING_CMD_NAK	nakMsg;
			nakMsg.m_byErrorCode = 1;
			pUser->Send( (BYTE*)&nakMsg, sizeof(MSG_CW_GM_STRING_CMD_NAK) );
			return false;
			break;
		}
		case eZONETYPE_VILLAGE:
		{
			pZone = pChannel->FindVillage(pUser->GetZoneKey());
			if(!pZone)
			{
				// 荤侩磊狼 Zone ID啊 撇啡促. 摹疙利牢 滚弊
				MessageOut( eCRITICAL_LOG, "荤侩磊 %s狼 付阑 %u啊 粮犁窍瘤 臼澜!! 傍瘤 角菩!!", pUser->GetCharName().c_str(), 
																				pUser->GetZoneKey() );
				return false;
			}
			pZone->SendToAll( (BYTE*)&noticeMsg, noticeMsg.GetSize() );

			char szNotice[MAX_NOTICE_LEN + 1];
			ZeroMemory( szNotice, sizeof(szNotice) );
			strncpy( szNotice, noticeMsg.szMsg, vecCmd.begin()->size() );
			MessageOut(eCRITICAL_LOG,  "---------------------------<< %u盲澄 %u付阑傍瘤 >>-------------------------", 
											pUser->GetChannelID(), 
											pUser->GetZoneKey() );
			MessageOut(eCRITICAL_LOG,  "%s(%u)", noticeMsg.szMsg, noticeMsg.wLen );
			MessageOut(eCRITICAL_LOG,  "------------------------------------------------------------------------" );
			break;
		}
		case eZONETYPE_LOBBY:
		{
			pZone = pChannel->FindLobby(pUser->GetZoneKey());
			if(!pZone)
			{
				// 荤侩磊狼 Zone ID啊 撇啡促. 摹疙利牢 滚弊
				MessageOut( eCRITICAL_LOG, "荤侩磊 %s狼 Lobby %u啊 粮犁窍瘤 臼澜!! 傍瘤 角菩!!", pUser->GetCharName().c_str(), 
																				pUser->GetZoneKey() );
				return false;
			}
			pZone->SendToAll( (BYTE*)&noticeMsg, noticeMsg.GetSize() );

			char szNotice[MAX_NOTICE_LEN + 1];
			ZeroMemory( szNotice, sizeof(szNotice) );
			strncpy( szNotice, noticeMsg.szMsg, vecCmd.begin()->size() );
			MessageOut(eCRITICAL_LOG,  "---------------------------<< %u盲澄 %u Lobby傍瘤 >>-------------------------", 
											pUser->GetChannelID(), 
											pUser->GetZoneKey() );
			MessageOut(eCRITICAL_LOG,  "%s(%u)", noticeMsg.szMsg, noticeMsg.wLen );
			MessageOut(eCRITICAL_LOG,  "------------------------------------------------------------------------" );
			break;
		}
		case eZONETYPE_MISSION:
		{
			pZone = pChannel->FindMissionZone(pUser->GetZoneKey());
			if(!pZone)
			{
				// 荤侩磊狼 Zone ID啊 撇啡促. 摹疙利牢 滚弊
				MessageOut( eCRITICAL_LOG, "荤侩磊 %s狼 MissionZone %u啊 粮犁窍瘤 臼澜!! 傍瘤 角菩!!", pUser->GetCharName().c_str(), 
																				pUser->GetZoneKey() );
				return false;
			}
			pZone->SendToAll( (BYTE*)&noticeMsg, noticeMsg.GetSize() );

			char szNotice[MAX_NOTICE_LEN + 1];
			ZeroMemory( szNotice, sizeof(szNotice) );
			strncpy( szNotice, noticeMsg.szMsg, vecCmd.begin()->size() );
			MessageOut(eCRITICAL_LOG,  "---------------------------<< %u盲澄 %u MissionZone傍瘤 >>-------------------------", 
											pUser->GetChannelID(), 
											pUser->GetZoneKey() );
			MessageOut(eCRITICAL_LOG,  "%s(%u)", noticeMsg.szMsg, noticeMsg.wLen );
			MessageOut(eCRITICAL_LOG,  "------------------------------------------------------------------------" );
			break;
		}
		case eZONETYPE_HUNTING:
		{
			pZone = pChannel->FindHuntingZone(pUser->GetZoneKey());
			if(!pZone)
			{
				// 荤侩磊狼 Zone ID啊 撇啡促. 摹疙利牢 滚弊
				MessageOut( eCRITICAL_LOG, "荤侩磊 %s狼 HuntingZone %u啊 粮犁窍瘤 臼澜!! 傍瘤 角菩!!", pUser->GetCharName().c_str(), 
																				pUser->GetZoneKey() );
				return false;
			}
			pZone->SendToAll( (BYTE*)&noticeMsg, noticeMsg.GetSize() );

			char szNotice[MAX_NOTICE_LEN + 1];
			ZeroMemory( szNotice, sizeof(szNotice) );
			strncpy( szNotice, noticeMsg.szMsg, vecCmd.begin()->size() );
			MessageOut(eCRITICAL_LOG,  "---------------------------<< %u盲澄 %u HuntingZone傍瘤 >>-------------------------", 
											pUser->GetChannelID(), 
											pUser->GetZoneKey() );
			MessageOut(eCRITICAL_LOG,  "%s(%u)", noticeMsg.szMsg, noticeMsg.wLen );
			MessageOut(eCRITICAL_LOG,  "------------------------------------------------------------------------" );
			break;
		}
		case eZONETYPE_QUEST:
		{
			pZone = pChannel->FindQuestZone(pUser->GetZoneKey());
			if(!pZone)
			{
				// 荤侩磊狼 Zone ID啊 撇啡促. 摹疙利牢 滚弊
				MessageOut( eCRITICAL_LOG, "荤侩磊 %s狼 QuestZone %u啊 粮犁窍瘤 臼澜!! 傍瘤 角菩!!", pUser->GetCharName().c_str(), 
																				pUser->GetZoneKey() );
				return false;
			}
			pZone->SendToAll( (BYTE*)&noticeMsg, noticeMsg.GetSize() );

			char szNotice[MAX_NOTICE_LEN + 1];
			ZeroMemory( szNotice, sizeof(szNotice) );
			strncpy( szNotice, noticeMsg.szMsg, vecCmd.begin()->size() );
			MessageOut(eCRITICAL_LOG,  "---------------------------<< %u盲澄 %u QuestZone傍瘤 >>-------------------------", 
											pUser->GetChannelID(), 
											pUser->GetZoneKey() );
			MessageOut(eCRITICAL_LOG,  "%s(%u)", noticeMsg.szMsg, noticeMsg.wLen );
			MessageOut(eCRITICAL_LOG,  "------------------------------------------------------------------------" );
			break;
		}
		case eZONETYPE_PVP:
		{
			pZone = pChannel->FindPVPZone(pUser->GetZoneKey());
			if(!pZone)
			{
				// 荤侩磊狼 Zone ID啊 撇啡促. 摹疙利牢 滚弊
				MessageOut( eCRITICAL_LOG, "荤侩磊 %s狼 PVPZone %u啊 粮犁窍瘤 臼澜!! 傍瘤 角菩!!", pUser->GetCharName().c_str(), 
																				pUser->GetZoneKey() );
				return false;
			}
			pZone->SendToAll( (BYTE*)&noticeMsg, noticeMsg.GetSize() );

			char szNotice[MAX_NOTICE_LEN + 1];
			ZeroMemory( szNotice, sizeof(szNotice) );
			strncpy( szNotice, noticeMsg.szMsg, vecCmd.begin()->size() );
			MessageOut(eCRITICAL_LOG,  "---------------------------<< %u盲澄 %u PVPZone傍瘤 >>-------------------------", 
											pUser->GetChannelID(), 
											pUser->GetZoneKey() );
			MessageOut(eCRITICAL_LOG,  "%s(%u)", noticeMsg.szMsg, noticeMsg.wLen );
			MessageOut(eCRITICAL_LOG,  "------------------------------------------------------------------------" );
			break;
		}
		case eZONETYPE_EVENT:
		{
			pZone = pChannel->FindEventZone(pUser->GetZoneKey());
			if(!pZone)
			{
				// 荤侩磊狼 Zone ID啊 撇啡促. 摹疙利牢 滚弊
				MessageOut( eCRITICAL_LOG, "荤侩磊 %s狼 EventZone %u啊 粮犁窍瘤 臼澜!! 傍瘤 角菩!!", pUser->GetCharName().c_str(), 
																				pUser->GetZoneKey() );
				return false;
			}
			pZone->SendToAll( (BYTE*)&noticeMsg, noticeMsg.GetSize() );

			char szNotice[MAX_NOTICE_LEN + 1];
			ZeroMemory( szNotice, sizeof(szNotice) );
			strncpy( szNotice, noticeMsg.szMsg, vecCmd.begin()->size() );
			MessageOut(eCRITICAL_LOG,  "---------------------------<< %u盲澄 %u EventZone傍瘤 >>-------------------------", 
											pUser->GetChannelID(), 
											pUser->GetZoneKey() );
			MessageOut(eCRITICAL_LOG,  "%s(%u)", noticeMsg.szMsg, noticeMsg.wLen );
			MessageOut(eCRITICAL_LOG,  "------------------------------------------------------------------------" );
			break;
		}
		case eZONETYPE_GUILD:
		{
			pZone = pChannel->FindGuildZone(pUser->GetZoneKey());
			if(!pZone)
			{
				// 荤侩磊狼 Zone ID啊 撇啡促. 摹疙利牢 滚弊
				MessageOut( eCRITICAL_LOG, "荤侩磊 %s狼 GuildZone %u啊 粮犁窍瘤 臼澜!! 傍瘤 角菩!!", pUser->GetCharName().c_str(), 
																				pUser->GetZoneKey() );
				return false;
			}
			pZone->SendToAll( (BYTE*)&noticeMsg, noticeMsg.GetSize() );

			char szNotice[MAX_NOTICE_LEN + 1];
			ZeroMemory( szNotice, sizeof(szNotice) );
			strncpy( szNotice, noticeMsg.szMsg, vecCmd.begin()->size() );
			MessageOut(eCRITICAL_LOG,  "---------------------------<< %u盲澄 %u GuildZone傍瘤 >>-------------------------", 
											pUser->GetChannelID(), 
											pUser->GetZoneKey() );
			MessageOut(eCRITICAL_LOG,  "%s(%u)", noticeMsg.szMsg, noticeMsg.wLen );
			MessageOut(eCRITICAL_LOG,  "------------------------------------------------------------------------" );
			break;
		}
		case eZONETYPE_SIEGE:
		{
			pZone = pChannel->FindSiegeZone(pUser->GetZoneKey());
			if(!pZone)
			{
				// 荤侩磊狼 Zone ID啊 撇啡促. 摹疙利牢 滚弊
				MessageOut( eCRITICAL_LOG, "荤侩磊 %s狼 SiegeZone %u啊 粮犁窍瘤 臼澜!! 傍瘤 角菩!!", pUser->GetCharName().c_str(), 
																				pUser->GetZoneKey() );
				return false;
			}
			pZone->SendToAll( (BYTE*)&noticeMsg, noticeMsg.GetSize() );

			char szNotice[MAX_NOTICE_LEN + 1];
			ZeroMemory( szNotice, sizeof(szNotice) );
			strncpy( szNotice, noticeMsg.szMsg, vecCmd.begin()->size() );
			MessageOut(eCRITICAL_LOG,  "---------------------------<< %u盲澄 %u SiegeZone傍瘤 >>-------------------------", 
											pUser->GetChannelID(), 
											pUser->GetZoneKey() );
			MessageOut(eCRITICAL_LOG,  "%s(%u)", noticeMsg.szMsg, noticeMsg.wLen );
			MessageOut(eCRITICAL_LOG,  "------------------------------------------------------------------------" );
			break;
		}
		default:
		{
			assert( !"invalid user status" );
			break;
		}
	}

	return true;
}

⌨️ 快捷键说明

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