当前位置: 首页>>代码示例>>C++>>正文


C++ LogAddTD函数代码示例

本文整理汇总了C++中LogAddTD函数的典型用法代码示例。如果您正苦于以下问题:C++ LogAddTD函数的具体用法?C++ LogAddTD怎么用?C++ LogAddTD使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了LogAddTD函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: gObjDel

void CDoppelganger::ClearMonsters()
{
	int Map = this->EventMap - 65;

	for(int X=0; X < DOPPELGANGER_MAX_MONSTERS;X++){
		if(this->CurrentMonster[X] > 0){
			if(gObj[this->CurrentMonster[X]].MapNumber == this->EventMap){
				gObjDel(this->CurrentMonster[X]);
				this->CurrentMonster[X] = -1;
			}
		}
	}
	
	///Clear Larvas
	for(int X=0; X < 5;X++){
		if(this->Larvas[X] > 0){
			if(gObj[this->Larvas[X]].MapNumber == this->EventMap){
				gObjDel(this->Larvas[X]);
				this->Larvas[X] = -1;
			}
		}
	}
		
	//Clear Chest's
	for(int X=0; X < 2;++X){
		if(this->SiverChestIndex[X] != NULL){
			if(gObj[this->SiverChestIndex[X]].MapNumber == this->EventMap){
				gObjDel(this->SiverChestIndex[X]);
				this->SiverChestIndex[X] = -1;
			}
		}
	}

	for(int X=0; X < 3;++X){
		if(this->MonsterBoss[X] != NULL){
			if(gObj[this->MonsterBoss[X]].MapNumber == this->EventMap){
				gObjDel(this->MonsterBoss[X]);
				this->MonsterBoss[X] = -1;
			}
		}
	}
	
	this->GoldenChestIndex = -1;
	this->MonstersCount = 0;

	LogAddTD("[Doppelganger] Monster Cleared");
}
开发者ID:Natzugen,项目名称:server-xmtur,代码行数:47,代码来源:Doppelganger.cpp

示例2: NpcAdniel

BOOL NpcAdniel(LPOBJ lpNpc,LPOBJ lpObj )
{
	if ( bCanChaosBox == TRUE )
	{
		PMSG_TALKRESULT pMsg;

		pMsg.h.c = 0xC3;
		pMsg.h.headcode = 0x30;
		pMsg.h.size = sizeof(pMsg);
		
		if ( lpObj->m_bPShopOpen == true )
		{
			LogAdd("[%s][%s] is Already Opening PShop, ChaosBox Failed",
				lpObj->AccountID, lpObj->Name);
			GCServerMsgStringSend(lMsg.Get(MSGGET(4, 194)), lpObj->m_Index, 1);
			return TRUE;
		}

		lpObj->m_IfState.type = 7;
		lpObj->m_IfState.state = 0;
		lpObj->m_IfState.use = 1;
		

		// 39 - entering acheron
		// 40 - arca war npc
		// 41 - mix npc

		pMsg.result = 41;
		lpObj->bIsChaosMixCompleted = false;
		pMsg.level1 = gDQChaosSuccessRateLevel1;
		pMsg.level2 = gDQChaosSuccessRateLevel2;
		pMsg.level3 = gDQChaosSuccessRateLevel3;
		pMsg.level4 = gDQChaosSuccessRateLevel4;
		pMsg.level5 = gDQChaosSuccessRateLevel5;
		pMsg.level6 = gDQChaosSuccessRateLevel6;

		DataSend(lpObj->m_Index, (LPBYTE)&pMsg, pMsg.h.size);

		GCAnsCsMapSvrTaxInfo(lpObj->m_Index, 1, g_CastleSiegeSync.GetTaxRateChaos(lpObj->m_Index));
		gObjInventoryTrans(lpObj->m_Index);

		LogAddTD("[%s][%s] Open Chaos Box", lpObj->AccountID, lpObj->Name);
		gObjItemTextSave(lpObj);
		gObjWarehouseTextSave(lpObj);
	}
	return true;
}
开发者ID:stimpy76,项目名称:zTeam-Source-Season8,代码行数:47,代码来源:NpcTalk.cpp

