diff options
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") |