|
You last visited: Today at 13:56
Advertisement
Python Experte? Brauche Hilfe bei System!
Discussion on Python Experte? Brauche Hilfe bei System! within the Metin2 Private Server forum part of the Metin2 category.
06/14/2015, 20:31
|
#1
|
elite*gold: 0
Join Date: Feb 2015
Posts: 400
Received Thanks: 46
|
Python Experte? Brauche Hilfe bei System!
Hey wenn mir hier jemand weiterhelfen könnte wäre das mega.. und zwar habe ich das Tag Abend Nacht System eingebaut. Jedoch will ich nicht, dass es auf jeder Map dämmert und Tag und Nacht ist.
Bekomme nur den Code nicht vollständig hin.. und da Python ja ein Arsch is  funktioniert so der ganze Client nicht mehr  .
Hier der Code:
Code:
def __IsDAYMAP(self):
mapDict = ( "metin2_map_spiderdungeon",
"metin2_map_spiderdungeon_02",
"metin2_map_spiderdungeon_03",
"metin2_map_spiderdungeon_boss",
"metin2_map_skipia_dungeon_01",
"metin2_map_skipia_dungeon_02",
"metin2_map_skipia_dungeon_boss",
"metin2_map_dd",
"metin2_map_monkeydungeon",
"metin2_map_monkeydungeon_02",
"metin2_map_monkeydungeon_03",
"metin2_map_devilscatacomb",
"metin2_map_deviltower1",
"metin2_map_deviltower2",
"metin2_map_bayblacksand",
"metin2_map_capedragonhead",
"metin2_map_dawnmistwood",
"map_n_snowm_01",
"metin2_map_e1",
"metin2_map_guild_01",
"metin2_map_guild_02",
"metin2_map_guild_03",
"metin2_map_n_flame_01",
"metin2_map_n_flame_dungeon_01",
"metin2_map_n_snow_dungeon_01",
"metin2_map_nusluck01",
"metin2_map_duel",
"metin2_map_empirewar01",
"metin2_map_empirewar02",
"metin2_map_empirewar03",
"metin2_map_sungzi",
"metin2_map_sungzi_desert_01",
"metin2_map_sungzi_desert_hill_01",
"metin2_map_sungzi_desert_hill_02",
"metin2_map_sungzi_desert_hill_03",
"metin2_map_sungzi_flame_hill_01",
"metin2_map_sungzi_flame_hill_02",
"metin2_map_sungzi_flame_hill_03",
"metin2_map_sungzi_snow",
"metin2_map_sungzi_snow_pass01",
"metin2_map_sungzi_snow_pass02",
"metin2_map_sungzi_snow_pass03",
"metin2_map_mt_thunder", )
if background.GetCurrentMapName() in mapDict:
return FALSE
return TRUE
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":
if not self.__IsDAYMAP():
background.RegisterEnvironmentData(1, constInfo.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":
if not self.__IsDAYMAP():
background.RegisterEnvironmentData(2, constInfo.ENVIRONMENT_EVENING)
background.SetEnvironmentData(2)
day.tag = 1
day.nacht = 0
Das ganze resultiert aus diesem Tut.
Hab keine Ahnung woran das noch liegen könnte, dass es nicht funktioniert.
|
|
|
06/14/2015, 21:43
|
#2
|
elite*gold: 44
Join Date: Dec 2009
Posts: 1,696
Received Thanks: 3,833
|
ggf. weil du:
Code:
if not self.__IsDAYMAP():
background.RegisterEnvironmentData(1, constInfo.ENVIRONMENT_NIGHT)
background.SetEnvironmentData(1)
day.tag = 0
day.nacht = 1
machst statt:
Code:
if not self.__IsDAYMAP():
background.RegisterEnvironmentData(1, constInfo.ENVIRONMENT_NIGHT)
background.SetEnvironmentData(1)
day.tag = 0
day.nacht = 1
|
|
|
06/14/2015, 23:05
|
#3
|
elite*gold: 0
Join Date: Feb 2015
Posts: 400
Received Thanks: 46
|
mal testen
poccix du bist ein GOTT OMG!
|
|
|
 |
Similar Threads
|
Brauche hilfe im Client Python
05/25/2015 - Metin2 Private Server - 1 Replies
Moin,
Im Item
Gegenstand Fassung Rüstung
Wie kann ich den Text in den Klammern ändern bzw welche Datei ist das im Client, also ich will das so machen
Statt =
|
Python brauche hilfe
01/22/2015 - General Coding - 5 Replies
Hey,
ich habe ein Spiel programmiert bei dem sich der Computer eine Zahl zwischen 1 und 100 ausdenkt. Ich muss diese Zahl dann erraten. Soweit klappt alles, jedoch möchte ich, dass wenn ich die Zahl errate dann nochmal gefragt wird ob ich weiter spielen möchte. Kann mir da einer Helfen ??
http://i.epvpimg.com/MzEVf.png
Danke schon mal im Voraus :rolleyes:
|
[Hilfe]Prestige System(Python)
11/12/2014 - Metin2 Private Server - 8 Replies
Hallo, ich wollte fragen ob jmd. eine Idee bezüglich des Prestigesystems hat, da er einen Fehler beinhaltet, wo das Prestige bild beim Rüstungswechsel verschwindet.
mit einem Looptimer möchte ich die Quest nicht benutzen.
Über Antworten würde ich mich freuen, über hilfreiche noch mehr.
Mfg. Noa
|
brauche hilfe bei python
04/22/2012 - General Coding - 3 Replies
Hi
ich wollte mal fragen ob es einen befehl gibt, der, wenn man ihm einfügt, eine 0,4sek pause einfügt wonach der script normal weiter läuft
fabian
|
All times are GMT +1. The time now is 13:57.
|
|