Register for your free account! | Forgot your password?

You last visited: Today at 13:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



RarityItem.inc

Discussion on RarityItem.inc within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
xToffer's Avatar
 
elite*gold: 0
Join Date: Apr 2018
Posts: 139
Received Thanks: 18
RarityItem.inc

how to i write this in rarityitem.inc?

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;
}

BOOL CProject::LoadSkillUp()
{
	CScript s;
	if (!s.Load("propSkillLvlup.txt"))
	{
		WRITE_ERROR();
		return FALSE;
	}

	SkillUpProp prop;
	ZeroMemory(&prop, sizeof(prop));

	int nMax = s.GetNumber();
	for (int i = 0; i < nMax; i++)
	{
		prop.dwSkillID = s.GetNumber();
		prop.dwItemID = s.GetNumber();
		prop.nCash = s.GetNumber();
		
		m_map_SkillUp.insert(MAP_SKILLUP::value_type(prop.dwSkillID, prop.dwItemID));
		m_map_SkillUp2.insert(MAP_SKILLUP2::value_type(prop.dwSkillID, prop.nCash));
		//Error("%d, %d, %d", prop.dwSkillID, prop.dwItemID, prop.nCash);
	}
	return TRUE;
}
thanks youuu so much
xToffer is offline  
Old 04/10/2018, 10:52   #2
 
xToffer's Avatar
 
elite*gold: 0
Join Date: Apr 2018
Posts: 139
Received Thanks: 18
bump
xToffer is offline  
Old 04/10/2018, 20:57   #3
 
elite*gold: 294
Join Date: Jun 2009
Posts: 407
Received Thanks: 587
loop 4 times.

Get the first string or number until it ends with a whitespace.
Get the next number and set it to nMax variable.

Loop over nMax
Get the next string or number until it ends with a whitespace, and not use it at all
Get a number and set it to a variable.
Get another number and set it to a variable.
switch through i to insert the last two grabbed numbers in to a different map
Get another number or string and ignore it once again.

Code:
wew 2 imba 1 1 1 2 BoboItimPuta

repeat 3 more times.
Avalion is offline  
Thanks
2 Users
Old 04/10/2018, 21:26   #4
 
xToffer's Avatar
 
elite*gold: 0
Join Date: Apr 2018
Posts: 139
Received Thanks: 18
Quote:
Originally Posted by Avalion View Post
loop 4 times.

Get the first string or number until it ends with a whitespace.
Get the next number and set it to nMax variable.

Loop over nMax
Get the next string or number until it ends with a whitespace, and not use it at all
Get a number and set it to a variable.
Get another number and set it to a variable.
switch through i to insert the last two grabbed numbers in to a different map
Get another number or string and ignore it once again.

Code:
wew 2 imba 1 1 1 2 BoboItimPuta

repeat 3 more times.
this?
Code:
	RandomOptItem	2	IDS_RARITY_000001	60	90000000
	{
		DST_STAT_ALLUP		8
		DST_SPELL_RATE		5
		DST_MP_MAX_RATE		5
	}
xToffer is offline  
Reply


Similar Threads Similar Threads
LTG Account 2.xx KD inc. 14 d Satellite Scanner inc. 70 perm Items
07/15/2015 - Combat Arms Trading - 57 Replies
Hello fellows, first of, this is not my account. A friend stopped playing Combat Arms and so he sells it. You can change the name or leave it as it is; it is a quite famous account by the way. Screens: (More of them by tomorrow) image: http://i.epvpimg.com/ikpqg.jpg image: http://i.epvpimg.com/NYTwh.jpg image: http://i.epvpimg.com/fnOvd.jpg image: http://i.epvpimg.com/sMXxg.jpg image: http://i.epvpimg.com/OQh1b.jpg image: http://i.epvpimg.com/NthOf.jpg
ㄨ [B] Fiesta Online Acc [inc. 85er Krieger] + Acc [inc. 35200 Taler]ㄨ
11/24/2014 - Trading - 11 Replies
Hallo Leute. :) Ich verkaufe meinen Fiesta Online Account! Mit 5 Charaktern! -• Auf APOLINE !! •- Imba Krieger Level 85, Magier Level 41, Kleri Level 33, Jäger Level 26 und aus Fun erstellt einen Level 17er Joker! Krieger: Level 85.
[Selling] BNET Acc 5x90 WoW (Inc WoD), SC2 (Inc HOTS), Diablo 3 (Inc ROS)
05/01/2014 - World of Warcraft Trading - 11 Replies
WoW (Include WoD, 90 boost used) 90 shaman (full gear, both enc and ele) 90 mage (full gear) 90 k (496 ilvl pvp gear) 90 rogue (s14 pvp gear) 90 hunter (bad gear) about 3k gold, no ach, a few mounts, no pve set
[Selling] BNET Acc 5x90 WoW (Inc WoD), SC2 (Inc HOTS), Diablo 3 (Inc ROS)
05/01/2014 - Diablo 3 Trading - 15 Replies
WoW (Include WoD, 90 boost used) 90 shaman (full gear, both enc and ele) 90 mage (full gear) 90 k (496 ilvl pvp gear) 90 rogue (s14 pvp gear) 90 hunter (bad gear) about 3k gold, no ach, a few mounts, no pve set



All times are GMT +1. The time now is 14:00.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.