diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-31 19:34:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-31 19:34:22 +0300 |
commit | be6e852a52610e5715a6cb87d606647e39a6b487 (patch) | |
tree | 9c4751dfe64fe655903832d68570f244cc79d9c9 /hercules/code/server/utils.py | |
parent | 746192af34a65504cb86a4eca068a8f0fbb361f5 (diff) | |
download | tools-be6e852a52610e5715a6cb87d606647e39a6b487.tar.gz tools-be6e852a52610e5715a6cb87d606647e39a6b487.tar.bz2 tools-be6e852a52610e5715a6cb87d606647e39a6b487.tar.xz tools-be6e852a52610e5715a6cb87d606647e39a6b487.zip |
hercules: add basic support for converting npc scripts from evol to hercules.
Can convert script line in npc scripts.
Can create map_index.txt and map.conf based on npc dir.
Diffstat (limited to 'hercules/code/server/utils.py')
-rw-r--r-- | hercules/code/server/utils.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hercules/code/server/utils.py b/hercules/code/server/utils.py new file mode 100644 index 0000000..922cf5b --- /dev/null +++ b/hercules/code/server/utils.py @@ -0,0 +1,11 @@ +# -*- coding: utf8 -*- +# +# Copyright (C) 2014 Evol Online +# Author: Andrei Karas (4144) + +from code.fileutils import * + +def cleanServerData(): + removeAllFiles("newserverdata") + makeDir("newserverdata/conf") + makeDir("newserverdata/db") |