summaryrefslogtreecommitdiff
path: root/hercules/code/servertoclient/npcs.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-12 03:14:35 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-12 03:14:35 +0300
commit460822ea6cef840e0f478918547a806b231c3dc6 (patch)
tree729118f0273a182b62628aae87ae8c9fe9b5f1c2 /hercules/code/servertoclient/npcs.py
parentd3648ee52a4860111afe9049713d788f60e5b588 (diff)
downloadevol-tools-460822ea6cef840e0f478918547a806b231c3dc6.tar.gz
evol-tools-460822ea6cef840e0f478918547a806b231c3dc6.tar.bz2
evol-tools-460822ea6cef840e0f478918547a806b231c3dc6.tar.xz
evol-tools-460822ea6cef840e0f478918547a806b231c3dc6.zip
Fix different issues in tools found by pyflakes.
Diffstat (limited to 'hercules/code/servertoclient/npcs.py')
-rw-r--r--hercules/code/servertoclient/npcs.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/hercules/code/servertoclient/npcs.py b/hercules/code/servertoclient/npcs.py
index be5cb46..5e49ffd 100644
--- a/hercules/code/servertoclient/npcs.py
+++ b/hercules/code/servertoclient/npcs.py
@@ -3,13 +3,8 @@
# Copyright (C) 2015 Evol Online
# Author: Andrei Karas (4144)
-import re
-from sets import Set
+from code.fileutils import makeDir, readFile, saveFile
-from code.fileutils import *
-from code.stringutils import *
-
-from code.servertoclient.sprites import *
def getNpcIds(idtofile):
for key1 in idtofile:
@@ -17,12 +12,10 @@ def getNpcIds(idtofile):
if 45 <= key <= 125 or 400 < key < 1000 or 10001 <= key < 10100:
yield key1
+
def convertNpcsNonFree(idtofile):
destDir = "clientdata/"
templatesDir = "templates/"
- monstersDbFile = "serverdata/sql-files/mob_db_re.sql"
- fieldsSplit = re.compile(",")
- bracketsSplit = re.compile("[(]|[)]")
makeDir(destDir)
tpl = readFile(templatesDir + "npc.tpl")
npcs = readFile(templatesDir + "npcs.xml")