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.
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.
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..
I think you are right about it.
Which one should i edit there?
Quote:
Originally Posted by xToffer
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
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);
}
}
}
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.
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
How to make a scroll can't be use outzone like guild member summon scroll ? 01/18/2019 - SRO Private Server - 11 Replies How to make a scroll can't be use outzone like guild member summon scroll ?
or maybe like the job suits,
i want that scroll can be use at only towns, can't be use out the towns
thanks in advance!
how i can make other scroll of awakening? 10/21/2017 - Flyff Private Server - 12 Replies hellow elitepvpers
It's been about 1 month that I'm looking for how to create a new scroll to do awak, I need to create a new scroll for donator, can someone help me please?
Mit Scroll of Awakening drüber awaken. 09/06/2012 - Flyff Private Server - 16 Replies Ich habe nachgeguckt wie das gehen könnte aber ich finde keine weg das zu machen.
Ich möchte das man die Scroll of Awakening ohne zu canceln nochmal erwecken kann.
1.Scroll of Awakening anklicken.
2.Helmet erwecken.
3.Scroll of Awakening again wenn die erweckung nicht gut war.
Hilfe wäre schön mfg Selfmade <3
Scroll of Fix awakening 02/20/2012 - Flyff Private Server - 0 Replies Hellow someone knows source code for a scroll which gives an awake when use and can be use 3times in 1item?
[Source TuT] /gro mit kosten 'ala' Scroll of Awakening 01/07/2012 - Flyff Private Server - 12 Replies Damit der /gro Befehl genau wie die Scroll of Awakening einen Betrag für die Erweckung verlangt muss lediglich die Funktion
BOOL TextCmd_GenRandomOption( CScanner & s )
in der FuncTextCmd
wie folgt umgeschrieben/ausgetauscht werden werden: