summaryrefslogtreecommitdiff
path: root/hercules/convert_db.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-18 15:26:11 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-18 15:30:41 +0300
commita78224ded6873bbb3078a7f01f123551b34a82fb (patch)
treef286da32fb0018820ae59d9eeadbe5de31e6486c /hercules/convert_db.py
parent1cf8a73eaab31a1a868ea9edf88d256a37d21fc2 (diff)
downloadevol-tools-a78224ded6873bbb3078a7f01f123551b34a82fb.tar.gz
evol-tools-a78224ded6873bbb3078a7f01f123551b34a82fb.tar.bz2
evol-tools-a78224ded6873bbb3078a7f01f123551b34a82fb.tar.xz
evol-tools-a78224ded6873bbb3078a7f01f123551b34a82fb.zip
hercules: add converter for account.txt
Diffstat (limited to 'hercules/convert_db.py')
-rwxr-xr-xhercules/convert_db.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/hercules/convert_db.py b/hercules/convert_db.py
new file mode 100755
index 0000000..1c367ff
--- /dev/null
+++ b/hercules/convert_db.py
@@ -0,0 +1,25 @@
+#! /usr/bin/env python
+# -*- coding: utf8 -*-
+#
+# Copyright (C) 2015 Evol Online
+# Author: Andrei Karas (4144)
+
+import sys
+
+from code.server.evol.main import *
+from code.server.tmw.main import *
+
+def showHelp():
+ print "Usage: ./convert_db.py evol"
+ print " ./convert_db.py tmw"
+ exit(1)
+
+if len(sys.argv) != 2:
+ showHelp()
+
+if sys.argv[1] == "evol":
+ dbEvolMain()
+elif sys.argv[1] == "tmw":
+ dbTmwMain()
+else:
+ showHelp()