summaryrefslogtreecommitdiff
path: root/hercules/code
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-05 21:27:48 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-05 21:27:48 +0300
commit3bf3c1375fcf65755e360ad8108afdb758a89c0a (patch)
treef6eb57893a12e113098ec3ca4e50e7c6a79bb361 /hercules/code
parent1c6c8889704dc1d7c733a225a8b3cecba8f405e9 (diff)
downloadevol-tools-3bf3c1375fcf65755e360ad8108afdb758a89c0a.tar.gz
evol-tools-3bf3c1375fcf65755e360ad8108afdb758a89c0a.tar.bz2
evol-tools-3bf3c1375fcf65755e360ad8108afdb758a89c0a.tar.xz
evol-tools-3bf3c1375fcf65755e360ad8108afdb758a89c0a.zip
hercules: update db cnverter for support new db fields.
Diffstat (limited to 'hercules/code')
-rw-r--r--hercules/code/server/db/char.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/hercules/code/server/db/char.py b/hercules/code/server/db/char.py
index 45a0918..eaf9df5 100644
--- a/hercules/code/server/db/char.py
+++ b/hercules/code/server/db/char.py
@@ -26,12 +26,12 @@ def saveCharTable(users):
"{str},{agi},{vit},{INT},{dex},{luk},{max_hp},{hp},{max_sp}," +
"{sp},{status_point},{skill_point},{option},{karma},{manner}," +
"{party_id},{guild_id},{pet_id},{homun_id},{elemental_id}," +
- "{hair},{hair_color},{clothes_color},{weapon},{shield}," +
+ "{hair},{hair_color},{clothes_color},{body},{weapon},{shield}," +
"{head_top},{head_mid},{head_bottom},{robe}," +
"'{last_map}',{last_x},{last_y},'{save_map}',{save_x},{save_y}," +
"{partner_id},{online},{father},{mother},{child},{fame}," +
"{rename},{delete_date},{slotchange},{char_opt},{font}," +
- "{unban_time},{uniqueitem_counter},'{sex}')").format(
+ "{unban_time},{uniqueitem_counter},'{sex}',{hotkey_rowshift})").format(
char_id = user.char_id,
account_id = user.account_id,
char_num = user.char_num,
@@ -65,6 +65,7 @@ def saveCharTable(users):
hair = user.hair,
hair_color = user.hair_color,
clothes_color = user.clothes_color,
+ body = 0,
weapon = user.weapon,
shield = user.shield,
head_top = user.head_top,
@@ -90,7 +91,8 @@ def saveCharTable(users):
font = "0",
unban_time = "0",
uniqueitem_counter = len(user.inventory),
- sex = "U"
+ sex = "U",
+ hotkey_rowshift = 0
))
w.write("\n")
@@ -114,17 +116,17 @@ def saveCharTableCustom(users):
"{str},{agi},{vit},{INT},{dex},{luk},{max_hp},{hp},{max_sp}," +
"{sp},{status_point},{skill_point},{option},{karma},{manner}," +
"{party_id},{guild_id},{pet_id},{homun_id},{elemental_id}," +
- "{hair},{hair_color},{clothes_color},{weapon},{shield}," +
+ "{hair},{hair_color},{clothes_color},{body},{weapon},{shield}," +
"{head_top},{head_mid},{head_bottom},{robe}," +
"'{last_map}',{last_x},{last_y},'{save_map}',{save_x},{save_y}," +
"{partner_id},{online},{father},{mother},{child},{fame}," +
"{rename},{delete_date},{slotchange},{char_opt},{font}," +
- "{unban_time},{uniqueitem_counter},'{sex}')").format(
+ "{unban_time},{uniqueitem_counter},'{sex}',{hotkey_rowshift})").format(
char_id = user.char_id,
account_id = user.account_id,
char_num = user.char_num,
name = escapeSqlStr(user.char_name),
- CLASS = user.char_class,
+ CLASS = 0,
base_level = user.base_level,
job_level = user.job_level,
base_exp = user.base_exp,
@@ -153,6 +155,7 @@ def saveCharTableCustom(users):
hair = user.hair,
hair_color = user.hair_color,
clothes_color = user.clothes_color,
+ body = 0,
weapon = user.weapon,
shield = user.shield,
head_top = user.head_top,
@@ -178,6 +181,7 @@ def saveCharTableCustom(users):
font = "0",
unban_time = "0",
uniqueitem_counter = len(user.inventory),
- sex = "U"
+ sex = "U",
+ hotkey_rowshift = 0
))
w.write("\n")