示例3: CGReqProgressQuestInfo

void CGReqProgressQuestInfo(PMSG_REQ_QUESTEXP_PROGRESS_INFO *pMsg, int aIndex)
{
    if( !OBJMAX_RANGE(aIndex) )
        return;

    if( !gObjIsConnected(aIndex) )
        return;

    if( !g_QuestExpProgMng.ChkQuestIndexIDToEpLimit(pMsg->quest_info_index_id, aIndex) )
    {
        LogAddTD("[QuestExp] - Error - [%s] [%d]", __FILE__, __LINE__);
        return;

    }    

    g_QuestExpProgMng.SendQuestProgressInfo(pMsg->quest_info_index_id, aIndex);
}
开发者ID:331515194,项目名称:zTeamS6.3,代码行数:17,代码来源:QuestExpProtocol.cpp

示例4: LogAddTD

int CLifeStone::DeleteLifeStone(int iIndex)
{
	if(iIndex < 0 || iIndex > OBJMAX)
	{
		return false;
	}

	LPOBJ lpLifeStone = &gObj[iIndex];

	if(lpLifeStone->lpGuild != NULL)
	{
		LogAddTD("[CastleSiege] LifeStone is broken - [%s]",
			lpLifeStone->lpGuild->Name);
		lpLifeStone->lpGuild->lpLifeStone = NULL;
	}
	return true;
}
开发者ID:stimpy76,项目名称:zTeam-Source-Season8,代码行数:17,代码来源:LifeStone.cpp

示例5: LogAddTD

void CKanturuBattleOfNightmare::ProcState_START()
{
	KANTURU_UTIL.NotifyKanturuUserMonsterCount(g_KanturuMonsterMng.GetAliveMonsterCount(),
		g_KanturuBattleUserMng.GetUserCount());

	int iIndex = this->m_iNightmareObjIndex;

	if ( gObj[iIndex].Live == FALSE )
	{
		this->SetSuccessValue(TRUE);

		LogAddTD("[ KANTURU ][ BattleOfNightmare ] Success!! Nightmare Die");
		g_KanturuBattleUserMng.LogBattleWinnerUserInfo(3, this->m_StateInfo[this->m_iBattleOfNightmareState].GetElapsedTime());

		this->SetNextState(this->m_iBattleOfNightmareState);
	}
}
开发者ID:AkiraJue,项目名称:OpenMuS9,代码行数:17,代码来源:KanturuBattleOfNightmare.cpp

示例6: LogAddTD

int CLifeStone::DeleteLifeStone(int iIndex) //Identical
{

	if(iIndex < 0 || iIndex > OBJMAX - 1)
	{
		return FALSE;
	}

	LPOBJ lpLifeStone = &gObj[iIndex];

	if(lpLifeStone->lpGuild)
	{
		LogAddTD("[CastleSiege] LifeStone is broken - [%s]",lpLifeStone->lpGuild->Name);
		lpLifeStone->lpGuild->lpLifeStone = 0;
	}
	return TRUE;
}
开发者ID:Natzugen,项目名称:server-xmtur,代码行数:17,代码来源:LifeStone.cpp

示例7: switch

