Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Old v15 source + Source addons

Newbie Spellweaver
Joined
Oct 2, 2010
Messages
95
Reaction score
10
Re: FlyFF v15 Source Code + Source Edits

Nao Fantasy suddently isn't unique =O
fantasy have some unique stuff..
i really like that ones:
1:bounty system
2:the drop filter system really good you can choose what the pick up pet will take..
3:and the one if you kill someone in arena you get 5% of there money.
i really want to implemented this features but i dont know how..
if someone have idea go ahead ^_^
 
Banana
Loyal Member
Joined
Feb 15, 2009
Messages
1,012
Reaction score
855
Re: FlyFF v15 Source Code + Source Edits

fantasy have some unique stuff..
i really like that ones:
1:bounty system
2:the drop filter system really good you can choose what the pick up pet will take..
3:and the one if you kill someone in arena you get 5% of there money.
i really want to implemented this features but i dont know how..
if someone have idea go ahead ^_^

Several servers already have all those features.
 
Experienced Elementalist
Joined
Nov 13, 2008
Messages
213
Reaction score
68
Re: FlyFF v15 Source Code + Source Edits

Several servers already have all those features.

Sure they have, most of their owners keep track of our patchlists =), oh well, what you gonna do? I guess people has to copy the best right =D?
 
Newbie Spellweaver
Joined
Jul 20, 2010
Messages
60
Reaction score
23
Re: FlyFF v15 Source Code + Source Edits

How to change the amount of time before you can rejoin a guild:

This has two parts. The first is the cache so this works while you stay logged in and the second you have to change some stored procedures in the database.

First part:

Find this line in DPCacheSrvr (its in there twice):
Code:
pPlayer->m_tGuildMember += CTimeSpan( 2, 0, 0, 0 );
Change the (2, 0, 0, 0) to what you want in the format of (Days, Hours, Minutes, Seconds). i.e. 5 minutes (0, 0, 5, 0)

Second part:

Find the GUILD_STR stored procedure in CHARACTER_DBF and find this in the procedure (Again its there twice):
Code:
SET m_tGuildMember = CONVERT(CHAR(8),DATEADD(d,2,GETDATE()),112) 
+ RIGHT('00' + CONVERT(VARCHAR(2),DATEPART(hh,DATEADD(d,2,GETDATE()))),2) 
+ RIGHT('00' + CONVERT(VARCHAR(2),DATEPART(mi,DATEADD(d,2,GETDATE()))),2) 
+ RIGHT('00' + CONVERT(VARCHAR(2),DATEPART(ss,DATEADD(d,2,GETDATE()))),2)
Now change
Code:
DATEADD(d,2,GETDATE())))
to the same value you entered above. i.e. 5 minutes again
Code:
DATEADD(mi,5,GETDATE())))
.
 
Last edited:
Newbie Spellweaver
Joined
Oct 2, 2010
Messages
95
Reaction score
10
Re: FlyFF v15 Source Code + Source Edits

How to change the amount of time before you can rejoin a guild:

This has two parts. The first is the cache so this works while you stay logged in and the second you have to change some stored procedures in the database.

First part:

Find this line in DPCacheSrvr (its in there twice):
Code:
pPlayer->m_tGuildMember += CTimeSpan( 2, 0, 0, 0 );
Change the (2, 0, 0, 0) to what you want in the format of (Days, Hours, Minutes, Seconds). i.e. 5 minutes (0, 0, 5, 0)

Second part:

Find the GUILD_STR stored procedure in CHARACTER_DBF and find this in the procedure (Again its there twice):
Code:
SET m_tGuildMember = CONVERT(CHAR(8),DATEADD(d,2,GETDATE()),112) 
+ RIGHT('00' + CONVERT(VARCHAR(2),DATEPART(hh,DATEADD(d,2,GETDATE()))),2) 
+ RIGHT('00' + CONVERT(VARCHAR(2),DATEPART(mi,DATEADD(d,2,GETDATE()))),2) 
+ RIGHT('00' + CONVERT(VARCHAR(2),DATEPART(ss,DATEADD(d,2,GETDATE()))),2)
Now change
Code:
DATEADD(d,2,GETDATE())))
to the same value you entered above. i.e. 5 minutes again
Code:
DATEADD(mi,5,GETDATE())))
.
thank you very much.
about the first part i know that long time ago
but about the database in guild_str i didnt know so thanx ^_^
 
