From be6e852a52610e5715a6cb87d606647e39a6b487 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 31 Oct 2014 19:34:22 +0300 Subject: 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. --- hercules/code/server/utils.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hercules/code/server/utils.py (limited to 'hercules/code/server/utils.py') 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") -- cgit v1.2.3-70-g09d2