int CCrywolf::CalcGettingScore(int iUserIndex, int iMonIndex, int iScoreType)
{
	if ( !gObjIsConnected(iUserIndex))
		return -1;

	int iAddMVPScore = 0;

	if ( CHECK_LIMIT(iMonIndex, OBJ_MAXMONSTER) != FALSE )
	{
		switch ( gObj[iMonIndex].Class )
		{
			case 349:
				iAddMVPScore = this->m_iMVPScoreTable[0];
				break;
			case 340:
				iAddMVPScore = this->m_iMVPScoreTable[1];
				break;
			case 344:
				iAddMVPScore = this->m_iMVPScoreTable[2];
				break;
			case 341:
				iAddMVPScore = this->m_iMVPScoreTable[3];
				break;
			case 345:
				iAddMVPScore = this->m_iMVPScoreTable[4];
				break;
			case 348:
				iAddMVPScore = this->m_iMVPScoreTable[5];
				break;
		}
	}

	if ( iScoreType == 6 )
	{
		iAddMVPScore = this->m_iMVPScoreTable[6];
	}

	gObj[iUserIndex].m_iCrywolfMVPScore += iAddMVPScore;

	LogAddTD("[ Crywolf ][MVP] Plus MVP Score : %d, Accumulated : %d [%s][%s]",
		iAddMVPScore, gObj[iUserIndex].m_iCrywolfMVPScore,
		gObj[iUserIndex].AccountID, gObj[iUserIndex].Name);

	return gObj[iUserIndex].m_iCrywolfMVPScore;
}
开发者ID:Natzugen,项目名称:IGCN---Season-5,代码行数:45,代码来源:Crywolf.cpp

示例8: GetTickCount

int CCrywolf::CheckStateTimeSync()
{
	if (this->m_iCrywolfState != CRYWOLF_STATE_NONE )
	{
		if ( this->m_StateTimeInfo[this->m_iCrywolfState].m_bUsed == FALSE )
		{
			return -1;
		}

		DWORD dwTime = GetTickCount();

		if ( this->m_StateTimeInfo[this->m_iCrywolfState].CheckContinuanceTime() == FALSE )
		{
			this->m_StateTimeInfo[this->m_iCrywolfState].ResetAppliedTime();

			if ( this->m_iCrywolfState == CRYWOLF_STATE_ENDCYCLE )
			{
				if ( this->m_iScheduleMode == 1 )
				{
					this->SetState(CRYWOLF_STATE_NOTIFY_1);
				}
				else
				{
					this->SetState(CRYWOLF_STATE_NONE);
				}
			}
			else
			{
				this->SetNextState(this->m_iCrywolfState);
			}
		}
		return 1;
	}

	for ( int i=0;i<m_StartTimeInfoCount;i++)
	{
		if ( this->m_StartTimeInfo[i].CheckScheduleTime() != FALSE )
		{
			LogAddTD("[ Crywolf ] Start Crywolf");
			this->SetState(this->m_StartTimeInfo[i].m_iStateNumber);
		}
	}

	return 0;
}
开发者ID:Natzugen,项目名称:IGCN---Season-5,代码行数:45,代码来源:Crywolf.cpp

示例9: memcpy

//5C9A60
void CCashItemPeriodSystem::GDReqPeriodItemInsert(LPOBJ lpObj, int iItemCode, int iItemEffectDate)//Identical
{
	PMSG_REQ_PERIODITEM_INSERT pMsg;
	int iEffectType1 =0;
	int iEffectType2 =0;
	CTime tExpireDate;
	int iEffectTime = 0;

	if( g_ItemAddOption.SearchItemEffectType(iItemCode, &iEffectType1, &iEffectType2, &iEffectTime) == false )
	{
		return;
	}

	if( iItemEffectDate == -1 )
	{
		iItemEffectDate = iEffectTime / 60;
	}

	int iOptionType = g_ItemAddOption.SearchItemOptionType(iItemCode);

	if( iOptionType == -1 )
	{
		return;
	}

	pMsg.btOptionType = iOptionType;
	pMsg.iUserIndex = lpObj->m_Index;
	pMsg.iUserGuid = lpObj->DBNumber;
	pMsg.iItemCode = iItemCode;
	pMsg.btItemEffectType1 = iEffectType1;
	pMsg.btItemEffectType2 = iEffectType2;
	pMsg.iItemPeriodDate = iItemEffectDate;
	memcpy(pMsg.chUserID, lpObj->Name, sizeof(pMsg.chUserID));

	tExpireDate = this->CalcItemUseEndTime(iItemEffectDate);

	wsprintf(pMsg.chExpireDate, "%d-%d-%d %d:%d", tExpireDate.GetYear(), tExpireDate.GetMonth(), tExpireDate.GetDay(), tExpireDate.GetHour(), tExpireDate.GetMinute());

	PHeadSubSetB((LPBYTE)&pMsg, 0xD0, 0x03, sizeof(PMSG_REQ_PERIODITEM_INSERT));

	cDBSMng.Send((char *)&pMsg, sizeof(PMSG_REQ_PERIODITEM_INSERT));

	LogAddTD("[CashShop][PeriodItemInsert Req] - ID : %s, Name : %s, ItemCode : %d, Effect1 : %d, Effect2 : %d, UseTime : %d, ExpireDate : %s",
		lpObj->AccountID, lpObj->Name, pMsg.iItemCode, pMsg.btItemEffectType1, pMsg.btItemEffectType2, pMsg.iItemPeriodDate, pMsg.chExpireDate);
}
开发者ID:331515194,项目名称:zTeamS6.3,代码行数:46,代码来源:CashItemPeriodSystem.cpp

