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!

How to change FlyFF Guild Re-Join Time.

MC Web Designs
Joined
Oct 28, 2010
Messages
888
Reaction score
111
Hi guys, credit to this thread goes to nabby59.
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())))
 
Junior Spellweaver
Joined
Aug 8, 2011
Messages
156
Reaction score
8
Awesome Tuts !!

Is this working for the whole server or only for a one player ?
 
Experienced Elementalist
Joined
Aug 25, 2009
Messages
216
Reaction score
31
Awesome Tuts !!

Is this working for the whole server or only for a one player ?

The whole server

---------- Post added at 03:01 PM ---------- Previous post was at 02:56 PM ----------

How not to have guild wait time.

Open DPCacheSrvr.cpp in Core Server


Comment this:
Code:
	if( !g_PlayerMng.IsOperator( info.idPlayer ) && tCurrent < pPlayer->m_tGuildMember )
	{
		if( ::GetLanguage() == LANG_FRE || ::GetLanguage() == LANG_GER )	// ภฏทด - นฎภๅภฬ ฑๆพ๎ผญ 2มูทฮ ณชดฉ ลุฝบฦฎ...
		{
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_01, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_01, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_02, pPlayer->dpidCache, pPlayer->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_02, pPlayer->dpidCache, pPlayer->dpidUser, "" );
		}
		else
		{
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE, pPlayer->dpidCache, pPlayer->dpidUser, "" );
		}
		return;
	}

to this

Code:
	/*if( !g_PlayerMng.IsOperator( info.idPlayer ) && tCurrent < pPlayer->m_tGuildMember )
	{
		if( ::GetLanguage() == LANG_FRE || ::GetLanguage() == LANG_GER )	// ภฏทด - นฎภๅภฬ ฑๆพ๎ผญ 2มูทฮ ณชดฉ ลุฝบฦฎ...
		{
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_01, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_01, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_02, pPlayer->dpidCache, pPlayer->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_02, pPlayer->dpidCache, pPlayer->dpidUser, "" );
		}
		else
		{
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE, pPlayer->dpidCache, pPlayer->dpidUser, "" );
		}
		return;
	}*/
 
MC Web Designs
Joined
Oct 28, 2010
Messages
888
Reaction score
111
Awesome Tuts !!

Is this working for the whole server or only for a one player ?

Source & Resource are for the server, whatever is on there is what the player sees and does. You cant do this for just one player because its server settings.

---------- Post added at 04:14 PM ---------- Previous post was at 04:13 PM ----------

The whole server

---------- Post added at 03:01 PM ---------- Previous post was at 02:56 PM ----------

How not to have guild wait time.

Open DPCacheSrvr.cpp in Core Server


Comment this:
Code:
	if( !g_PlayerMng.IsOperator( info.idPlayer ) && tCurrent < pPlayer->m_tGuildMember )
	{
		if( ::GetLanguage() == LANG_FRE || ::GetLanguage() == LANG_GER )	// ภฏทด - นฎภๅภฬ ฑๆพ๎ผญ 2มูทฮ ณชดฉ ลุฝบฦฎ...
		{
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_01, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_01, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_02, pPlayer->dpidCache, pPlayer->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_02, pPlayer->dpidCache, pPlayer->dpidUser, "" );
		}
		else
		{
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE, pPlayer->dpidCache, pPlayer->dpidUser, "" );
		}
		return;
	}

to this

Code:
	/*if( !g_PlayerMng.IsOperator( info.idPlayer ) && tCurrent < pPlayer->m_tGuildMember )
	{
		if( ::GetLanguage() == LANG_FRE || ::GetLanguage() == LANG_GER )	// ภฏทด - นฎภๅภฬ ฑๆพ๎ผญ 2มูทฮ ณชดฉ ลุฝบฦฎ...
		{
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_01, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_01, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_02, pPlayer->dpidCache, pPlayer->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_02, pPlayer->dpidCache, pPlayer->dpidUser, "" );
		}
		else
		{
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE, pPlayer->dpidCache, pPlayer->dpidUser, "" );
		}
		return;
	}*/

Thanks for that input, as i stated this isnt anything of mine.
 
[R8]ℓσℓ32
Loyal Member
Joined
Oct 6, 2008
Messages
1,396
Reaction score
198
The whole server

---------- Post added at 03:01 PM ---------- Previous post was at 02:56 PM ----------

How not to have guild wait time.

Open DPCacheSrvr.cpp in Core Server


Comment this:
Code:
	if( !g_PlayerMng.IsOperator( info.idPlayer ) && tCurrent < pPlayer->m_tGuildMember )
	{
		if( ::GetLanguage() == LANG_FRE || ::GetLanguage() == LANG_GER )	// ภฏทด - นฎภๅภฬ ฑๆพ๎ผญ 2มูทฮ ณชดฉ ลุฝบฦฎ...
		{
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_01, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_01, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_02, pPlayer->dpidCache, pPlayer->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_02, pPlayer->dpidCache, pPlayer->dpidUser, "" );
		}
		else
		{
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE, pPlayer->dpidCache, pPlayer->dpidUser, "" );
		}
		return;
	}

to this

Code:
	/*if( !g_PlayerMng.IsOperator( info.idPlayer ) && tCurrent < pPlayer->m_tGuildMember )
	{
		if( ::GetLanguage() == LANG_FRE || ::GetLanguage() == LANG_GER )	// ภฏทด - นฎภๅภฬ ฑๆพ๎ผญ 2มูทฮ ณชดฉ ลุฝบฦฎ...
		{
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_01, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_01, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_02, pPlayer->dpidCache, pPlayer->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE_02, pPlayer->dpidCache, pPlayer->dpidUser, "" );
		}
		else
		{
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE, pMaster->dpidCache, pMaster->dpidUser, "" );
			SendDefinedText( TID_GAME_GUILDNOTINCLUDE, pPlayer->dpidCache, pPlayer->dpidUser, "" );
		}
		return;
	}*/

That just remove the error messages.
 
Junior Spellweaver
Joined
Aug 8, 2011
Messages
156
Reaction score
8
where can i find this DPCacheSrvr.cpp ?
 
Junior Spellweaver
Joined
Nov 24, 2008
Messages
109
Reaction score
17
USE Windows Search
or
Use Microsoft Visual Studio Find in files (then select solution in the middle)
 
i sell platypus
Loyal Member
Joined
Jun 26, 2009
Messages
2,640
Reaction score
1,326
Why repost this?

The other thread died, so it could just as well be the same. I might make a lookup thread and collect them all in one place, but lets leave this thread for the time being.
 
~FlyFF DeV~
Joined
Mar 2, 2009
Messages
579
Reaction score
113
The other thread died, so it could just as well be the same. I might make a lookup thread and collect them all in one place, but lets leave this thread for the time being.

Create Compilation thread where u can put all tuts and guides.
 
Now you can tag me!
Loyal Member
Joined
May 26, 2009
Messages
1,649
Reaction score
796
Create Compilation thread where u can put all tuts and guides.

Have been made many times already. Yet, some of them never gets updated. So it would be useful with a thread that got updated every week, if any important releases/tutorials was made.
 
Junior Spellweaver
Joined
Aug 8, 2011
Messages
156
Reaction score
8
You need the FlyFF Source for this edit.

Can you compile the source for me and upload/release the files in your tut. (So people will not get harder looking for the source and just download and extracting in their resource folder)
 
Junior Spellweaver
Joined
Aug 8, 2011
Messages
156
Reaction score
8
alright, im lazy (because idk how to compile, mate!)
 
Back
Top