Make a super scroll of awakening

03/21/2019 16:27 elitemember21#1
Hello
Is there a source that i can check out about this Super scroll of awakening similar from the scroll of Insanity flyff?

I wanna create a scroll that is similar to the normal awakening scroll but the only difference is that the Super awakening has no negative awakes.

Is there a source similar to what i'm asking?
Is there an easier way or way to create it without copying the normal Scroll of awakening code because i have no idea what to copy.

Please enlighten me.
03/21/2019 18:14 Lindanus#2
to make no negative awakes check your randomoption.inc
03/21/2019 19:13 Dr. Peacock#3
Search for your RandomOption.inc entrys...
Copy&Paste it,
Create a SuperRandomOption.inc and remove the negative awakes and add the % Chance from removed negative awakes to some of the positive
03/22/2019 02:41 tedfailon#4
Quote:
Originally Posted by Dr. Peacock View Post
Search for your RandomOption.inc entrys...
Copy&Paste it,
Create a SuperRandomOption.inc and remove the negative awakes and add the % Chance from removed negative awakes to some of the positive
Very interesting, I'd like to know too.Which specific code should we check for this one? Mind sharing?
03/22/2019 10:22 KingKeesie#5
Just edit the RandomOption.inc and remove the negatives or use the fixed_scrolls witch are been released. Or ofc do what peacock said
03/23/2019 07:38 69BOLT69#6
if you copy paste only it would take time to actually make it to work. please kindly do what they said check the related entries and u will find the right codes to replicate. there is no released source that has the exact codes that u need if thats what your looking for so it saves you wasting your time. Good Luck.
03/24/2019 17:41 Dr. Peacock#7
Quote:
Originally Posted by KingKeesie View Post
Just edit the RandomOption.inc and remove the negatives or use the fixed_scrolls witch are been released. Or ofc do what peacock said
If you use FixAwakening Scroll you need also to fix them too...
The Public code is a bit buggy...
You are also able to Awake you Gauntlets/Boots with STR Awakes and your Helmet/Gauntlets with Adoch Awakes... i already start to fix it and rewrite most of the released code, but stop'd working on it because i dont need it anymore.
03/25/2019 04:05 elitemember21#8
Quote:
Originally Posted by Dr. Peacock View Post
Search for your RandomOption.inc entrys...
Copy&Paste it,
Create a SuperRandomOption.inc and remove the negative awakes and add the % Chance from removed negative awakes to some of the positive
Quote:
Originally Posted by 69BOLT69 View Post
if you copy paste only it would take time to actually make it to work. please kindly do what they said check the related entries and u will find the right codes to replicate. there is no released source that has the exact codes that u need if thats what your looking for so it saves you wasting your time. Good Luck.

Thank you very much for your replies. I was able to replicate the code but i'm having a little trouble with this part.
Please take a look at the blue and red texts.

When i do this only the old awakening scroll is able to give awakes.
Quote:

