Make a super scroll of awakening

03/25/2019 15:29 elitemember21#16
Quote:
Originally Posted by Rhyder` View Post
I have one and i sell it pm me if you want ��

Proof (Normal): [Only registered and activated users can see links. Click Here To Register...]
Proof (All Pisitive): [Only registered and activated users can see links. Click Here To Register...]
Thanks for offering but i'm not interested because i'm trying to find the solution to return two values at the same time.

Maybe you can just help me?
03/25/2019 18:18 Rhyder`#17
Quote:
Originally Posted by elitemember21 View Post
Thanks for offering but i'm not interested because i'm trying to find the solution to return two values at the same time.

Maybe you can just help me?
the idea already given to those who comment to your thread! you must understand what they say and don't wait that they will code it for you because they won't.
03/25/2019 18:50 xToffer#18
.
03/26/2019 06:47 elitemember21#19
Okay i have tried this code and it's working However it has a little confusing problem because if you use the scroll on HELMET, SUIT, GLOVES and BOOTS it will read the "Awakening" values in randomoption.inc that gives me NEGATIVE awakes and if i use it on Shield and Weapon it will read the "AwakeingSuper" in randomoption.inc with ALL THE POSITIVE awakes.


I wonder what the problem is.
Hope to hear back from you guys.
03/26/2019 14:19 xToffer#20
Quote:
Originally Posted by elitemember21 View Post
Okay i have tried this code and it's working However it has a little confusing problem because if you use the scroll on HELMET, SUIT, GLOVES and BOOTS it will read the "Awakening" values in randomoption.inc that gives me NEGATIVE awakes and if i use it on Shield and Weapon it will read the "AwakeingSuper" in randomoption.inc with ALL THE POSITIVE awakes.


I wonder what the problem is.
Hope to hear back from you guys.
check if you miss something, and change it also in randomoption.inc.. not just str lol XD like awakening have str,sta,dex,int same as in awakeningsuper..
03/26/2019 14:57 Rhyder`#21
at this function
Code:
CRandomOptionProperty::AwakeningExtension
check your Enumeration lol
03/26/2019 15:18 elitemember21#22
Quote:
Originally Posted by Rhyder` View Post
at this function
Code:
CRandomOptionProperty::AwakeningExtension
check your Enumeration lol
I think you are right about it.
Which one should i edit there?

Quote:
Originally Posted by xToffer View Post
check if you miss something, and change it also in randomoption.inc.. not just str lol XD like awakening have str,sta,dex,int same as in awakeningsuper..

Thanks for the reply.
I have triple checked everything and everything is in place as i mentioned the scroll is working fine if i use it on Weapon, shield and suit. All it's awakening values such as str, dex, int, sta , speed, critical chance etc are working but if i use it on gloves, helmet and boots it will give negative awakes.

According this Rhyder i should check the enumeration here
CRandomOptionProperty::AwakeningExtension
03/26/2019 16:09 xToffer#23
Quote:
Originally Posted by elitemember21 View Post
I think you are right about it.
Which one should i edit there?




Thanks for the reply.
I have triple checked everything and everything is in place as i mentioned the scroll is working fine if i use it on Weapon, shield and suit. All it's awakening values such as str, dex, int, sta , speed, critical chance etc are working but if i use it on gloves, helmet and boots it will give negative awakes.

According this Rhyder i should check the enumeration here
CRandomOptionProperty::AwakeningExtension
you miss this:
Code:
	for (DWORD i = 0; i < m_aRandomOption[eAwakeningSuper].size(); i++)
	{
		RANDOM_OPTION* pRandomOption = &m_aRandomOption[eAwakeningSuper][i];
		int nProb = (i == 0 ?
			m_aRandomOption[eAwakeningSuper][i].nProb :
			m_aRandomOption[eAwakeningSuper][i].nProb - m_aRandomOption[eAwakeningSuper][i - 1].nProb);

		for (int j = 0; j < eAwakeningExtension; j++)
		{
			int iRandomOptionKindIndex = GetRandomOptionKindIndex(eAwakeningSuper, PARTS_HAND + j);
			for (int k = 0; k < 6; k++)
				if (pRandomOption->nDst == anDst[j][k])
				{
					RANDOM_OPTION ro(pRandomOption);
					ro.nProb = anTotal[j] + nProb;
					anTotal[j] = ro.nProb;
					m_aRandomOption[iRandomOptionKindIndex].push_back(ro);
				}
		}
	}
03/26/2019 16:15 elitemember21#24
Quote:
Originally Posted by xToffer View Post
you miss this:
Code:
	for (DWORD i = 0; i < m_aRandomOption[eAwakeningSuper].size(); i++)
	{
		RANDOM_OPTION* pRandomOption = &m_aRandomOption[eAwakeningSuper][i];
		int nProb = (i == 0 ?
			m_aRandomOption[eAwakeningSuper][i].nProb :
			m_aRandomOption[eAwakeningSuper][i].nProb - m_aRandomOption[eAwakeningSuper][i - 1].nProb);

		for (int j = 0; j < eAwakeningExtension; j++)
		{
			int iRandomOptionKindIndex = GetRandomOptionKindIndex(eAwakeningSuper, PARTS_HAND + j);
			for (int k = 0; k < 6; k++)
				if (pRandomOption->nDst == anDst[j][k])
				{
					RANDOM_OPTION ro(pRandomOption);
					ro.nProb = anTotal[j] + nProb;
					anTotal[j] = ro.nProb;
					m_aRandomOption[iRandomOptionKindIndex].push_back(ro);
				}
		}
	}

Thanks for the reply. I actually have that already.
I wonder what the issue is.
It seems to work on other parts like the suit , weapon and shield but on other parts it gives negative stats.
03/26/2019 17:03 Rhyder`#25
Quote:
Originally Posted by elitemember21 View Post
Thanks for the reply. I actually have that already.
I wonder what the issue is.
It seems to work on other parts like the suit , weapon and shield but on other parts it gives negative stats.
because you have two directory of enumeration :) that's why it does that :P clue make the enumeration could do one place by place :P

Code:
if(Sample == TRUE)
//.. one enum
else
//..other enum
03/26/2019 18:22 elitemember21#26
Quote:
Originally Posted by Rhyder` View Post
because you have two directory of enumeration :) that's why it does that :P clue make the enumeration could do one place by place :P

Code:
if(Sample == TRUE)
//.. one enum
else
//..other enum
Can't you just share it. I'm not sure if you're actually helping me or you're trolling.
Anyways i'll just wait. Thanks anyway
03/26/2019 18:24 Rhyder`#27
Quote:
Originally Posted by elitemember21 View Post
Can't you just share it. I'm not sure if you're actually helping me or you're trolling.
Anyways i'll just wait. Thanks anyway
I just want you to learn :p
03/26/2019 18:36 elitemember21#28
Quote:
Originally Posted by Rhyder` View Post
I just want you to learn :p
Sorry man but i'm not good as you, i'm a bit new.
I'll just wait other for other users to actually help me with my problem.
03/26/2019 18:39 Rhyder`#29
Quote:
Originally Posted by elitemember21 View Post
Sorry man but i'm not good as you, i'm a bit new.
I'll just wait other for other users to actually help me with my problem.
How could you be good as we, if you dont learn by yourself :mofo:
03/26/2019 18:45 elitemember21#30
It seems to work on other parts like the suit , weapon and shield but on other parts it gives negative stats.
Anyone? I can't seem to find the issue.