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

📄 situation_exe.cpp

📁 墨香最新私服
💻 CPP
字号:
#include "stdafx.h"
#include "SITUATION_exe.h"

// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// Don't Touch me
// Ask taiyo if you wanna change
#ifdef ENCODESITUATION
#undef ENCODESITUATION
#endif
#define ENCODESITUATION(a)	a,


CONDITION_FUNC globalSITUATION[]=
{
	#include "SITUATION_Incl.h"
};

#ifdef ENCODESITUATION
#undef ENCODESITUATION
#endif
#define ENCODESITUATION(a)	BOOL a##(CObject * p)

// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!




// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// --------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------
// > Custom code list - 2003. 10. 30. taiyo
// Add user callback function (for SITUATION)
// 
// ex)	
// 1. Add ENCODESITUATION( yourCallBackFunctionName ) code in File"SITUATION_incl.h"
// 2. Your ENCODESITUATION( yourCallBackFunctionName ){ } function is implemented
// 3. Write your situation code!!
// --------------------------------------------------------------------------------------------
// #include header
#include "BossMonster.h"
#include "UserTable.h"
#include "BossMonsterManager.h"
#include "SkillInfo.h"
// #include header

ENCODESITUATION(IsTest)
{
	//bad
	return FALSE;
	//good
	return TRUE;
}
ENCODESITUATION(IsBossMonster65HPLessThan50)
{
/*	CBossMonster * pMonster = BOSSMONSTERMNGR->GetBoss();
	if(!pMonster) 
		return FALSE;
	BASE_MONSTER_LIST	* apr = pMonster->GetSMonsterList();
	
	if( apr->SkillInfo[2]->GetDelayTime() + pMonster->m_aiParam.AttackStartTime < gCurTime )
	{
		if( pMonster->GetLife() <= ((float)pMonster->GetMaxLife() / 2.f) )
		{
			return TRUE;
		}
	}
*/
	return FALSE;
}

⌨️ 快捷键说明

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