示例10: memcpy

//006bd260
void CPeriodItemEx::DGPeriodItemExSelect(PMSG_ANS_PERIODITEMEX_SELECT* lpMsg)	//OK
{
	int iIndex = lpMsg->wUserIndex;

	if( iIndex < 0 || iIndex >= OBJMAX )
		return;

	LPOBJ lpObj = &gObj[iIndex];

	if( lpObj == NULL )
		return;

	if( lpObj->Type != OBJ_USER ||
		lpObj->Connected < PLAYER_LOGGED )
		return;

	if( lpMsg->btResultCode > 0 )
	{
		PERIOD_ITEMLIST ItemList;
		memcpy(&ItemList,&lpMsg->ItemList,sizeof(ItemList));

		int iItemCount = ItemList.btItemCount;
		DWORD dwDuration;

		for(int i = 0; i < iItemCount; i++)
		{
			dwDuration = this->GetLeftDate(ItemList.ItemData[i].lItemExpireDate);

			if( ItemList.ItemData[i].btItemType == 1 )
			{
				gObjAddBuffEffectForInGameShop(lpObj,ItemList.ItemData[i].wItemCode,dwDuration);
			}
			else if( ItemList.ItemData[i].btItemType == 2 )
			{
				AddPeriodItemData(lpObj,ItemList.ItemData[i].wItemCode,ItemList.ItemData[i].dwSerial,dwDuration,ItemList.ItemData[i].lItemExpireDate);
			}
	
			LogAddTD("[PeriodItemEx][SelectItemList] User Id : %s(%d), Name : %s, Item Code : %d(%s), PeriodType : %d, Serial : %u, Duration : %d, ExpireDate : %d",
				lpObj->AccountID,lpObj->DBNumber,lpObj->Name,ItemList.ItemData[i].wItemCode,ItemAttribute[ItemList.ItemData[i].wItemCode].Name,ItemList.ItemData[i].btItemType,
				ItemList.ItemData[i].dwSerial,dwDuration,ItemList.ItemData[i].lItemExpireDate);
		}
		//GCItemListSend(lpObj->m_Index);//test
		OnRequestPeriodItemList(lpObj);
	}
}
开发者ID:331515194,项目名称:zTeamS6.3,代码行数:46,代码来源:PeriodItemEx.cpp

示例11: sizeof

//00553c90	-> 100%
void CMasterLevelSystem::GDReqMasterLevelInfo(LPOBJ lpObj)	//OK
{
	if( lpObj->m_bMasterLevelDBLoad )
	{
		return;
	}
	// ----
	MLP_REQ_MASTERLEVEL_INFO pMsg;
	pMsg.h.set((LPBYTE)&pMsg, 0x30, sizeof(MLP_REQ_MASTERLEVEL_INFO));
	// ----
	pMsg.iUserIndex = lpObj->m_Index;
    memcpy(pMsg.szCharName, lpObj->Name, MAX_IDSTRING);
    pMsg.szCharName[MAX_IDSTRING] = 0;
	// ----
    cDBSMng.Send((char*)&pMsg, pMsg.h.size);
	// ----
    LogAddTD("[%s][%s] Request master level info to DB", lpObj->AccountID, lpObj->Name);
}
开发者ID:Natzugen,项目名称:test,代码行数:19,代码来源:MasterLevelSystem.cpp

