Old v15 source + Source addons

Re: Source code Edits

Sigh... I'm alot against this thread though :-/
Then I guess you'd be against the release of the source code in general?

These threads are making the Flyff section a REAL development section.
Even if somebody doesn't know **** about programming, looking at the source and doing changes forms questions in people's minds; it gets people interested in the language, and some feel the need to start learning the language as well. Thus, more people feel the need to contribute their findings and start contributing to the section in general.

This is what I love about open-source development.
For those who just copy, paste, and build, they'll get left behind in the race eventually.
 
Re: Source code Edits

Then I guess you'd be against the release of the source code in general?

These threads are making the Flyff section a REAL development section.
Even if somebody doesn't know **** about programming, looking at the source and doing changes forms questions in people's minds; it gets people interested in the language, and some feel the need to start learning the language as well. Thus, more people feel the need to contribute their findings and start contributing to the section in general.

This is what I love about open-source development.
For those who just copy, paste, and build, they'll get left behind in the race eventually.

Couldn't have said it any better.

Just like what I replied to WebSpiders post with. Everyone has to start somewhere, no one becomes a pro just by picking up a keyboard.
 
Re: Source code Edits

Couldn't have said it any better.

Just like what I replied to WebSpiders post with. Everyone has to start somewhere, no one becomes a pro just by picking up a keyboard.

As simple as these things are to do, I have to agree with you. Everbody's gotta start somewhere. At least they're trying to contribute unlike most of the people who just leech and *****.

Go open source <3
 
Re: Source code Edits

Gay/Lesbian Marriage xD

delete If statements in couplehelper.cpp at line 62

if( pUser == pTarget )
{
pUser->AddDefinedText( TID_GAME_COUPLE_E01 ); // ´ë»óÀÌ ºÎÀûÇÕ ÇÕ´Ï´Ù. Ä¿ÇÃÀÌ ¾Æ´Ñ À̼º ij¸¯ÅÍ¿¡°Ô¸¸ °¡´ÉÇÕ´Ï´Ù.
return;
}
if( pUser->GetSex() == pTarget->GetSex() )
{
pUser->AddDefinedText( TID_GAME_COUPLE_E01 ); // ´ë»óÀÌ ºÎÀûÇÕ ÇÕ´Ï´Ù. Ä¿ÇÃÀÌ ¾Æ´Ñ À̼º ij¸¯ÅÍ¿¡°Ô¸¸ °¡´ÉÇÕ´Ï´Ù.
return;
}
 
Last edited:
Re: Source code Edits

Gay/Lesbian Marriage xD

delete If statements in couplehelper.cpp at line 62



Deleting the "if( pUser == pTarget )" statement lets you marry yourself unless I'm totally wrong. That would be a bug in my opinion.
 
Re: Source code Edits

No i already tested it if i try to marry myself, a NPC or a monster there is th error "The target is supposed to be a player"

Edit: In THIS code you could edit that you can marry a mover or yourself:

if( pFocus && pFocus->GetType() == OT_MOVER && ((CMover*)pFocus)->IsPlayer() )
{
// ÇÁ·¯Æ÷Áî º¸³¾ ¸Þ¼¼Áö â Ãâ·Â
if(g_WndMng.m_pWndCoupleMessage)
SAFE_DELETE(g_WndMng.m_pWndCoupleMessage);

g_WndMng.m_pWndCoupleMessage = new CWndCoupleMessage;
if(g_WndMng.m_pWndCoupleMessage)
{
CString strText;
strText.Format(prj.GetText(TID_GAME_PROPOSETO), ((CMover*)pFocus)->GetName());
g_WndMng.m_pWndCoupleMessage->SetMessageMod(strText, CWndCoupleMessage::CM_SENDPROPOSE, pFocus);
g_WndMng.m_pWndCoupleMessage->Initialize(NULL);
}
}
else
{
g_WndMng.PutString( prj.GetText( TID_GAME_NOTCOUPLETARGET ), NULL, prj.GetTextColor( TID_GAME_NOTCOUPLETARGET ) );
}
 
Last edited:
Re: Source code Edits

No i already tested it if i try to marry myself, a NPC or a monster there is th error "The target is supposed to be a player"

Edit: In THIS code you could edit that you can marry a mover or yourself:

