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

📄 logic_else.cpp

📁 决战帝王1.5武神降临对喜爱决战的玩家共享研究用
💻 CPP
📖 第 1 页 / 共 2 页
字号:

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "EXIST_ITEM_TYPE" ) )
	{
		m_LogicElse = LOGIC_EXIST_ITEM_TYPE;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "ABSENT_ITEM_TYPE" ) )
	{
		m_LogicElse = LOGIC_ABSENT_ITEM_TYPE;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "EXIST_MAGIC" ) )
	{
		m_LogicElse = LOGIC_EXIST_MAGIC;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "ABSENT_MAGIC" ) )
	{
		m_LogicElse = LOGIC_ABSENT_MAGIC;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "TIME" ) )
	{
		m_LogicElse = LOGIC_TIME;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "RAND" ) )
	{
		m_LogicElse = LOGIC_RAND;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
*/
	m_bAnd = TRUE;
}

void LOGIC_ELSE::Parse_or(char *pBuf)
{
	int index = 0, i = 0;
	char temp[1024];

	index += ParseSpace( temp, pBuf+index );

	if( !strcmp( temp, "LEVEL" ) )
	{
		m_LogicElse = LOGIC_LEVEL;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "EXIST_ITEM" ) )
	{
		m_LogicElse = LOGIC_EXIST_ITEM;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "EXIST_EVENT_ITEM" ) )
	{
		m_LogicElse = LOGIC_EXIST_EVENT_ITEM;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "ABSENT_ITEM" ) )
	{
		m_LogicElse = LOGIC_ABSENT_ITEM;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "EXIST_EVENT" ) )
	{
		m_LogicElse = LOGIC_EXIST_EVENT;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "ABSENT_EVENT" ) )
	{
		m_LogicElse = LOGIC_ABSENT_EVENT;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "WEIGHT" ) )
	{
		m_LogicElse = LOGIC_WEIGHT;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );	// SAY
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );	// Item uid
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );	// No
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );	// Item uid	
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );	// No
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );	// Item uid
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "CHECK_ITEMSLOT" ) )
	{
		m_LogicElse = LOGIC_CHECK_ITEMSLOT;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );	// SAY
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );	// Item uid
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );	// No
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );	// Item uid	
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );	// No
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );	// Item uid
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "MONEY" ) )
	{
		m_LogicElse = LOGIC_MONEY;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp ); // min
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp ); // max
	}
	else if( !strcmp( temp, "RAND" ) )
	{
		m_LogicElse = LOGIC_RAND;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "RR_TIME" ) )
	{
		m_LogicElse = LOGIC_RR_TIME;
	}
	else if( !strcmp( temp, "RR_MAX_USER" ) )
	{
		m_LogicElse = LOGIC_RR_MAX_USER;
	}

/*	else if( !strcmp( temp, "GENDER" ) )
	{
		m_LogicElse = LOGIC_GENDER;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "DN" ) )
	{
		m_LogicElse = LOGIC_DN;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "HP" ) )
	{
		m_LogicElse = LOGIC_HP;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "MP" ) )
	{
		m_LogicElse = LOGIC_MP;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "STR" ) )
	{
		m_LogicElse = LOGIC_STR;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "DEX" ) )
	{
		m_LogicElse = LOGIC_DEX;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "INT" ) )
	{
		m_LogicElse = LOGIC_INT;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "WISDOM" ) )
	{
		m_LogicElse = LOGIC_WISDOM;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "CHARM" ) )
	{
		m_LogicElse = LOGIC_CHARM;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "CON" ) )
	{
		m_LogicElse = LOGIC_CON;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "DMAIGC" ) )
	{
		m_LogicElse = LOGIC_DMAGIC;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "WMAGIC" ) )
	{
		m_LogicElse = LOGIC_WMAGIC;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "BMAGIC" ) )
	{
		m_LogicElse = LOGIC_BMAGIC;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "SWORD" ) )
	{
		m_LogicElse = LOGIC_SWORD;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "SPEAR" ) )
	{
		m_LogicElse = LOGIC_SPEAR;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "AXE" ) )
	{
		m_LogicElse = LOGIC_AXE;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "BOW" ) )
	{
		m_LogicElse = LOGIC_BOW;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "KNUCKLE" ) )
	{
		m_LogicElse = LOGIC_KNUCKLE;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "WEAPONMAKE" ) )
	{
		m_LogicElse = LOGIC_WEAPONMAKE;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "ARMORMAKE" ) )
	{
		m_LogicElse = LOGIC_ARMORMAKE;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "ACCMAKE" ) )
	{
		m_LogicElse = LOGIC_ACCMAKE;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "POTIONMAKE" ) )
	{
		m_LogicElse = LOGIC_POTIONMAKE;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "COOKING" ) )
	{
		m_LogicElse = LOGIC_COOKING;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "EXIST_ITEM_TYPE" ) )
	{
		m_LogicElse = LOGIC_EXIST_ITEM_TYPE;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "ABSENT_ITEM_TYPE" ) )
	{
		m_LogicElse = LOGIC_ABSENT_ITEM_TYPE;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "EXIST_MAGIC" ) )
	{
		m_LogicElse = LOGIC_EXIST_MAGIC;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "ABSENT_MAGIC" ) )
	{
		m_LogicElse = LOGIC_ABSENT_MAGIC;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "TIME" ) )
	{
		m_LogicElse = LOGIC_TIME;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
	else if( !strcmp( temp, "RAND" ) )
	{
		m_LogicElse = LOGIC_RAND;

		index += ParseSpace( temp, pBuf+index );	m_LogicElseInt[i++] = atoi( temp );
	}
*/
	m_bAnd = FALSE;
}

⌨️ 快捷键说明

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