Register for your free account! | Forgot your password?

You last visited: Today at 16:17

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

Advertisement



[HELP] Morning-Mod

Discussion on [HELP] Morning-Mod within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2013
Posts: 144
Received Thanks: 32
[HELP] Morning-Mod

Hallo leute, brauche eure hilfe:

PHP Code:
        localtime time.strftime("%H")
        if 
day.nacht == 0:

            if 
localtime == "01" or localtime == "02" or localtime == "03" or localtime == "04" or localtime == "05" or localtime == "06" or localtime == "07" or localtime == "00" or localtime == "23" or localtime == "22" or localtime == "21":
                
background.RegisterEnvironmentData(1constInfo.ENVIRONMENT_NIGHT)
                
background.SetEnvironmentData(1)
                
day.tag 0
                day
.nacht 1
        
if day.tag == 0:        
            if 
localtime == "11" or localtime == "12" or localtime == "13" or localtime == "14" or localtime == "15" or localtime == "16" or localtime == "17":
                
background.SetEnvironmentData(0)
                
day.tag 1
                day
.nacht 0
            
if localtime == "08" or localtime == "09" or localtime == "10" or localtime == "18" or localtime == "19" or localtime == "20":
                
background.RegisterEnvironmentData(2constInfo.ENVIRONMENT_EVENING)
                
background.SetEnvironmentData(2)
                
day.tag 1
                day
.nacht 0
            
if localtime == "06" or localtime == "08" or localtime == "09":
                
background.RegisterEnvironmentData(3constInfo.ENVIRONMENT_MORNING)
                
background.SetEnvironmentData(3)
                
day.tag 1
                day
.nacht 
Ich wollte das es von 6-9uhr den Morgen anmacht

Nur irgendwie ist der himmel nun so buggy das sich alles überlapped,,

Wer kann mir helfen?
SonnyD is offline  
Old 06/02/2014, 10:27   #2
 
elite*gold: 39
Join Date: Jun 2009
Posts: 500
Received Thanks: 212
Code:
		localtime = time.strftime("%H")
		if day.nacht == 0:

			if localtime == "01" or localtime == "02" or localtime == "03" or localtime == "04" or localtime == "05" or localtime == "00" or localtime == "23" or localtime == "22" or localtime == "21":
				background.RegisterEnvironmentData(1, constInfo.ENVIRONMENT_NIGHT)
				background.SetEnvironmentData(1)
				day.tag = 0
				day.nacht = 1
		if day.tag != 1:		
			if localtime == "11" or localtime == "12" or localtime == "13" or localtime == "14" or localtime == "15" or localtime == "16" or localtime == "17":
				background.SetEnvironmentData(0)
				day.tag = 1
				day.nacht = 0
		if day.tag != 2:
			if localtime == "08" or localtime == "09" or localtime == "10" or localtime == "18" or localtime == "19" or localtime == "20":
				background.RegisterEnvironmentData(2, constInfo.ENVIRONMENT_EVENING)
				background.SetEnvironmentData(2)
				day.tag = 2
				day.nacht = 0
		if day.tag != 3:
			if localtime == "06" or localtime == "07" or localtime == "08" or localtime == "09":
				background.RegisterEnvironmentData(3, constInfo.ENVIRONMENT_MORNING)
				background.SetEnvironmentData(3)
				day.tag = 3
				day.nacht = 0
Kind Regards
.HC'Destrox is offline  
Reply


Similar Threads Similar Threads
Morning All
05/23/2014 - Say Hello - 1 Replies
:)hello all Thanks for having me. just happened to see the site by chance. going to have a nose around, get my bearings as they say. looking forward to interacting etc. so I am going to grab my cuppa and have a wonder.
Morning
05/03/2012 - Say Hello - 2 Replies
chirp
morning
09/11/2009 - Say Hello - 3 Replies
new member
morning
05/04/2009 - Say Hello - 1 Replies
hey the name is cmd_ stumbled on this fourm looking for a SRO loader its so annoying to get dced after a failed login attempt :(
Morning Everyone
02/17/2008 - Say Hello - 0 Replies
Sup People



All times are GMT +1. The time now is 16:19.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.