Jump to content

Recommended Posts

  • Former Staff

Yellow guys, is it possible to expand /eclipse flag to add more day modes besides day and night, like morning and evening?
Or I have to create flags for each?

/do_morning
/do_evening

This is the code for eclipse flag. 
cmd_gm.cpp

Spoiler

ACMD(do_eclipse)
{
	char arg1[256];
	one_argument(argument, arg1, sizeof(arg1));

	if (strtol(arg1, NULL, 10) == 1)
	{
		quest::CQuestManager::instance().RequestSetEventFlag("eclipse", 1);
	}
	else
	{
		quest::CQuestManager::instance().RequestSetEventFlag("eclipse", 0);
	}
}

 

questmanager.cpp

Spoiler

		else if ( name == "eclipse" )
		{
			std::string mode("");

			if ( value == 1 )
			{
				mode = "dark";
			} else if(value == 3)
			else
			{
				mode = "light";
			}
		....

 


Vanilla's code has something like this but I don't know if this works properly.
questmanager.cpp

Spoiler

		else if ( name == "eclipse" )
		{
			std::string mode("");

			if ( value == 1 )
			{
				mode = "dark";
			} else if(value == 3)
			{
				mode = "morning";
			} else if (value == 4)
			{
				mode = "evening";
			} else
			{
				mode = "light";
			}
		....

 

 

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

It is possible tho you would have to edit the client side day/night modes as well as the server side commands. I am not sure how to achieve this but  it is something to do with the textures; I will create a guide how to do this shortly altho someone would have to create day/night etc. models for the brightness and the sky.

Link to comment
Share on other sites

  • Former Staff
3 minutes ago, Sentrix said:

It is possible tho you would have to edit the client side day/night modes as well as the server side commands. I am not sure how to achieve this but  it is something to do with the textures; I will create a guide how to do this shortly altho someone would have to create day/night etc. models for the brightness and the sky.

What do you mean by create models for day/night?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.