RarityItem.inc

09/07/2018 00:44 Dattix#1
How can i write this ?

im getting this error and world server crash LoadPropMover : bIfParts

Code:
BOOL CProject::LoadRarityProp()
{
	CScript s;
	if (!s.Load("RarityItem.inc"))
		return FALSE;

	for (int i = 0; i < 4; i++)
	{
		s.GetToken();
		int nMax = s.GetNumber();
		s.GetToken();	// {
		for (int y = 0; y < nMax; y++)
		{
			int nDestParam = s.GetNumber();
			int nRarity = s.GetNumber();
			//Error("[%d]: nDestParam: %d, nRarity: %d", i, nDestParam, nRarity);
			switch (i)
			{
			case 0:
				m_map_Rarity1.insert(MAP_RARITY1::value_type(nDestParam, nRarity)); break;
			case 1:
				m_map_Rarity2.insert(MAP_RARITY2::value_type(nDestParam, nRarity)); break;
			case 2:
				m_map_Rarity3.insert(MAP_RARITY3::value_type(nDestParam, nRarity)); break;
			case 3:
				m_map_Rarity4.insert(MAP_RARITY4::value_type(nDestParam, nRarity)); break;
			}
		}
		s.GetToken();
	}
	return TRUE;
}
i tried this but not working

Code:
SNOX1 9
{
	DST_STAT_ALLUP 	16
	DST_STR 	16
	DST_STA 	16
	DST_DEX	16
	DST_INT 	16
	DST_CHR_CHANCECRITICAL 	50
	DST_CRITICAL_BONUS 	50
	DST_SPELL_RATE 	5
	DST_SPEED 	5

}

SNOX2 15
{
	DST_STAT_ALLUP 	30
	DST_STR 	30
	DST_STA 	30
	DST_DEX	30
	DST_INT 	30
	DST_CHR_CHANCECRITICAL 	75
	DST_CRITICAL_BONUS 	75
	DST_SPELL_RATE 	10
	DST_SPEED 	10
	DST_ATKPOWER_RATE 	5
	DST_HP_MAX_RATE 	5
	DST_FP_MAX_RATE 	5
	DST_MP_MAX_RATE	5
	DST_MONSTER_DMG	1
	DST_PVP_DMG	1

}

SNOX3 15
{
	DST_STAT_ALLUP 	50
	DST_STR 	50
	DST_STA 	50
	DST_DEX	50
	DST_INT 	50
	DST_CHR_CHANCECRITICAL 	100
	DST_CRITICAL_BONUS 	100
	DST_SPELL_RATE 	15
	DST_SPEED 	15
	DST_ATKPOWER_RATE 	15
	DST_HP_MAX_RATE 	15
	DST_FP_MAX_RATE 	15
	DST_MP_MAX_RATE	15
	DST_MONSTER_DMG	2
	DST_PVP_DMG	2

}

SNOX4 15
{
	DST_STAT_ALLUP 	100
	DST_STR 	100
	DST_STA 	100
	DST_DEX	100
	DST_INT 	100
	DST_CHR_CHANCECRITICAL 	150
	DST_CRITICAL_BONUS 	150
	DST_SPELL_RATE 	20
	DST_SPEED 	20
	DST_ATKPOWER_RATE 	25
	DST_HP_MAX_RATE 	25
	DST_FP_MAX_RATE 	25
	DST_MP_MAX_RATE	25
	DST_MONSTER_DMG	5
	DST_PVP_DMG	5

}
thanks

bump
09/08/2018 01:24 Dattix#2
bump