Newbie Spellweaver
Joined
Sep 3, 2010
Messages
42
Reaction score
1
Re: FlyFF v15 Source Code + Source Edits

How to change the amount of time before you can rejoin a guild:

This has two parts. The first is the cache so this works while you stay logged in and the second you have to change some stored procedures in the database.

First part:

Find this line in DPCacheSrvr (its in there twice):
Code:
pPlayer->m_tGuildMember += CTimeSpan( 2, 0, 0, 0 );
Change the (2, 0, 0, 0) to what you want in the format of (Days, Hours, Minutes, Seconds). i.e. 5 minutes (0, 0, 5, 0)

Second part:

Find the GUILD_STR stored procedure in CHARACTER_DBF and find this in the procedure (Again its there twice):
Code:
SET m_tGuildMember = CONVERT(CHAR(8),DATEADD(d,2,GETDATE()),112) 
+ RIGHT('00' + CONVERT(VARCHAR(2),DATEPART(hh,DATEADD(d,2,GETDATE()))),2) 
+ RIGHT('00' + CONVERT(VARCHAR(2),DATEPART(mi,DATEADD(d,2,GETDATE()))),2) 
+ RIGHT('00' + CONVERT(VARCHAR(2),DATEPART(ss,DATEADD(d,2,GETDATE()))),2)
Now change
Code:
DATEADD(d,2,GETDATE())))
to the same value you entered above. i.e. 5 minutes again
Code:
DATEADD(mi,5,GETDATE())))
.

gogogo nabby :D thx for this man/girl =o (just in case) :D:
 
Banana
Loyal Member
Joined
Feb 15, 2009
Messages
1,012
Reaction score
855
Re: FlyFF v15 Source Code + Source Edits

Sure they have, most of their owners keep track of our patchlists =), oh well, what you gonna do? I guess people has to copy the best right =D?

I don't think anybody cares really, people play servers for features regardless if they're stolen/etc. It doesn't matter anyways since all servers are "stolen" from Aeonsoft/Galalabs.
 
Not working on UnitedFlyf
Loyal Member
Joined
Apr 21, 2009
Messages
1,385
Reaction score
934
Re: FlyFF v15 Source Code + Source Edits

SRO fix:
Code:
BOOL TextCmd_SetRandomOption( CScanner & s )
{
#ifdef __WORLDSERVER
	CUser* pUser	= (CUser*)s.dwValue;
	CItemElem* pItemElem	= pUser->m_Inventory.GetAt( 0 );
	if( pItemElem )
	{
		int nRandomOptionKind	= g_xRandomOptionProperty->GetRandomOptionKind( pItemElem );
		if( nRandomOptionKind >= 0 )
		{
			g_xRandomOptionProperty->InitializeRandomOption( pItemElem->GetRandomOptItemIdPtr() );
			int nDst, nAdj;
			int cb	= 0;
			nDst	= s.GetNumber();
			while( s.tok != FINISHED )
			{
				nAdj	= s.GetNumber();
				if( nDst == 48 ) // Broken attribute
					break;
				if ( nDst > 96 || nDst < 1 ) // v16 max/min dst attribute
					break;
				if ( nAdj > 512 || nAdj < -512 ) // Prevent integer overflows
					break;
				g_xRandomOptionProperty->SetParam( pItemElem->GetRandomOptItemIdPtr(), nDst, nAdj );
				cb++;
				if( cb >= MAX_RANDOM_OPTION )
					break;
				nDst	= s.GetNumber();
			}
			pUser->UpdateItemEx( (BYTE)( pItemElem->m_dwObjId ), UI_RANDOMOPTITEMID, pItemElem->GetRandomOptItemId() );
		}
	}
#endif	// __WORLDSERVER
	return TRUE;
}