Isn't that client's code? It can be bypassed by the player by sending custom packets or just modifying the client.

It's most important to make sure the server checks everything well. Client should not be trusted to filter invalid info.
 
Last edited:
Re: Source code Edits

Yes thats the clients source but i removed the if statement in the worldserver and I am unable to marry myself butI'm able to marry the same gender ^^
 
Re: Source code Edits

Making Disguise Command work again:

Comment out this Line:

PHP:
#ifdef __CLIENT
			if( scanner.Token == "disguise" || scanner.Token == "dis" || scanner.Token == "º¯½Å" || scanner.Token == "º¯" ||
				scanner.Token == "noDisguise" || scanner.Token == "nodis" || scanner.Token == "º¯½ÅÇØÁ¦" || scanner.Token == "º¯ÇØ" )
			{
				g_WndMng.PutString( "Not Command!" );
				return FALSE;
			}				
		#endif // __CLIENT


Another thing:

Add this to your VersionCommon.h of the Neuz:

PHP:
#define		__CON_AUTO_LOGIN

Create an ini in the Main folder of Flyff and call it Autologin.ini add this in it and you will auto log into the Game

Code:
Account  test
Password  test
n2ndPassword  1234
nServer  1
nCharacter  1

Or this for the Neuz Console which contains additional commands (VersionCommon.h--> Neuz)

PHP:
#define		__BS_CONSOLE

To change teh Quality of the Bloom effect from 16 bit to 64 bit change this:


PHP:
if( g_Option.m_nBloom == 1 )
	{
		if( m_d3dCaps.PixelShaderVersion >= D3DPS_VERSION(1,1) )
			g_Glare.Create( m_pd3dDevice, D3DFMT_R5G6B5], g_Option.m_nResWidth, g_Option.m_nResHeight - 48 );
		else
			g_Option.m_nBloom = 0;


to this

