Auto GuildWar every 30 min

06/15/2013 10:37 Rhyder`#31
How to make announcement before the seige will start?
like: The Guild Seige will start after 5mins..

anyone know it?
06/19/2013 18:48 Swäg#32
Quote:
Originally Posted by jayjei14 View Post
How to make announcement before the seige will start?
like: The Guild Seige will start after 5mins..

anyone know it?
Simply change the message that appears after the siege has ended.
"The Guild Siege has ended" to "Please Apply for Siege. It starts soon!"
You can do that in the textClient.txt.txt

ofc, theres a better way to do it in source. But its much easier to do it in resource.



@.S0urce:

Bitte geb die credits and Wesley/phoen1x von Eclipse Flyff.
Der code stammt nicht von dir.
06/22/2013 13:14 SmexySelenA#33
Quote:
Originally Posted by .S0urce View Post
Hiermit reuploade ich mein Auto GuildWar.

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

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

Hier ist noch eine GuildCombat.txt die auf die 30 min Auto Gw ausgelegt ist.
Hoffe damit jetzt das einige GuildWar Server es übernehmen werden und wir uns darauf freuen können, das es immer GuildWar gibt :P
Nice release Thank you
09/05/2013 04:28 yvansinues#34
My old code
Code:
void CGuildCombat::Process()
{
#ifdef __WORLDSERVER
#ifdef _DEBUG	
//	TRACE( "GuildWarFlyff::Process <%d>, <%d>\n", m_nState, m_nGuildCombatState);
#endif //_DEBUG
	if( m_nState != CLOSE_STATE )
	{
		if( m_nProcessGo < m_nProcessCount[0] )
			ProcessCommand();
		ProcessJoinWar();	//
	}
	else
	{
		CTime ctime = CTime::GetCurrentTime();
#ifdef __PMA_GW
for( DWORD i = 0; i < __AutoOpen.size(); i++ )
{
		

		if( __AutoOpen[i].nDay == ctime.GetDayOfWeek()-1 && __AutoOpen[i].bUseing )
		{
			CTimeSpan ts( 0, __AutoOpen[i].nHour-ctime.GetHour(), __AutoOpen[i].nMinute-ctime.GetMinute(), 0 );


			if( ts.GetTotalSeconds() == GW_TIME_ANNOUNCE*60  )
				g_DPCoreClient.SendSystem( prj.GetText( TID_GAME_GUILDCOMBAT_START30 ) );	

			if( __AutoOpen[i].nHour == ctime.GetHour() &&
				__AutoOpen[i].nMinute == ctime.GetMinute() && m_bMutex == FALSE )
#else
		if( __AutoOpen[ctime.GetDayOfWeek()-1].bUseing )
		{
			// ½ºÅµ µÉ ¼ö ÀÖÀ¸¹Ç·Î ¼öÁ¤À» ÇÊ¿ä·Î ÇÔ
			if( __AutoOpen[ctime.GetDayOfWeek()-1].nHour == ctime.GetHour() &&
				__AutoOpen[ctime.GetDayOfWeek()-1].nMinute == ctime.GetMinute() && m_bMutex == FALSE )
#endif
			{
#ifdef __S_BUG_GC
				if( (int)( m_vecGuildCombatMem.size() ) >= m_nMinGuild )
#else // __S_BUG_GC
				if( m_GuildCombatMem.size() > 1 )
#endif // __S_BUG_GC
				{				
					GuildCombatOpen();
				}
				else
				{
					m_ctrMutexOut.Set( SEC(60) );
					m_bMutexMsg = TRUE;
					g_DPCoreClient.SendSystem( prj.GetText( TID_GAME_GUILDCOMBAT_NEXT_COMBAT ) );	
					g_DPCoreClient.SendSystem( prj.GetText( TID_GAME_GUILDCOMBAT_ENJOY ) );	
				}

				m_bMutex = TRUE;				
			}

			if( m_bMutexMsg && m_ctrMutexOut.IsTimeOut() )
			{
				m_bMutexMsg = FALSE;
				m_bMutex    = FALSE;
			}
		}
	}
#ifdef __PMA_GW
}
#endif
#endif //__WORLDSERVER
}
The New one
Code:
void CGuildCombat::Process()
{
#ifdef __WORLDSERVER
#ifdef _DEBUG	
//	TRACE( "GuildWarFlyff::Process <%d>, <%d>\n", m_nState, m_nGuildCombatState);
#endif //_DEBUG
	if( m_nState != CLOSE_STATE )
	{
		if( m_nProcessGo < m_nProcessCount[0] )
			ProcessCommand();
		ProcessJoinWar();	//
	}
	else
	{
		CTime ctime = CTime::GetCurrentTime();

		if((ctime.GetMinute() % 30 == 0) && m_bMutex == FALSE ) // jede 30 Minuten
		{
#ifdef __S_BUG_GC
			if( (int)( m_vecGuildCombatMem.size() ) >= m_nMinGuild )
#else // __S_BUG_GC
			if( m_GuildCombatMem.size() > 1 )
#endif // __S_BUG_GC
			{				
				GuildCombatOpen();
				g_DPCoreClient.SendSystem( prj.GetText( TID_GAME_GUILDCOMBAT_ENJOY ) ); //Startet Line Up und Shoutet
			}
			else
			{
				m_ctrMutexOut.Set( SEC(60) );
				m_bMutexMsg = TRUE;
				g_DPCoreClient.SendSystem( prj.GetText( TID_GAME_GUILDCOMBAT_NEXT_COMBAT ) ); //Shoutet wenn es zu wenig Gilden sind
			}
			m_bMutex = TRUE;				
		}
		if( m_bMutexMsg && m_ctrMutexOut.IsTimeOut() )
		{
			m_bMutexMsg = FALSE;
			m_bMutex    = FALSE;
		}
	}
#endif //__WORLDSERVER
}


How about the code PMA_GW .. Do i need to add it or not ..
09/06/2013 09:20 jeromerz#35
Quote:
Originally Posted by yvansinues View Post
My old code
Code:
void CGuildCombat::Process()
{
#ifdef __WORLDSERVER
#ifdef _DEBUG	
//	TRACE( "GuildWarFlyff::Process <%d>, <%d>\n", m_nState, m_nGuildCombatState);
#endif //_DEBUG
	if( m_nState != CLOSE_STATE )
	{
		if( m_nProcessGo < m_nProcessCount[0] )
			ProcessCommand();
		ProcessJoinWar();	//
	}
	else
	{
		CTime ctime = CTime::GetCurrentTime();
#ifdef __PMA_GW
for( DWORD i = 0; i < __AutoOpen.size(); i++ )
{
		

		if( __AutoOpen[i].nDay == ctime.GetDayOfWeek()-1 && __AutoOpen[i].bUseing )
		{
			CTimeSpan ts( 0, __AutoOpen[i].nHour-ctime.GetHour(), __AutoOpen[i].nMinute-ctime.GetMinute(), 0 );


			if( ts.GetTotalSeconds() == GW_TIME_ANNOUNCE*60  )
				g_DPCoreClient.SendSystem( prj.GetText( TID_GAME_GUILDCOMBAT_START30 ) );	

			if( __AutoOpen[i].nHour == ctime.GetHour() &&
				__AutoOpen[i].nMinute == ctime.GetMinute() && m_bMutex == FALSE )
#else
		if( __AutoOpen[ctime.GetDayOfWeek()-1].bUseing )
		{
			// ½ºÅµ µÉ ¼ö ÀÖÀ¸¹Ç·Î ¼öÁ¤À» ÇÊ¿ä·Î ÇÔ
			if( __AutoOpen[ctime.GetDayOfWeek()-1].nHour == ctime.GetHour() &&
				__AutoOpen[ctime.GetDayOfWeek()-1].nMinute == ctime.GetMinute() && m_bMutex == FALSE )
#endif
			{
#ifdef __S_BUG_GC
				if( (int)( m_vecGuildCombatMem.size() ) >= m_nMinGuild )
#else // __S_BUG_GC
				if( m_GuildCombatMem.size() > 1 )
#endif // __S_BUG_GC
				{				
					GuildCombatOpen();
				}
				else
				{
					m_ctrMutexOut.Set( SEC(60) );
					m_bMutexMsg = TRUE;
					g_DPCoreClient.SendSystem( prj.GetText( TID_GAME_GUILDCOMBAT_NEXT_COMBAT ) );	
					g_DPCoreClient.SendSystem( prj.GetText( TID_GAME_GUILDCOMBAT_ENJOY ) );	
				}

				m_bMutex = TRUE;				
			}

			if( m_bMutexMsg && m_ctrMutexOut.IsTimeOut() )
			{
				m_bMutexMsg = FALSE;
				m_bMutex    = FALSE;
			}
		}
	}
#ifdef __PMA_GW
}
#endif
#endif //__WORLDSERVER
}
The New one
Code:
void CGuildCombat::Process()
{
#ifdef __WORLDSERVER
#ifdef _DEBUG	
//	TRACE( "GuildWarFlyff::Process <%d>, <%d>\n", m_nState, m_nGuildCombatState);
#endif //_DEBUG
	if( m_nState != CLOSE_STATE )
	{
		if( m_nProcessGo < m_nProcessCount[0] )
			ProcessCommand();
		ProcessJoinWar();	//
	}
	else
	{
		CTime ctime = CTime::GetCurrentTime();

		if((ctime.GetMinute() % 30 == 0) && m_bMutex == FALSE ) // jede 30 Minuten
		{
#ifdef __S_BUG_GC
			if( (int)( m_vecGuildCombatMem.size() ) >= m_nMinGuild )
#else // __S_BUG_GC
			if( m_GuildCombatMem.size() > 1 )
#endif // __S_BUG_GC
			{				
				GuildCombatOpen();
				g_DPCoreClient.SendSystem( prj.GetText( TID_GAME_GUILDCOMBAT_ENJOY ) ); //Startet Line Up und Shoutet
			}
			else
			{
				m_ctrMutexOut.Set( SEC(60) );
				m_bMutexMsg = TRUE;
				g_DPCoreClient.SendSystem( prj.GetText( TID_GAME_GUILDCOMBAT_NEXT_COMBAT ) ); //Shoutet wenn es zu wenig Gilden sind
			}
			m_bMutex = TRUE;				
		}
		if( m_bMutexMsg && m_ctrMutexOut.IsTimeOut() )
		{
			m_bMutexMsg = FALSE;
			m_bMutex    = FALSE;
		}
	}
#endif //__WORLDSERVER
}


How about the code PMA_GW .. Do i need to add it or not ..
Nope
09/07/2013 08:29 yvansinues#36
Quote:
Originally Posted by jeromerz View Post
Nope
Ok tnx ..
10/30/2013 02:57 cRu5H#37
Wo muss ich die GuildCombat.txt einfuegen?
10/30/2013 04:54 Chriѕ#38
Quote:
Originally Posted by cRu5H View Post
Wo muss ich die GuildCombat.txt einfuegen?
In deinen Resource Ordner (Files).
05/04/2014 10:42 flyffdev#39
How can i edit the Line up Time ( 60 mins ) i want to change it to ( 5 ) five minutes.
-
i edit the GuildCombat.txt
From this

To This


but the line up still 60 mins how can i fix it please

@Edit
FIX ( i edit the GuildCombat.txt @ Resource )
-
Sorry for my english
02/14/2015 07:19 Spraystar#40
wieso wird ingame die zeit nicht geändert beim npc aber der gw findet alle 30 min statt <.<
02/22/2015 07:08 n5xda#41
Quote:
Originally Posted by Spraystar View Post
wieso wird ingame die zeit nicht geändert beim npc aber der gw findet alle 30 min statt <.<
habe auch das Problem die Notice kommt immer jede 30 min aber beim npc steht immer normale Zeit ich bitte um Hilfe oder jemand den kompletten source code Postet :)
02/22/2015 13:47 - DK#42
Addet mich mal in Skype ^^ ich helfe euch :)
02/22/2015 14:16 Spraystar#43
Quote:
Originally Posted by Armageddon' View Post
Addet mich mal in Skype ^^ ich helfe euch :)
Habe dich Hinzugefügt hoffe kannst mir helfen :)
05/07/2015 06:15 'Mope'#44
habe das gleiche problem bei mir steht 4tage bis zum nächstes GW