summaryrefslogtreecommitdiff
path: root/hercules/code/server/evol/main.py
blob: 6014e051e900c7cabe3000cc5f497ee4ce9b01a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /usr/bin/env python
# -*- coding: utf8 -*-
#
# Copyright (C) 2014  Evol Online
# Author: Andrei Karas (4144)

from code.server.account import *
from code.server.db.char import *
from code.server.evol.athena import *
from code.server.evol.consts import *
from code.server.evol.itemdb import *
from code.server.evol.mobdb import *
from code.server.evol.mobskilldb import *
from code.server.evol.npcs import *
from code.server.utils import *
from code.server.questsdb import *
from code.serverutils import *

def serverEvolMain():
    cleanServerData()
    createMainScript()
    items = convertItemDb()
    convertNpcs(items)
    convertMobDb()
    quests = convertQuestsDb()
    convertConsts(quests)
    convertMobSkillDb()

def dbEvolMain():
    convertAccount()
    users = readAthena();
    saveCharTable(users);