With this, you will be able to set awakenings, such as:
Code:
/sro 68 50
Which will add 50% jump height. This method is much better than exploiting an overflow.
 
Last edited by a moderator:
Skilled Illusionist
Joined
Aug 15, 2008
Messages
302
Reaction score
217
Re: FlyFF v15 Source Code + Source Edits

Working on a Morpher class like Druids in WoW

made some good progress yet. Skills to mprth almost finished




Video still in proccess so it will be available lateer.
 
Last edited:
Newbie Spellweaver
Joined
Oct 2, 2010
Messages
95
Reaction score
10
Re: FlyFF v15 Source Code + Source Edits

Working on a Morpher class like Druids in WoW

made some good progress yet. Skills to mprth almost finished




Video still in proccess so it will be available lateer.

hh nice but aries the transforms in wow attacks in flyff they are not like when im a clockwork i cant attack monsters ^_^.
 
Skilled Illusionist
Joined
Aug 15, 2008
Messages
302
Reaction score
217
Re: FlyFF v15 Source Code + Source Edits

You can attack them if you dont inlcude the line whih blocks it.

Its working fine i make a new Video showing it.
 
Banana
Loyal Member
Joined
Feb 15, 2009
Messages
1,012
Reaction score
855
Re: FlyFF v15 Source Code + Source Edits

SRO fix:
Code:
BOOL TextCmd_SetRandomOption( CScanner & s )
{
#ifdef __WORLDSERVER
	CUser* pUser	= (CUser*)s.dwValue;
	CItemElem* pItemElem	= pUser->m_Inventory.GetAt( 0 );
	if( pItemElem )
	{
		int nRandomOptionKind	= g_xRandomOptionProperty->GetRandomOptionKind( pItemElem );
		if( nRandomOptionKind >= 0 )
		{
			g_xRandomOptionProperty->InitializeRandomOption( pItemElem->GetRandomOptItemIdPtr() );
			int nDst, nAdj;
			int cb	= 0;
			nDst	= s.GetNumber();
			while( s.tok != FINISHED )
			{
				nAdj	= s.GetNumber();
				if( nDst == 48 ) // Broken attribute
					break;
				if ( nDst > 96 || nDst < 1 ) // v16 max/min dst attribute
					break;
				if ( nAdj > 512 || nAdj < -512 ) // Prevent integer overflows
					break;
				g_xRandomOptionProperty->SetParam( pItemElem->GetRandomOptItemIdPtr(), nDst, nAdj );
				cb++;
				if( cb >= MAX_RANDOM_OPTION )
					break;
				nDst	= s.GetNumber();
			}
			pUser->UpdateItemEx( (BYTE)( pItemElem->m_dwObjId ), UI_RANDOMOPTITEMID, pItemElem->GetRandomOptItemId() );
		}
	}
#endif	// __WORLDSERVER
	return TRUE;
}

With this, you will be able to set awakenings, such as:
Code:
/sro 68 50
Which will add 50% jump height. This method is much better than exploiting an overflow.
Ah, I was wondering how to fix that.
 
Newbie Spellweaver
Joined
Oct 2, 2010
Messages
95
Reaction score
10
Re: FlyFF v15 Source Code + Source Edits

You can attack them if you dont inlcude the line whih blocks it.

Its working fine i make a new Video showing it.

you know where this line is?
hhh i want to delete it so i can attack with disguise.
 
Skilled Illusionist
Joined
Aug 15, 2008
Messages
302
Reaction score
217
Re: FlyFF v15 Source Code + Source Edits

Line 6474 and 6577 in the Mover.cpp

