diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-12 03:14:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-12 03:14:35 +0300 |
commit | 460822ea6cef840e0f478918547a806b231c3dc6 (patch) | |
tree | 729118f0273a182b62628aae87ae8c9fe9b5f1c2 /hercules/code/servertoclient/npcs.py | |
parent | d3648ee52a4860111afe9049713d788f60e5b588 (diff) | |
download | evol-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.py | 11 |
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") |