|
You last visited: Today at 05:29
Advertisement
[Tutoriel] Systeme Night and day (hallowenn)
Discussion on [Tutoriel] Systeme Night and day (hallowenn) within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.
01/25/2014, 17:36
|
#1
|
elite*gold: 0
Join Date: Dec 2013
Posts: 245
Received Thanks: 28
|
[Tutoriel] Systeme Night and day (hallowenn)
Hello everyone!
Hallowenn coming soon, and i sayed to myself "The game need to be crazy and be fear".
Screen:
For this, you need ton open 2 files, WorlEnvironment.cpp and Neuz.cpp
go to WorldEnvironment.cpp and find "static const LIGHTCOLOR gs_kLight[24]".
Before this, i added that ( red color):
#endif
//Debut Systeme d'assombrissement pour la periode de Halloween
static const LIGHTCOLOR gs_kLightHalloween[24] =
{
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 0 12
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 1
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 2
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 3
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 4
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 5
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 6
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 7
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 8
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 9
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 10
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 11
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 12
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 13 1
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 14 2
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 15 3
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 16 4
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 17 5
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 18 6
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 19 7
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 20 8
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 21 9
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f, // 22 10
0.03f, 0.03f, 0.05f, 0.03f, 0.03f, 0.1f // 23 11
};
//Fin Systeme d'assombrissement pour la periode de Halloween
// ¿À·¡ÀüºÎÅÍ ½á¿À´ø °ÔÀÓ³» ½Ã°£´üÀ§ Light color values, ÀÌ ³À¼®À» default·Î ¾´´Ù.
static const LIGHTCOLOR gs_kLight[24] = // diffuse, ambient
In the same file, find "BOOL CWorld::InitWorldEnvir( )", and added this (red color):
BOOL CWorld::InitWorldEnvir( )
{
//Debut Systeme d'assombrissement pour la periode de Halloween
CTime timeCurr = CTime::GetCurrentTime();
int nMonth = timeCurr.GetMonth();
int nDay = timeCurr.GetDay();
if (nMonth == 10 && nDay == 31)
{
memcpy( m_k24Light, gs_kLightHalloween, sizeof( LIGHTCOLOR ) * 24 );
}
else if (nMonth == 11 && nDay == 1)
{
memcpy( m_k24Light, gs_kLightHalloween, sizeof( LIGHTCOLOR ) * 24 );
}
else
{
memcpy( m_k24Light, gs_kLight, sizeof( LIGHTCOLOR ) * 24 );
}
return TRUE;
//End System darkening for the period of Halloween
}
#if __VER >= 15 // __GUILD_HOUSE
Last time in this file, find at, i added this (red color) "m_bUsing24Light!"
if( !m_bUsing24Light )
{
//Start System darkening for the period of Halloween
CTime timeCurr = CTime::GetCurrentTime();
int nMonth = timeCurr.GetMonth();
int nDay = timeCurr.GetDay();
if (nMonth == 10 && nDay == 31)
{
memcpy( m_k24Light, gs_kLightHalloween, sizeof( LIGHTCOLOR ) * 24 );
}
else if (nMonth == 11 && nDay == 1)
{
memcpy( m_k24Light, gs_kLightHalloween, sizeof( LIGHTCOLOR ) * 24 );
}
else
{
memcpy( m_k24Light, gs_kLight, sizeof( LIGHTCOLOR ) * 24 );
}
//End System darkening for the period of Halloween
}
#ifdef __BS_CHANGEABLE_WORLD_SEACLOUD
Here we have defined for the period from 31 October to 1 November, a darkening of the game, go to the management of the sky (would be stupid to have a dark and beautiful blue sky above).
Right now, we add system for halloween night at october 31 and november first. Now, we need to stop the sky action.
For stop the sky action, we will stop the time in game, at 1 am. exactly. Go on Neuz.cpp and find "m_d3dEnumeration.AppUsesMixedVP = TRUE;", and add this code (red color).
Citation
//Debut Systeme d'assombrissement pour la periode de Halloween
CTime timeCurr = CTime::GetCurrentTime();
int nMonth = timeCurr.GetMonth();
int nDay = timeCurr.GetDay();
if (nMonth == 10 && nDay == 31)
{
g_GameTimer.m_bFixed = TRUE;
g_GameTimer.m_nHour = 1;
}
else if (nMonth == 11 && nDay == 1)
{
g_GameTimer.m_bFixed = TRUE;
g_GameTimer.m_nHour = 1;
}
//End assombrissement Systeme pour la periode d'Halloween
And here finally, if there are problems thank you to let me know quickly to allow me to correct as soon as possible.
That all, if you see any prob in gold with the result code, say me fast, and all i change my post.
Cordialement
Prophet
c* Robinhood (i juz found this from the other forum)
|
|
|
01/25/2014, 17:40
|
#2
|
ベトナム警察
elite*gold: 725
Join Date: Jan 2012
Posts: 16,371
Received Thanks: 3,429
|
Any screens? ;o
Wasn't that copied at another board?
|
|
|
01/25/2014, 17:54
|
#3
|
elite*gold: 0
Join Date: Dec 2013
Posts: 245
Received Thanks: 28
|
Yes. I juz copy/paste this from the other board.
|
|
|
01/26/2014, 11:23
|
#4
|
elite*gold: 115
Join Date: Jan 2012
Posts: 1,156
Received Thanks: 894
|
Credits to Prophet and edit the surface by dave
screens?
|
|
|
|
Similar Threads
|
Bug Fumbi [Tutoriel Vidéo]
01/18/2014 - S4 League Hacks, Bots, Cheats & Exploits - 2 Replies
Hi, I present a little bug fumbi :
Bug fumbi - YouTube
Read :
1] Open S4 League
2] Go in the fumbi
3] Press Start
4] Direct press CTRL + ALT + DEL
You think : Believe in God for win +7 ? Lol.
|
Bug Fumbi [Tutoriel Vidéo]
01/17/2014 - S4 League Hacks, Bots, Cheats & Exploits - 32 Replies
Hi, I present a little bug fumbi :
Bug fumbi - YouTube
Read :
1] Open S4 League
2] Go in the fumbi
3] Press Start
4] Direct press CTRL + ALT + DEL
You think : Believe in God for win +7 ? Lol.
|
DarkSpirit Version Public ! Tutoriel !
12/09/2012 - S4 League Hacks, Bots, Cheats & Exploits - 3 Replies
Tutorial Cheat DarkSpirit Public Version! I had a friend on skype so I do not know the creator, so it is annonyme.
This is not a double post or farm ph, since I have a tutorial on it with a video not like the other if there 'as in =)
http://img11.hostingpics.net/pics/434231Sanstitre .png
Fonction
Inf Sp
Godmode
Inf Ammo
|
Tutoriel to creat a Server Shaiya
08/02/2012 - Shaiya PServer Development - 12 Replies
just delete.
|
All times are GMT +2. The time now is 05:29.
|
|