Code:
BOOL CMover::IsAttackAble( CObj *pObj )
{
#if __VER >= 8 //__Y_FLAG_SKILL_BUFF
	if( HasBuffByIk3(IK3_TEXT_DISGUISE) )
		return FALSE;

an this

Code:
BOOL CMover::IsAttackAbleNPC( CMover* pNPC )
{
#if __VER >= 8 //__Y_FLAG_SKILL_BUFF
	if( HasBuffByIk3(IK3_TEXT_DISGUISE) )
		return FALSE;

Just change Return FALSE to TRUE but imo make a copied function with an else statement or you wont be able to protect yourself against Aggros in Dungeons.
 
Last edited:
Newbie Spellweaver
Joined
Oct 2, 2010
Messages
95
Reaction score
10
Re: FlyFF v15 Source Code + Source Edits

Line 6474 and 6577 in the Mover.cpp

Code:
BOOL CMover::IsAttackAble( CObj *pObj )
{
#if __VER >= 8 //__Y_FLAG_SKILL_BUFF
	if( HasBuffByIk3(IK3_TEXT_DISGUISE) )
		return FALSE;

an this

Code:
BOOL CMover::IsAttackAbleNPC( CMover* pNPC )
{
#if __VER >= 8 //__Y_FLAG_SKILL_BUFF
	if( HasBuffByIk3(IK3_TEXT_DISGUISE) )
		return FALSE;

Just change Return FALSE to TRUE but imo make a copied function with an else statement or you wont be able to protect yourself against Aggros in Dungeons.

thank aries and what you mean by a copied function with an else statement??
and what the aggros do to me if i dont do this hh??
 
Skilled Illusionist
Joined
Aug 15, 2008
Messages
302
Reaction score
217
Re: FlyFF v15 Source Code + Source Edits

The Disguise items protecting you against aggros when you are in Dungeons Like Vulcan. With this change they will attack you.

i jsut added an elseif with a new scanner token so i can use normal disguise and the ones for my new class.


 
Last edited:
Newbie Spellweaver
Joined
Oct 2, 2010
Messages
95
Reaction score
10
Re: FlyFF v15 Source Code + Source Edits

The Disguise items protecting you against aggros when you are in Dungeons Like Vulcan. With this change they will attack you.

i jsut added an elseif with a new scanner token so i can use normal disguise and the ones for my new class.



ohh ok i got it now ^_^.
 
Newbie Spellweaver
Joined
Nov 30, 2008
Messages
42
Reaction score
10
Re: FlyFF v15 Source Code + Source Edits

Hey Aries.

I'm trying to change the Vagrant Skills zu 3 Metamoph Skills, but I don't know really how to, so could you give me a little hint?


//Vagranten Skill Metamorphose 1

if( pSkillProp->dwID == SI_VAG_ONE_CLEANHIT )
{
if( HasBuffByIk3( IK3_TEXT_DISGUISE ) )
RemoveIk3Buffs( IK3_TEXT_DISGUISE );
else
DoApplySkill( this, pItemProp, NULL );
}

I don't know how I can make it worklike you use the skill and become an aibatt cuz i don't know where i could define the Monstermodel or ID (like propitem.txt for normal disguises) in "DoApplySkill".
 
Skilled Illusionist
Joined
Aug 15, 2008
Messages
302
Reaction score
217
Re: FlyFF v15 Source Code + Source Edits

Hey Aries.

I'm trying to change the Vagrant Skills zu 3 Metamoph Skills, but I don't know really how to, so could you give me a little hint?




I don't know how I can make it worklike you use the skill and become an aibatt cuz i don't know where i could define the Monstermodel or ID (like propitem.txt for normal disguises) in "DoApplySkill".

you are making it wrong look insde the mover.cpp Skillinflunce.cpp and DPclient.cpp ^^

Code:
[url="http://www.youtube.com/watch?v=RWgp_3zxiyI"]YouTube - Flyff Morpher Class Alpha 3[/url]


This is my next Step tested with Blade skill. Will later be used by my new skills and class.
 
Last edited:
Newbie Spellweaver
Joined
Sep 5, 2010
Messages
96
Reaction score
3
Re: FlyFF v15 Source Code + Source Edits

You are making nice progress Aries :)
are u going to release your new class if its done?
 
Back
Top