int CRandomOptionProperty::GetRandomOptionKind( CItemElem* pItemElem )
{
ItemProp* pProp = pItemElem->GetProp();
switch( pProp->dwParts )
{
case PARTS_UPPER_BODY:
case PARTS_RWEAPON:
case PARTS_SHIELD:

#if __VER >= 12 // __J12_0
// °¢¼º °¡´É ÆÄÃ÷ Ãß°¡
case PARTS_HAND: // ¼Õ
case PARTS_FOOT: // ¹ß
case PARTS_CAP: // ¸Ó¸®

#endif // __J12_0
#ifdef __NEW_ITEM_VARUNA
{
if( pItemElem->GetProp()->IsBaruna() )
return -1;
else

// THE OLD AWAKENING WITH NEGATIVE AWAKES
return static_cast<int>( eAwakening );
// NEW AWAKENING ALL POSITIVE AWAKES
return static_cast<int>( eAwakeningNew );

}
#endif // __NEW_ITEM_VARUNA
case PARTS_CLOTH:
case PARTS_CLOAK:
//case PARTS_RING1:
//case PARTS_EARRING1:
//case PARTS_NECKLACE1:

#if __VER >= 12 // __J12_0
case PARTS_HAT: // °Ñ¿Ê ¸Ó¸®
case PARTS_GLOVE: // °Ñ¿Ê ¼Õ
case PARTS_BOOTS: // °Ñ¿Ê ¹ß
//case PARTS_RING1:
//case PARTS_EARRING1:
//case PARTS_NECKLACE1:
#endif // __J12_0
return static_cast<int>( eBlessing );
#if __VER >= 12 // __PET_0519
default:
{
// C±Þ ÀÌ»óÀÇ ½Ã½ºÅÛ ÆêÀΰ¡?
if( pProp->dwItemKind3 == IK3_EGG && pItemElem->m_pPet && pItemElem->m_pPet->GetLevel() >= PL_C )
return static_cast<int>( eSystemPet );
// ¸ÔÆêÀΰ¡?
else if( pProp->dwItemKind3 == IK3_PET )
return static_cast<int>( eEatPet );
break;
}
#endif // __PET_0519
}
return -1;
}
BOOL CRandomOptionProperty::GetParam( __int64 nRandomOptItem


BUT when i do this.


Quote:
// NEW AWAKENING ALL POSITIVE AWAKES
return static_cast<int>( eAwakeningNew );
// THE OLD AWAKENING WITH NEGATIVE AWAKES

return static_cast<int>( eAwakening );
Only the New awakening scroll will only give awakes.
How can i make both the scrolls to work? It seems it only accepts only one scroll at a time.

Hoping to hear back from you.
03/25/2019 04:19 Timelimits#9
under the void for ondouseitemtarget did you create a new case statement allowing your new eAwakeningNew and then declare the in the randomoption?

Might be a place to double check on however take what I say as random thoughts out loud since I'm not C++ developer, more of a rambling idiot than anything.
03/25/2019 05:24 elitemember21#10
Quote:
Originally Posted by Timelimits View Post
under the void for ondouseitemtarget did you create a new case statement allowing your new eAwakeningNew and then declare the in the randomoption?

Might be a place to double check on however take what I say as random thoughts out loud since I'm not C++ developer, more of a rambling idiot than anything.

Thanks for the reply. I have allowed eAwakeningNew in ondouseitemtarget and as mentioned the scroll is working if the code is over eAwakening.
Quote:

// NEW AWAKENING ALL POSITIVE AWAKES
return static_cast<int>( eAwakeningNew );
// THE OLD AWAKENING WITH NEGATIVE AWAKES

return static_cast<int>( eAwakening );

but if i use this one

// THE OLD AWAKENING WITH NEGATIVE AWAKES
return static_cast<int>( eAwakening );

// NEW AWAKENING ALL POSITIVE AWAKES
return static_cast<int>( eAwakeningNew );

the new scroll won't work.

My question is, how can i make both of them work at the same time.

i've tried to use "||"

return static_cast<int>( eAwakening ) || ( eAwakeningNew );
and
return static_cast<int>( eAwakening || eAwakeningNew );

It didn't work too.
03/25/2019 06:19 Lindanus#11
did you try

return static_cast<int>( ( eAwakening ) || ( eAwakeningNew ) );
03/25/2019 07:17 elitemember21#12
Quote:
Originally Posted by Lindanus View Post
did you try

return static_cast<int>( ( eAwakening ) || ( eAwakeningNew ) );
Thanks for the reply.
I just tried your code and both scrolls aren't working.
03/25/2019 07:33 Lindanus#13
i don't look your code before and if you send once the return the second return is useless...
you can send multiple values if i remember..

return static_cast<int>( eAwakening, eAwakeningNew );
03/25/2019 07:35 elitemember21#14
Quote:
Originally Posted by Lindanus View Post
i don't look your code before and if you send once the return the second return is useless...
you can send multiple values if i remember..

return static_cast<int>( eAwakening, eAwakeningNew );
Once again thank you for the reply. I have tried this before and unfortunately it didn't work.
03/25/2019 14:35 Rhyder`#15
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...]