summaryrefslogtreecommitdiff
path: root/hercules/convert_server.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-29 12:02:21 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-29 12:02:21 +0300
commit7ee8060460c63f0f4aaae338c99686f38edff2a0 (patch)
tree06b8a5319e986e4015e9cfc38e0091ae97585ca3 /hercules/convert_server.py
parentfd60b7426c0191d7275272aec604d272fbc3c420 (diff)
downloadevol-tools-7ee8060460c63f0f4aaae338c99686f38edff2a0.tar.gz
evol-tools-7ee8060460c63f0f4aaae338c99686f38edff2a0.tar.bz2
evol-tools-7ee8060460c63f0f4aaae338c99686f38edff2a0.tar.xz
evol-tools-7ee8060460c63f0f4aaae338c99686f38edff2a0.zip
hercules: start adding support for conversion from tmwa data.
Diffstat (limited to 'hercules/convert_server.py')
-rwxr-xr-xhercules/convert_server.py23
1 files changed, 8 insertions, 15 deletions
diff --git a/hercules/convert_server.py b/hercules/convert_server.py
index 4cbaa89..f323b4e 100755
--- a/hercules/convert_server.py
+++ b/hercules/convert_server.py
@@ -4,19 +4,12 @@
# Copyright (C) 2014 Evol Online
# Author: Andrei Karas (4144)
-from code.server.consts import *
-from code.server.itemdb import *
-from code.server.mobdb import *
-from code.server.mobskilldb import *
-from code.server.npcs import *
-from code.server.utils import *
-from code.server.questsdb import *
+from code.serverutils import *
+from code.server.evol.main import *
+from code.server.tmw.main import *
-cleanServerData()
-createMainScript()
-items = convertItemDb()
-convertNpcs(items)
-convertMobDb()
-quests = convertQuestsDb()
-convertConsts(quests)
-convertMobSkillDb()
+serverType = detectServerType()
+if serverType == "evol":
+ serverEvolMain();
+else:
+ serverTmwMain();