Where can I change max piecing and max Ultimate upgrade?

04/11/2022 01:26 mew5151515#1
I try to search about flyff max upgrade tropic in elitepvpers site and now I can make Safe upgrade window work for +20 armor/weapon and Safe piercing window work for +10 [suit]

but it only work with the number in window I can't upgrade ultimate pass +10 and I can't piercing suit pass +4 slot.


Update : ****I can make suit piercing to 10 slot and normalweapon/Ultimate/armor to +20 now
But I can't find the way to make ultimate weapon +20 get 10 slot gem.
I think it is in UltimateWeapon.cpp but I don't know where to change.







Things I change in WndField.cpp

int CWndSmeltSafety::GetDefaultMaxSmeltValue(void)
{
assert(m_pItemElem != NULL);
int nDefaultMaxSmeltValue(0);
switch(m_eWndMode)
{
case WND_NORMAL:
{
nDefaultMaxSmeltValue = 20;
break;
}
case WND_ACCESSARY:
{
nDefaultMaxSmeltValue = 20;
break;
}
case WND_PIERCING:
{
if(m_pItemElem->GetProp()->dwItemKind3 == IK3_SUIT)
{
nDefaultMaxSmeltValue = 10;
}
else
{
nDefaultMaxSmeltValue = 10;
}
break;










Things I change in ItemUpgrade.cpp

if( pItemMain->m_nResistAbilityOption < 20 )

{
nPercent += 1000;
// 속성 제련의 두루마리 로그 남길것
ItemProp* pItemProp = pItemSmeltScr->GetProp();
if( pItemProp )
{
g_dpDBClient.SendLogSMItemUse( "1", pUser, pItemSmeltScr, pItemProp );
g_dpDBClient.SendLogSMItemUse( "2", pUser, NULL, pItemProp );
}
pUser->RemoveItem( (BYTE)( pItemSmeltScr->m_dwObjId ), 1 );

if( pItemMain->m_nResistAbilityOption <200 )
{
nPercent += 1000;
// 속성 제련의 두루마리 로그 남길것
ItemProp* pItemProp = pItemSmeltScr->GetProp();
if( pItemProp )
{
g_dpDBClient.SendLogSMItemUse( "1", pUser, pItemSmeltScr, pItemProp );
g_dpDBClient.SendLogSMItemUse( "2", pUser, NULL, pItemProp );
}
pUser->RemoveItem( (BYTE)( pItemSmeltScr->m_dwObjId ), 1 );




Things I change in ItemUpgrade.lua

tSuitProb = { 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000 }
tWeaponProb = { 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000 }

----------------------------------------------------------
-- General Smelting Probability --------------------------
----------------------------------------------------------
-- Overseas, the value is reduced by 10% from +4. (n * 0.9)
tGeneral = { 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000 };








Things I change in Ultimate_Ultimateweapon.txt

ULTIMATE_ENCHANT
{
1 1000000 //11%
2 1000000 //9%
3 1000000 //7%
4 1000000 //5%
5 1000000 //3%
6 1000000 //0.9%
7 1000000 //0.7%
8 1000000 //0.5%
9 1000000 //0.3%
10 1000000 //0.1%
11 1000000 //11%
12 1000000 //9%
13 1000000 //7%
14 1000000 //5%
15 1000000 //3%
16 1000000 //0.9%
17 1000000 //0.7%
18 1000000 //0.5%
19 1000000 //0.3%
20 1000000 //0.1%
}
04/11/2022 07:53 dpkidz#2
I'm not 100% sure, but after searching for ultimate piercing I found this.
#define MAX_PIERCING_ULTIMATE 5

Maybe that is something you need to change?

also I found this in piercing.cpp
CPiercing::SetUltimatePiercingSize

I have not tried to do any checking before, but it might help you get to the right path :)
04/12/2022 03:17 mew5151515#3
I also found this

#define MAX_JEWEL 10 in UltimateWeapon.h

But I can't find where to increase gem slot that show on Ultimate and set it to appear after + 10-15 or 15-20 so I don't know if it increase or not because it still show 5 slot on + 20 Ultimate.
04/12/2022 19:50 dpkidz#4
Quote:
Originally Posted by mew5151515 View Post
I also found this

#define MAX_JEWEL 10 in UltimateWeapon.h

But I can't find where to increase gem slot that show on Ultimate and set it to appear after + 10-15 or 15-20 so I don't know if it increase or not because it still show 5 slot on + 20 Ultimate.
yeah I see now that the one I found doesn't have to do with jewel haha, sorry.

I would probably start with making changes with the tooltip of the weapon, for example, make it possible that more then 5 slots shows on the weapon, when you get that working, you should have everything you need to implement a read for those extra 5 in the correct spots, I will start looking into this too as this was a bit challenging, just the thing I've been looking for.

Also have a feeling that it is such a simple edit in the end :p
04/12/2022 21:24 mew5151515#5
Quote:
Originally Posted by dpkidz View Post
yeah I see now that the one I found doesn't have to do with jewel haha, sorry.

I would probably start with making changes with the tooltip of the weapon, for example, make it possible that more then 5 slots shows on the weapon, when you get that working, you should have everything you need to implement a read for those extra 5 in the correct spots, I will start looking into this too as this was a bit challenging, just the thing I've been looking for.

Also have a feeling that it is such a simple edit in the end :p
I just start mod flyff around 10 day ago and I don't have code writing skill if you success with that can you share it?

In meantime I will looking in to file that change max upgrade window to +20 [Safe upgrade] if I can change anything.
04/12/2022 21:45 dpkidz#6
Quote:
Originally Posted by mew5151515 View Post
I just start mod flyff around 10 day ago and I don't have code writing skill if you success with that can you share it?

In meantime I will looking in to file that change max upgrade window to +20 [Safe upgrade] if I can change anything.
Ah, got it.
It is really just changing some small numbers, also ultimate_GemAbility.txt has to be changed too, that is where I started.
Then I checked on weapon tooltip, tried to make 5 more Gem spots show up after +10.
Then I changed the upgrade window to be able to handle 10 Gem's instead of 5.
Tried to put a Gem on 6th, did not work.
Looked more into and tried to find anything that simply said "5" and changed it to 10 (within the connection of ultimate and gem)
and voila.
I will release a tutorial on how to do it after I've made it look a little better and also changed all needed windows for the ultimate.

[Only registered and activated users can see links. Click Here To Register...]

This edit was fun :)
Expect a guide in a week or two. (maybe three, sorry will start to get busy with some stuff)
04/13/2022 11:03 mew5151515#7
I’m so grateful that you invest time in my problem I will wait for tutorial. :)
04/13/2022 14:00 Ruby-FlyFF#8
Add me on discord I would help you
Rubyfff#6190