Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 08:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Auto Guildwar problem.

Discussion on Auto Guildwar problem. within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
Serenity-.'s Avatar
 
elite*gold: 20
Join Date: Jun 2013
Posts: 445
Received Thanks: 76
Auto Guildwar problem.

Wo steh hier wann genau der gw startet und wie viel zeitabstand zwischen den einzelnen gws ist. (Code gow source).

Quote:
#ifdef __GW_X_TIMES
const int nDelay = 24 / (GW_X + 1);
char nDay = (char)ctime.GetDayOfWeek() - 1;
bool bStart = false;
for( int i = 0; i <= GW_X; ++i )
{
if( (__AutoOpen[nDay].nHour - (i*nDelay)) == ctime.GetHour() &&
__AutoOpen[nDay].nMinute == ctime.GetMinute() && m_bMutex == FALSE )
{
bStart = true;
break;
}
}
if( bStart )
#else
if( __AutoOpen[ctime.GetDayOfWeek()-1].nHour == ctime.GetHour() &&
__AutoOpen[ctime.GetDayOfWeek()-1].nMinute == ctime.GetMinute() && m_bMutex == FALSE )
#endif
Quote:
#ifdef __GW_X_TIMES
const int nDelay = 24 / (GW_X+1);
for( int j = GW_X; j >= 0; --j )
{
int nHour = __AutoOpen[nDayOfWeek].nHour - j * nDelay;
if( i == nDay )
{
if( nHour < tmNow.GetHour() )
continue;
if( nHour == tmNow.GetHour() )
{
if( __AutoOpen[nDayOfWeek].nMinute <= tmNow.GetMinute() )
continue;
}
}
int nDaysUntilNextGW = i - nDay;
int nHoursUntilNextGW = nHour - tmNow.GetHour();
int nMinutesUntilNextGW = __AutoOpen[nDayOfWeek].nMinute - tmNow.GetMinute();
if( nMinutesUntilNextGW < 0 )
{
nMinutesUntilNextGW += 60;
nHoursUntilNextGW--;
}
if( nHoursUntilNextGW < 0 )
{
nHoursUntilNextGW += 24;
nDaysUntilNextGW--;
}
dwNext = 86400000 * nDaysUntilNextGW + nHoursUntilNextGW * 3600000 + MIN(nMinutesUntilNextGW);
break;
}
if( dwNext )
break;
#else
if( i == nDay )
{
if( __AutoOpen[nDayOfWeek].nHour < tmNow.GetHour() )
continue;
else if( __AutoOpen[nDayOfWeek].nHour == tmNow.GetHour() )
{
if( __AutoOpen[nDayOfWeek].nMinute <= tmNow.GetMinute() )
continue;
}
}
int nDaysUntilNextGW = i - nDay;
int nHoursUntilNextGW = __AutoOpen[nDayOfWeek].nHour - tmNow.GetHour();
int nMinutesUntilNextGW = __AutoOpen[nDayOfWeek].nMinute - tmNow.GetMinute();
if( nMinutesUntilNextGW < 0 )
{
nMinutesUntilNextGW += 60; ich denke mir ja das es das sein kann also 60 mins zwischen jedem gw aber ingame im timer steht trotzdem 2 stunden...
nHoursUntilNextGW--;
}
if( nHoursUntilNextGW < 0 )
{
nHoursUntilNextGW += 24;
nDaysUntilNextGW--;
}
dwNext = 86400000 * nDaysUntilNextGW + nHoursUntilNextGW * 3600000 + MIN(nMinutesUntilNextGW);
break;
#endif
Serenity-. is offline  
Old 01/30/2015, 19:59   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 211
Received Thanks: 84
24 / (GW_X + 1);

GW_X ist in der VersionCommon.h definiert
hanns.g is offline  
Reply


Similar Threads Similar Threads
Auto GuildWar every 30 min
05/07/2015 - Flyff PServer Guides & Releases - 43 Replies
Hiermit reuploade ich mein Auto GuildWar. Ersetzt das hier Mit dem Hier 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
Auto Guildwar [Hilfe]
05/25/2013 - Flyff Private Server - 6 Replies
Kann mir jemand ein Gefixxtes auto guildwar system hier per antwort schicken und evntl die Guildcombat.txt dazu weil durch das von .S0urce crasht mein Client immer wenn der gw starten soll..... Bitte um schnelle hilfe.
Auto GuildWar every 30 minutes
12/16/2012 - Flyff Private Server - 7 Replies
Hey Leute, seit dem auto gw drinne ist startet er den gw nicht mehr automatisch. Es kommt nichtmal eine info das der gw nicht statt findet ^^ hat vlt wer eine lösung? wer lusst hat zu helfen und den code mal sehen will der soll sich melden ;) mfg. Crowley
Auto GuildWar every 30 minutes
12/16/2012 - Flyff Private Server - 4 Replies
Hey, wollte fragen ob iwer das Auto GuildWar every 30 minutes system hat. wäre nett wenn mir das er schicken könnte oder sagen könnte wo man dieses her bekommt. mfg. Crowöey
[Release] Auto GuildWar every 30 minutes
09/12/2012 - Flyff PServer Guides & Releases - 10 Replies
#removed



All times are GMT +1. The time now is 08:10.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.