Jump to content

Shisui

Former Staff
  • Posts

    977
  • Joined

  • Last visited

  • Days Won

    15
  • Feedback

    0%

Posts posted by Shisui

  1. About the 2º question, see if works.

     

    uiexchange.py

    Replace all the function def Refresh(self): with

    	def Refresh(self):
    
    		self.RefreshOwnerSlot()
    		self.RefreshTargetSlot()
    
    		self.OwnerMoney.SetText(str(('.'.join([ i-3<0 and str(exchange.GetElkFromSelf())[:i] or str(exchange.GetElkFromSelf())[i-3:i] for i in range(len(str(exchange.GetElkFromSelf()))%3, len(str(exchange.GetElkFromSelf()))+1, 3) if i ]))))
    		self.TargetMoney.SetText(str(('.'.join([ i-3<0 and str(exchange.GetElkFromTarget())[:i] or str(exchange.GetElkFromTarget())[i-3:i] for i in range(len(str(exchange.GetElkFromTarget()))%3, len(str(exchange.GetElkFromTarget()))+1, 3) if i ]))))
    
    		if TRUE == exchange.GetAcceptFromSelf():
    			self.OwnerAcceptLight.Down()
    		else:
    			self.AcceptButton.Enable()
    			self.AcceptButton.SetUp()
    			self.OwnerAcceptLight.SetUp()
    
    		if TRUE == exchange.GetAcceptFromTarget():
    			self.TargetAcceptLight.Down()
    		else:
    			self.TargetAcceptLight.SetUp()

     

     

  2. 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?

  3. 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";
    			}
    		....

     

     

×
×
  • 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.