RarityItem.inc

06/10/2018 00:36 Tiparaco#1
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;
}
i tryed with that but is not working , world server crash

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

}
Any help ? , thanks.
06/10/2018 10:21 pDestroyer#2
You have to put this 4 times
Code:
	for (int i = 0; i < 4; i++)
06/10/2018 21:52 Tiparaco#3
hmm

help
06/11/2018 19:12 alfredico#4
The first loop forces to make it x4 times. The loading is very lame, even for use flyff style.

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

}

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

}

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

}

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

}
06/11/2018 19:25 Dr. Peacock#5
Quote:
Originally Posted by alfredico View Post
The first loop forces to make it x4 times. The loading is very lame, even for use flyff style.

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

}

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

}

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

}

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

}
Are you sure to use x4 Times ''SNOX1 9'' , why x4 the same code ? o:
Isn't it like this:
---------------------
SNOX1 = Rare
SNOX2 = Goodly
SNOX3 = Epic
SNOX4 = Legendary
---------------------

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

}

SNOX3 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

}

SNOX4 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

}
PS: I dont know the FULL Source code.
06/11/2018 19:34 alfredico#6
Quote:
Originally Posted by Dr. Peacock View Post
Are you sure to use x4 Times ''SNOX1 9'' , why x4 the same code ? o:
Isn't it like this:
---------------------
SNOX1 = Rare
SNOX2 = Goodly
SNOX3 = Epic
SNOX4 = Legendary
---------------------

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

}

SNOX3 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

}

SNOX4 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

}
PS: I dont know the FULL Source code.
Doesn't matter the text.
for (int i = 0; i < 4; i++)
{
s.GetToken();
int nMax = s.GetNumber();

Is just reading the string whatsoever you put.
06/11/2018 20:36 Tiparaco#7
still crash..

2018/ 6/11 15:36:22 LoadPropMover : bIfParts엔 -1을 넣으면 안된다. 10

컬럼이 밀렸거나 워킹폴더를 잘못지정했을수도있음

2018/ 6/11 15:36:22 Last read:10, ID:10 is duplicated. 컬럼이 밀려도 이런에러가 난다. FILE:propMover.txt


2018/ 6/11 15:36:51 LoadPropMover : bIfParts엔 -1을 넣으면 안된다. 10

컬럼이 밀렸거나 워킹폴더를 잘못지정했을수도있음

2018/ 6/11 15:36:51 Last read:10, ID:10 is duplicated. 컬럼이 밀려도 이런에러가 난다. FILE:propMover.txt


2018/ 6/11 15:36:51 OpenProject ERROR check Masquerade.prj

2018/ 6/11 15:36:58 LoadPropMover : bIfParts엔 -1을 넣으면 안된다. 10

컬럼이 밀렸거나 워킹폴더를 잘못지정했을수도있음

2018/ 6/11 15:36:58 Last read:10, ID:10 is duplicated. 컬럼이 밀려도 이런에러가 난다. FILE:propMover.txt


2018/ 6/11 15:36:58 OpenProject ERROR check Masquerade.prj

I dont know why this error , because when i dont have the system i dont get this error ..
06/11/2018 22:27 Burdenz2007#8
Quote:
Originally Posted by Tiparaco View Post
still crash..

2018/ 6/11 15:36:22 LoadPropMover : bIfParts엔 -1을 넣으면 안된다. 10

컬럼이 밀렸거나 워킹폴더를 잘못지정했을수도있음

2018/ 6/11 15:36:22 Last read:10, ID:10 is duplicated. 컬럼이 밀려도 이런에러가 난다. FILE:propMover.txt


2018/ 6/11 15:36:51 LoadPropMover : bIfParts엔 -1을 넣으면 안된다. 10

컬럼이 밀렸거나 워킹폴더를 잘못지정했을수도있음

2018/ 6/11 15:36:51 Last read:10, ID:10 is duplicated. 컬럼이 밀려도 이런에러가 난다. FILE:propMover.txt


2018/ 6/11 15:36:51 OpenProject ERROR check Masquerade.prj

2018/ 6/11 15:36:58 LoadPropMover : bIfParts엔 -1을 넣으면 안된다. 10

컬럼이 밀렸거나 워킹폴더를 잘못지정했을수도있음

2018/ 6/11 15:36:58 Last read:10, ID:10 is duplicated. 컬럼이 밀려도 이런에러가 난다. FILE:propMover.txt


2018/ 6/11 15:36:58 OpenProject ERROR check Masquerade.prj

I dont know why this error , because when i dont have the system i dont get this error ..
Then don't use this system if you cant handle this errors. ;)

Back to the topic.

You got problems with yer propmover i guess. :rolleyes:
06/12/2018 23:13 Tiparaco#9
still not working.
06/13/2018 19:07 alfredico#10
Check propmover.txt and Masquerade.prj
06/13/2018 20:44 Tiparaco#11
Quote:
Originally Posted by alfredico View Post
Check propmover.txt and Masquerade.prj
Wait but i dont made changes on propmover.txt and masquerade.prj .. if i remove the system of rarity works , i only modify the source , im using the v15 clean resource , ..
06/13/2018 20:55 alfredico#12
Quote:
Originally Posted by Tiparaco View Post
Wait but i dont made changes on propmover.txt and masquerade.prj .. if i remove the system of rarity works , i only modify the source , im using the v15 clean resource , ..
Nothing more to say. If you are having problems with the system, don't use it or pay someone to fix it.
The error might come from system but I doubt is related to the loading, hard to tell without seeing the whole system.
06/14/2018 03:56 Dr. Peacock#13
Quote:
Originally Posted by alfredico View Post
Nothing more to say. If you are having problems with the system, don't use it or pay someone to fix it.
The error might come from system but I doubt is related to the loading, hard to tell without seeing the whole system.
SkyFire Source...