PHP:
if( g_Option.m_nBloom == 1 )
	{
		if( m_d3dCaps.PixelShaderVersion >= D3DPS_VERSION(1,1) )
			g_Glare.Create( m_pd3dDevice, D3DFMT_A16B16G16R16F, g_Option.m_nResWidth, g_Option.m_nResHeight - 48 );
		else
			g_Option.m_nBloom = 0;


The Bloom effect will apply In much sharper Quality now

To activate Bloom jsut wirte bloom into the ini like this

Code:
Bloom 1

if you get an CEffectEnviroment error just make a file in the ResourceFolder called EnvironmentEffect.txt and insert this into it

Code:
1
1
1



Hope this helps ^^
 
Last edited:
Re: Source code Edits

@Aries

You can't just enable Autologin, if you do you will get errors.

C:\Users\NeuroSource\Desktop\source\Public Source\FlyFF v15 Source\_Interface\WndTitle.cpp(2096): error C2065: 'g_Console' : undeclared identifier
C:\Users\NeuroSource\Desktop\source\Public Source\FlyFF v15 Source\_Interface\Wnd2ndPassword.cpp(403): error C2065: 'g_Console' : undeclared identifier
C:\Users\NeuroSource\Desktop\source\Public Source\FlyFF v15 Source\_Interface\Wnd2ndPassword.cpp(403): error C2228: left of '._nPasswordReal' must have class/struct/union type
type is ''unknown-type''
C:\Users\NeuroSource\Desktop\source\Public Source\FlyFF v15 Source\_Interface\Wnd2ndPassword.cpp(409): error C2228: left of '._nPasswordFigure' must have class/struct/union type
type is ''unknown-type''
C:\Users\NeuroSource\Desktop\source\Public Source\FlyFF v15 Source\_Interface\Wnd2ndPassword.cpp(409): error C3861: 'g_Console': identifier not found, even with argument-dependent lookup
C:\Users\NeuroSource\Desktop\source\Public Source\FlyFF v15 Source\_Interface\WndTitle.cpp(2096): error C2228: left of '._nPasswordFigure' must have class/struct/union type
type is ''unknown-type''
 
Re: Source code Edits

Making Disguise Command work again:

Comment out this Line:

PHP:
#ifdef __CLIENT
			if( scanner.Token == "disguise" || scanner.Token == "dis" || scanner.Token == "º¯½Å" || scanner.Token == "º¯" ||
				scanner.Token == "noDisguise" || scanner.Token == "nodis" || scanner.Token == "º¯½ÅÇØÁ¦" || scanner.Token == "º¯ÇØ" )
			{
				g_WndMng.PutString( "Not Command!" );
				return FALSE;
			}				
		#endif // __CLIENT


Another thing:

Add this to your VersionCommon.h of the Neuz:

PHP:
#define		__CON_AUTO_LOGIN

Create an ini in the Main folder of Flyff and call it Autologin.ini add this in it and you will auto log into the Game

Code:
Account  test
Password  test
n2ndPassword  1234
nServer  1
nCharacter  1

Or this for the Neuz Console which contains additional commands (VersionCommon.h--> Neuz)

PHP:
#define		__BS_CONSOLE

To change teh Quality of the Bloom effect from 16 bit to 64 bit change this:


PHP:
if( g_Option.m_nBloom == 1 )
	{
		if( m_d3dCaps.PixelShaderVersion >= D3DPS_VERSION(1,1) )
			g_Glare.Create( m_pd3dDevice, D3DFMT_R5G6B5], g_Option.m_nResWidth, g_Option.m_nResHeight - 48 );
		else
			g_Option.m_nBloom = 0;


to this

PHP:
if( g_Option.m_nBloom == 1 )
	{
		if( m_d3dCaps.PixelShaderVersion >= D3DPS_VERSION(1,1) )
			g_Glare.Create( m_pd3dDevice, D3DFMT_A16B16G16R16F, g_Option.m_nResWidth, g_Option.m_nResHeight - 48 );
		else
			g_Option.m_nBloom = 0;


The Bloom effect will apply In much sharper Quality now

To activate Bloom jsut wirte bloom into the ini like this

Code:
Bloom 1

if you get an CEffectEnviroment error just make a file in the ResourceFolder called EnvironmentEffect.txt and insert this into it

Code:
1
1
1



Hope this helps ^^

Aeonsoft has to be the worst company in the universe for removing some of their greatest features ever for no logical reason whatsoever.
 
Re: Change your window's title - Source

I was especially tickled when i saw his ttle under his name saying ''sucka at C++'' then he does a basic edit :P Sucka sounds a bit like slang for someone who is good at somethin idk xD

unless it was a typo and he really meant "Sucks at C++" :D
Still, I lolled.

I don't know it that much I started watching videos , so basically those edits were easy to make.
 
Re: FlyFF v15 Source Code + Source Edits

lets keep this topic alive:
its only some edits i start to learn c++ 3 weeks ago but im a starter so its ok ^_^:
1:change the max you can buy from shop from 99 to xxxx:
go to your folder source/_interface
now open WndShop.cpp
and find this:
const int MAX_BUY_ITEMCOUNT = 99;
now change the number to what you want and enjoy.
2:change that normal players again can see the level of other players:
go to _interface
open WndWorld.cpp
and then find this:
#if __VER >= 8 // __CSC_VER8_1

and you will see this text:
PHP:
#if __VER >= 8 // __CSC_VER8_1
						// 8ֲק GMְֿ °ז¿ל¸¦ ֱ¦¿ַֿ°ם »ף´כ¹זְַ ·¹÷§ְ» ÷¼¼צ ¾רְ½ 
						if( g_pPlayer->IsAuthHigher( AUTH_GAMEMASTER ) == TRUE )

Then Change The AUTH_GAMEMASTER TO AUTH_GENERAL .
then in the same file find this:
#endif //__CSC_VER11_1

and then you will see this text:

PHP:
#endif //__CSC_VER11_1
#else
						// ֵ¸°ְּ ְ½ֵ÷¸´ 10·¹÷§ ְַּֿ¸י ·¹÷§ְ» ÷¼¼צ ְײְ½.
						if( g_pPlayer->IsAuthHigher( AUTH_GAMEMASTER ) == TRUE || g_pPlayer->GetLevel() + 10 > pMover->GetLevel() )
							sprintf( szText, "%s<Lv.%d>", pMover->GetName(), pMover->GetLevel() );
						else
							sprintf( szText, "%s<Lv.\?\?>", pMover->GetName() );
#endif //__CSC_VER8_1

AGAIN CHANGE HERE THE AUTH_GAMEMASTER TO AUTH_GENERAL .
THAT ALL ENJOY ^_^
 
Last edited:
Back