|
You last visited: Today at 05:32
Advertisement
[Release/HowTo] Automatischer Tag/Nacht MOD(richtet sich nach Uhrzeit)
Discussion on [Release/HowTo] Automatischer Tag/Nacht MOD(richtet sich nach Uhrzeit) within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
03/16/2013, 15:29
|
#1
|
elite*gold: 222
Join Date: Oct 2012
Posts: 2,369
Received Thanks: 3,389
|
[Release/HowTo] Automatischer Tag/Nacht MOD(richtet sich nach Uhrzeit)
Sry bin dumm  D
#closerequest
|
|
|
03/16/2013, 15:31
|
#2
|
elite*gold: 10
Join Date: Jan 2013
Posts: 471
Received Thanks: 228
|
Danke Ave, brauche ich zwar nicht aber egal :P
|
|
|
03/16/2013, 15:39
|
#3
|
elite*gold: 0
Join Date: Jun 2011
Posts: 160
Received Thanks: 161
|
game.py
PHP Code:
# TAG NACHT
def day_night(self):
import time
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(1, constInfo.ENVIRONMENT_NIGHT)
background.SetEnvironmentData(1)
day.tag = 0
day.nacht = 1
if day.tag == 0:
if localtime == "10" or localtime == "11" or localtime == "12" or localtime == "13" or localtime == "14" or localtime == "15" or localtime == "16" or localtime == "17" or localtime == "18" :
background.SetEnvironmentData(0)
day.tag = 1
day.nacht = 0
if localtime == "08" or localtime == "09" or localtime == "19" or localtime == "20":
background.RegisterEnvironmentData(2, constInfo.ENVIRONMENT_EVENING)
background.SetEnvironmentData(2)
day.tag = 1
day.nacht = 0
# TAG NACHT END
day.py
PHP Code:
nacht = 0
tag = 0
constinfo.py
PHP Code:
ENVIRONMENT_MORNING = "d:/ymir work/environment/morning.msenv"
ENVIRONMENT_AFTERNOON = "d:/ymir work/environment/afternoon.msenv"
ENVIRONMENT_EVENING = "d:/ymir work/environment/evening.msenv"
ENVIRONMENT_NIGHT = "d:/ymir work/environment/moonlight04.msenv"
|
|
|
03/16/2013, 17:50
|
#4
|
elite*gold: 222
Join Date: Oct 2012
Posts: 2,369
Received Thanks: 3,389
|
Quote:
Originally Posted by DexterSK
game.py
PHP Code:
# TAG NACHT
def day_night(self):
import time
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(1, constInfo.ENVIRONMENT_NIGHT)
background.SetEnvironmentData(1)
day.tag = 0
day.nacht = 1
if day.tag == 0:
if localtime == "10" or localtime == "11" or localtime == "12" or localtime == "13" or localtime == "14" or localtime == "15" or localtime == "16" or localtime == "17" or localtime == "18" :
background.SetEnvironmentData(0)
day.tag = 1
day.nacht = 0
if localtime == "08" or localtime == "09" or localtime == "19" or localtime == "20":
background.RegisterEnvironmentData(2, constInfo.ENVIRONMENT_EVENING)
background.SetEnvironmentData(2)
day.tag = 1
day.nacht = 0
# TAG NACHT END
day.py
PHP Code:
nacht = 0
tag = 0
constinfo.py
PHP Code:
ENVIRONMENT_MORNING = "d:/ymir work/environment/morning.msenv"
ENVIRONMENT_AFTERNOON = "d:/ymir work/environment/afternoon.msenv"
ENVIRONMENT_EVENING = "d:/ymir work/environment/evening.msenv"
ENVIRONMENT_NIGHT = "d:/ymir work/environment/moonlight04.msenv"
|
Hatte des selbe eben drin,
nur halt OHNE BUG  bei dir fehlt noch
wegen day.py
|
|
|
03/16/2013, 18:34
|
#5
|
elite*gold: 0
Join Date: Feb 2013
Posts: 268
Received Thanks: 425
|
Ist doch bereits Public Avenue.
|
|
|
03/16/2013, 19:10
|
#6
|
elite*gold: 0
Join Date: May 2011
Posts: 385
Received Thanks: 260
|
Hab ich doch bereits veröffentlicht 
Zwar nur mit einem Abend aber Prinzip ist es ja das selbe.
|
|
|
03/16/2013, 20:13
|
#7
|
elite*gold: 32
Join Date: Mar 2012
Posts: 6,716
Received Thanks: 2,737
|
Quote:
Originally Posted by .Avenue™
Sry bin dumm  D
#closerequest
|
#closed
|
|
|
 |
Similar Threads
|
Ligasystem wonach richtet sich Soloque?
02/08/2013 - League of Legends - 6 Replies
Hey, wollte mal Fragen wonach sich jetzt alles richtet?
Momentan kotzt es nämlich mächtig an das man nurnoch volldeppen als teammates bekommt...
Vor allem da man seit S3 nichtmehr solo carrien kann...
Ich will nicht sagen, dass meine Spiele immer 1a sind..
Aber ich habe die letzten 4 spiele zu 100% meine Lane gewonnen, bin roamen gegangen und entweder haben meine Teammates gefeedet, geleavt oder den Tank gefocust... Und nach 20 Minuten nen Ryze Mitte mit 50 creeps und nen Yorick mit 40 im...
|
[Howto]Ingame Uhrzeit "Aktuelle Uhrzeit"
07/29/2012 - Metin2 PServer Guides & Strategies - 17 Replies
Gelöscht auf Crank's Wunsch weil der Kerle Zickig auf die Section ist :D
|
Anonymous: Operation UnManifest richtet sich gegen Norwegen-Amokläufer Breivik
07/28/2011 - User Submitted News - 8 Replies
Anonymous: Operation UnManifest soll dazu dienen, das Manifest des Norwegen-Attentäters Anders Breivik zu einem Quatsch-Manifest umzuschreiben.Operation UnManifest heißt die Aktion, die von Mitgliedern des Webkollektivs Anonymous ins Leben gerufen wurde. Der Aufruf zielt darauf ab, dass die zahlreichen, im Internet kursierenden Kopien des Manifests des Norwegen-Attentäters Anders Breitvik so verändert werden, dass sie den Täter ins Lächerliche ziehen. Nach Ansicht von Anonymous verhindere man...
|
20 nach 2 nacht
03/07/2009 - Off Topic - 1 Replies
ich spiele
css was spielt ihr???
:)
|
All times are GMT +1. The time now is 05:32.
|
|