示例12: LogAddTD

void CRaklionSelupan::SelupanAct_Teleport()
{
	return;

	int aIndex = this->GetSelupanObjIndex();
	int tIndex = this->GetSelupanTargetIndex();

	LPOBJ lpObj = &gObj[aIndex];
	LPOBJ lpTargetObj = &gObj[tIndex];
	
	if ( tIndex < 0 )
	{
		tIndex = aIndex;
	}

	TMonsterSkillManager::UseMonsterSkill(aIndex, tIndex, 1, 7, NULL);
	LogAddTD("[ RAKLION ][ Teleport ] Skill Using : Index(%d) %s", aIndex,lpObj->Name);
}
开发者ID:stimpy76,项目名称:zTeam-Source-Season8,代码行数:18,代码来源:RaklionSelupan.cpp

示例13: LogAddTD

void CHacktoolBlockEx::RemoveHacktoolData(WORD wHacktoolIndex, char * pchFilename)
{
	for( int i = 0; i < HACKTOOL_DATA_SIZE; i++ )
	{
		if(		this->m_HacktoolData[i].bIsUsed == 1 
			&&	this->m_HacktoolData[i].wIndex	== wHacktoolIndex )
		{
			if( !strcmp(this->m_HacktoolData[i].chFilename, pchFilename) )
			{
				LogAddTD("[HacktoolBlockEx][Remove Hacktool Data] Remove Data Name : %s, Index : %d, CheckType : %d, BlockType : %d",
					this->m_HacktoolData[i].chFilename, this->m_HacktoolData[i].wIndex,
					this->m_HacktoolData[i].btHackCheckType, this->m_HacktoolData[i].btHackBlockType);
				// ----
				this->m_HacktoolData[i].Clear();
			}
		}
	}
}
开发者ID:331515194,项目名称:zTeamS6.3,代码行数:18,代码来源:HacktoolBlockEx.cpp

示例14: LogAddTD

//----- (00563D30) --------------------------------------------------------
BOOL CMercenary::DeleteMercenary(int iIndex)
{
	if ( OBJMAX_RANGE(iIndex) == FALSE )
	{
		return FALSE;
	}

	this->m_iMercenaryCount--;

	LogAddTD("[CastleSiege] Mercenary is broken [%d] - [%d]", iIndex, this->m_iMercenaryCount);

	if ( this->m_iMercenaryCount < 0 )
	{
		this->m_iMercenaryCount = 0;
	}

	return TRUE;
}
开发者ID:ADMTec,项目名称:GameServer,代码行数:19,代码来源:Mercenary.cpp

示例15: LogAddTD

int TMonsterAIGroup::FindGroupLeader(int iGroupNumber)
{
    if ( iGroupNumber < 0 || iGroupNumber >= MAX_MONSTER_AI_GROUP )
    {
        LogAddTD("[Monster AI Group] FindGroupLeader() Error - (GroupNumber=%d)", iGroupNumber);
        return -1;
    }

    for ( int i=0; i<MAX_MONSTER_AI_GROUP_MEMBER; i++)
    {
        if ( TMonsterAIGroup::s_MonsterAIGroupMemberArray[iGroupNumber][i].m_iRank == 0 )
        {
            return TMonsterAIGroup::s_MonsterAIGroupMemberArray[iGroupNumber][i].m_iObjIndex;
        }
    }

    return -1;
}
开发者ID:stimpy76,项目名称:OpenMuS9,代码行数:18,代码来源:TMonsterAIGroup.cpp


注:本文中的LogAddTD函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。