I added an alignment but it didn't appear in the client
and with a friend's help we figured out that the metin2client.bin has the function in it
we need to ( add the new alignments ) to metin2client.bin
it is like this in the locale.py
the function in the metin2client.bin
waiting for you.
thanks in advance
via PM
and with a friend's help we figured out that the metin2client.bin has the function in it
we need to ( add the new alignments ) to metin2client.bin
it is like this in the locale.py
Quote:
if alignment >= 25000:
return TITLE_NAME_LIST[0]
elif alignment >= 20000:
return TITLE_NAME_LIST[1]
elif alignment >= 12000:
return TITLE_NAME_LIST[2]
elif alignment >= 8000:
return TITLE_NAME_LIST[3]
elif alignment >= 4000:
return TITLE_NAME_LIST[4]
elif alignment >= 1000:
return TITLE_NAME_LIST[5]
elif alignment >= 0:
return TITLE_NAME_LIST[6]
elif alignment > -4000:
return TITLE_NAME_LIST[7]
elif alignment > -8000:
return TITLE_NAME_LIST[8]
elif alignment > -12000:
return TITLE_NAME_LIST[9]
elif alignment > -20000:
return TITLE_NAME_LIST[10]
elif alignment > -25000:
return TITLE_NAME_LIST[11]
return TITLE_NAME_LIST[12]
the function in the metin2client.bin
We need to change it or add new.Quote:
int __thiscall sub_401640
{
__int16 v1; // ax@1
int result; // eax@2
v1 = *(_WORD *)(this + 372);
if ( v1 < 12000 )
{
if ( v1 < 8000 )
{
if ( v1 < 4000 )
{
if ( v1 < 1000 )
{
if ( v1 < 0 )
{
if ( v1 <= -4000 )
{
if ( v1 <= -8000 )
result = (v1 <= -12000) + 7;
else
result = 6;
}
else
{
result = 5;
}
}
else
{
result = 4;
}
}
else
{
result = 3;
}
}
else
{
result = 2;
}
}
else
{
result = 1;
}
}
else
{
result = 0;
}
return result;
}
waiting for you.
thanks in advance
via PM