Skip to content

Commit

Permalink
Plumb currency2 packet
Browse files Browse the repository at this point in the history
Fix silver aman ref
  • Loading branch information
claywar committed Apr 25, 2021
1 parent 7891c04 commit 79bd31a
Show file tree
Hide file tree
Showing 5 changed files with 305 additions and 101 deletions.
82 changes: 82 additions & 0 deletions sql/char_points.sql
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,88 @@ CREATE TABLE `char_points` (
`deeds` smallint(5) unsigned NOT NULL DEFAULT '0',
`current_accolades` int(10) unsigned NOT NULL DEFAULT 0,
`prev_accolades` int(10) unsigned NOT NULL DEFAULT 0,
`mystical_canteen` tinyint(3) unsigned NOT NULL DEFAULT 0,
`ghastly_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`ghastly_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`ghastly_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`verdigris_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`verdigris_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`verdigris_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`wailing_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`wailing_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`wailing_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`snowslit_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`snowslit_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`snowslit_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`snowtip_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`snowtip_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`snowtip_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`snowdim_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`snowdim_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`snowdim_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`snoworb_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`snoworb_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`snoworb_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`leafslit_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`leafslit_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`leafslit_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`leaftip_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`leaftip_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`leaftip_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`leafdim_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`leafdim_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`leafdim_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`leaforb_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`leaforb_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`leaforb_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`duskslit_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`duskslit_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`duskslit_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`dusktip_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`dusktip_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`dusktip_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`duskdim_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`duskdim_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`duskdim_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`duskorb_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`duskorb_stone_1` tinyint(3) unsigned NOT NULL DEFAULT 0,
`duskorb_stone_2` tinyint(3) unsigned NOT NULL DEFAULT 0,
`pellucid_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`fern_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`taupe_stone` tinyint(3) unsigned NOT NULL DEFAULT 0,
`escha_beads` smallint(5) unsigned NOT NULL DEFAULT 0,
`escha_silt` int(10) unsigned NOT NULL DEFAULT 0,
`potpourri` int(10) unsigned NOT NULL DEFAULT 0,
`current_hallmarks` int(10) unsigned NOT NULL DEFAULT 0,
`total_hallmarks` int(10) unsigned NOT NULL DEFAULT 0,
`gallantry` int(10) unsigned NOT NULL DEFAULT 0,
`crafter_points` int(10) unsigned NOT NULL DEFAULT 0,
`fire_crystal_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`ice_crystal_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`wind_crystal_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`earth_crystal_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`lightning_crystal_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`water_crystal_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`light_crystal_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`dark_crystal_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`mc_s_sr01_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`mc_s_sr02_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`mc_s_sr03_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`liquefaction_spheres_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`induration_spheres_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`detonation_spheres_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`scission_spheres_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`impaction_spheres_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`reverberation_spheres_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`transfixion_spheres_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`compression_spheres_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`fusion_spheres_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`distortion_spheres_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`fragmentation_spheres_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`gravitation_spheres_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`light_spheres_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`darkness_spheres_set` tinyint(3) unsigned NOT NULL DEFAULT 0,
`silver_aman_voucher` int(10) unsigned NOT NULL DEFAULT 0,

PRIMARY KEY (`charid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Expand Down
2 changes: 1 addition & 1 deletion src/map/packets/campaign_map.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
===========================================================================
Copyright (c) 2010-2015 Darkstar Dev Teams
Expand Down
216 changes: 116 additions & 100 deletions src/map/packets/currency2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,109 +30,125 @@ CCurrencyPacket2::CCurrencyPacket2(CCharEntity* PChar)
this->id(0x118);
this->length(132);

const char* query = "SELECT bayld, kinetic_unit, imprimaturs, obsidian_fragment, lebondopt_wing, \
pulchridopt_wing, mweya_plasm FROM char_points WHERE charid = %d";

int ret = Sql_Query(SqlHandle, query, PChar->id);
const char* query = "SELECT bayld, kinetic_unit, imprimaturs, mystical_canteen, obsidian_fragment, lebondopt_wing, \
pulchridopt_wing, mweya_plasm, ghastly_stone, ghastly_stone_1, ghastly_stone_2, verdigris_stone, \
verdigris_stone_1, verdigris_stone_2, wailing_stone, wailing_stone_1, wailing_stone_2, \
snowslit_stone, snowslit_stone_1, snowslit_stone_2, snowtip_stone, snowtip_stone_1, snowtip_stone_2, \
snowdim_stone, snowdim_stone_1, snowdim_stone_2, snoworb_stone, snoworb_stone_1, snoworb_stone_2, \
leafslit_stone, leafslit_stone_1, leafslit_stone_2, leaftip_stone, leaftip_stone_1, leaftip_stone_2, \
leafdim_stone, leafdim_stone_1, leafdim_stone_2, leaforb_stone, leaforb_stone_1, leaforb_stone_2, \
duskslit_stone, duskslit_stone_1, duskslit_stone_2, dusktip_stone, dusktip_stone_1, dusktip_stone_2, \
duskdim_stone, duskdim_stone_1, duskdim_stone_2, duskorb_stone, duskorb_stone_1, duskorb_stone_2, \
pellucid_stone, fern_stone, taupe_stone, escha_beads, escha_silt, potpourri, current_hallmarks, \
total_hallmarks, gallantry, crafter_points, fire_crystal_set, ice_crystal_set, wind_crystal_set, \
earth_crystal_set, lightning_crystal_set, water_crystal_set, light_crystal_set, dark_crystal_set, \
mc_s_sr01_set, mc_s_sr02_set, mc_s_sr03_set, liquefaction_spheres_set, induration_spheres_set, \
detonation_spheres_set, scission_spheres_set, impaction_spheres_set, reverberation_spheres_set, \
transfixion_spheres_set, compression_spheres_set, fusion_spheres_set, distortion_spheres_set, \
fragmentation_spheres_set, gravitation_spheres_set, light_spheres_set, darkness_spheres_set, \
silver_aman_voucher \
FROM char_points WHERE charid = % d ";

int ret = Sql_Query(SqlHandle, query, PChar->id);
if (ret != SQL_ERROR && Sql_NextRow(SqlHandle) == SQL_SUCCESS)
{
ref<uint32>(0x04) = Sql_GetIntData(SqlHandle, 0); // bayld
ref<uint32>(0x04) = Sql_GetUIntData(SqlHandle, 0); // bayld
ref<uint16>(0x08) = Sql_GetUIntData(SqlHandle, 1); // kinetic_unit
ref<uint8>(0x0A) = Sql_GetUIntData(SqlHandle, 2); // imprimaturs
ref<uint8>(0x0B) = 0; // mystical_canteen
ref<uint32>(0x0C) = Sql_GetIntData(SqlHandle, 3); // obsidian_fragment
ref<uint16>(0x10) = Sql_GetUIntData(SqlHandle, 4); // lebondopt_wing
ref<uint16>(0x12) = Sql_GetUIntData(SqlHandle, 5); // pulchridopt_wing
ref<uint32>(0x14) = Sql_GetIntData(SqlHandle, 6); // mewya_plasm

ref<uint8>(0x18) = 0; // ghastly_stone
ref<uint8>(0x19) = 0; // ghastly_stone_1
ref<uint8>(0x1A) = 0; // ghastly_stone_2
ref<uint8>(0x1B) = 0; // verdigris_stone
ref<uint8>(0x1C) = 0; // verdigris_stone_1
ref<uint8>(0x1D) = 0; // verdigris_stone_2
ref<uint8>(0x1E) = 0; // wailing_stone
ref<uint8>(0x1F) = 0; // wailing_stone_1
ref<uint8>(0x20) = 0; // wailing_stone_2

ref<uint8>(0x21) = 0; // snowslit_stone
ref<uint8>(0x22) = 0; // snowslit_stone_1
ref<uint8>(0x23) = 0; // snowslit_stone_2
ref<uint8>(0x24) = 0; // snowtip_stone
ref<uint8>(0x25) = 0; // snowtip_stone_1
ref<uint8>(0x26) = 0; // snowtip_stone_2
ref<uint8>(0x27) = 0; // snowdim_stone
ref<uint8>(0x28) = 0; // snowdim_stone_1
ref<uint8>(0x29) = 0; // snowdim_stone_2
ref<uint8>(0x2A) = 0; // snoworb_stone
ref<uint8>(0x2B) = 0; // snoworb_stone_1
ref<uint8>(0x2C) = 0; // snoworb_stone_2
ref<uint8>(0x2D) = 0; // leafslit_stone
ref<uint8>(0x2E) = 0; // leafslit_stone_1
ref<uint8>(0x2F) = 0; // leafslit_stone_2
ref<uint8>(0x30) = 0; // leaftip_stone
ref<uint8>(0x31) = 0; // leaftip_stone_1
ref<uint8>(0x32) = 0; // leaftip_stone_2
ref<uint8>(0x33) = 0; // leafdim_stone
ref<uint8>(0x34) = 0; // leafdim_stone_1
ref<uint8>(0x35) = 0; // leafdim_stone_2
ref<uint8>(0x36) = 0; // leaforb_stone
ref<uint8>(0x37) = 0; // leaforb_stone_1
ref<uint8>(0x38) = 0; // leaforb_stone_2
ref<uint8>(0x39) = 0; // duskslit_stone
ref<uint8>(0x3A) = 0; // duskslit_stone_1
ref<uint8>(0x3B) = 0; // duskslit_stone_2
ref<uint8>(0x3C) = 0; // dusktip_stone
ref<uint8>(0x3D) = 0; // dusktip_stone_1
ref<uint8>(0x3E) = 0; // dusktip_stone_2
ref<uint8>(0x3F) = 0; // duskdim_stone
ref<uint8>(0x40) = 0; // duskdim_stone_1
ref<uint8>(0x41) = 0; // duskdim_stone_2
ref<uint8>(0x42) = 0; // duskorb_stone
ref<uint8>(0x43) = 0; // duskorb_stone_1
ref<uint8>(0x44) = 0; // duskorb_stone_2

ref<uint8>(0x45) = 0; // pellucid_stone
ref<uint8>(0x46) = 0; // fern_stone
ref<uint8>(0x47) = 0; // taupe_stone

ref<uint16>(0x4A) = 0; // escha_beads
ref<uint32>(0x4C) = 0; // escha_silt

ref<uint32>(0x50) = 0; // potpourri

ref<uint32>(0x54) = 0; // current_hallmarks
ref<uint32>(0x58) = 0; // total_hallmarks
ref<uint32>(0x5C) = 0; // gallantry

ref<uint32>(0x60) = 0; // crafter_points

ref<uint8>(0x64) = 0; // fire_crystal_set
ref<uint8>(0x65) = 0; // ice_crystal_set
ref<uint8>(0x66) = 0; // wind_crystal_set
ref<uint8>(0x67) = 0; // earth_crystal_set
ref<uint8>(0x68) = 0; // lightning_crystal_set
ref<uint8>(0x69) = 0; // water_crystal_set
ref<uint8>(0x6A) = 0; // light_crystal_set
ref<uint8>(0x6B) = 0; // dark_crystal_set
ref<uint8>(0x6C) = 0; // mc_s_sr01_set
ref<uint8>(0x6D) = 0; // mc_s_sr02_set
ref<uint8>(0x6E) = 0; // mc_s_sr03_set
ref<uint8>(0x6F) = 0; // liquefaction_spheres_set
ref<uint8>(0x70) = 0; // induration_spheres_set
ref<uint8>(0x71) = 0; // detonation_spheres_set
ref<uint8>(0x72) = 0; // scission_spheres_set
ref<uint8>(0x73) = 0; // impaction_spheres_set
ref<uint8>(0x74) = 0; // reverberation_spheres_set
ref<uint8>(0x75) = 0; // transfixion_spheres_set
ref<uint8>(0x76) = 0; // compression_spheres_set
ref<uint8>(0x77) = 0; // fusion_spheres_set
ref<uint8>(0x78) = 0; // distortion_spheres_set
ref<uint8>(0x79) = 0; // fragmentation_spheres_set
ref<uint8>(0x7A) = 0; // gravitation_spheres_set
ref<uint8>(0x7B) = 0; // light_spheres_set
ref<uint8>(0x7C) = 0; // darkness_spheres_set

ref<uint32>(0x80) = 0; // silver_aman_voucher
ref<uint8>(0x0B) = Sql_GetUIntData(SqlHandle, 3); // mystical_canteen
ref<uint32>(0x0C) = Sql_GetUIntData(SqlHandle, 4); // obsidian_fragment
ref<uint16>(0x10) = Sql_GetUIntData(SqlHandle, 5); // lebondopt_wing
ref<uint16>(0x12) = Sql_GetUIntData(SqlHandle, 6); // pulchridopt_wing
ref<uint32>(0x14) = Sql_GetUIntData(SqlHandle, 7); // mewya_plasm

ref<uint8>(0x18) = Sql_GetUIntData(SqlHandle, 8); // ghastly_stone
ref<uint8>(0x19) = Sql_GetUIntData(SqlHandle, 9); // ghastly_stone_1
ref<uint8>(0x1A) = Sql_GetUIntData(SqlHandle, 10); // ghastly_stone_2
ref<uint8>(0x1B) = Sql_GetUIntData(SqlHandle, 11); // verdigris_stone
ref<uint8>(0x1C) = Sql_GetUIntData(SqlHandle, 12); // verdigris_stone_1
ref<uint8>(0x1D) = Sql_GetUIntData(SqlHandle, 13); // verdigris_stone_2
ref<uint8>(0x1E) = Sql_GetUIntData(SqlHandle, 14); // wailing_stone
ref<uint8>(0x1F) = Sql_GetUIntData(SqlHandle, 15); // wailing_stone_1
ref<uint8>(0x20) = Sql_GetUIntData(SqlHandle, 16); // wailing_stone_2

ref<uint8>(0x21) = Sql_GetUIntData(SqlHandle, 17); // snowslit_stone
ref<uint8>(0x22) = Sql_GetUIntData(SqlHandle, 18); // snowslit_stone_1
ref<uint8>(0x23) = Sql_GetUIntData(SqlHandle, 19); // snowslit_stone_2
ref<uint8>(0x24) = Sql_GetUIntData(SqlHandle, 20); // snowtip_stone
ref<uint8>(0x25) = Sql_GetUIntData(SqlHandle, 21); // snowtip_stone_1
ref<uint8>(0x26) = Sql_GetUIntData(SqlHandle, 22); // snowtip_stone_2
ref<uint8>(0x27) = Sql_GetUIntData(SqlHandle, 23); // snowdim_stone
ref<uint8>(0x28) = Sql_GetUIntData(SqlHandle, 24); // snowdim_stone_1
ref<uint8>(0x29) = Sql_GetUIntData(SqlHandle, 25); // snowdim_stone_2
ref<uint8>(0x2A) = Sql_GetUIntData(SqlHandle, 26); // snoworb_stone
ref<uint8>(0x2B) = Sql_GetUIntData(SqlHandle, 27); // snoworb_stone_1
ref<uint8>(0x2C) = Sql_GetUIntData(SqlHandle, 28); // snoworb_stone_2
ref<uint8>(0x2D) = Sql_GetUIntData(SqlHandle, 29); // leafslit_stone
ref<uint8>(0x2E) = Sql_GetUIntData(SqlHandle, 30); // leafslit_stone_1
ref<uint8>(0x2F) = Sql_GetUIntData(SqlHandle, 31); // leafslit_stone_2
ref<uint8>(0x30) = Sql_GetUIntData(SqlHandle, 32); // leaftip_stone
ref<uint8>(0x31) = Sql_GetUIntData(SqlHandle, 33); // leaftip_stone_1
ref<uint8>(0x32) = Sql_GetUIntData(SqlHandle, 34); // leaftip_stone_2
ref<uint8>(0x33) = Sql_GetUIntData(SqlHandle, 35); // leafdim_stone
ref<uint8>(0x34) = Sql_GetUIntData(SqlHandle, 36); // leafdim_stone_1
ref<uint8>(0x35) = Sql_GetUIntData(SqlHandle, 37); // leafdim_stone_2
ref<uint8>(0x36) = Sql_GetUIntData(SqlHandle, 38); // leaforb_stone
ref<uint8>(0x37) = Sql_GetUIntData(SqlHandle, 39); // leaforb_stone_1
ref<uint8>(0x38) = Sql_GetUIntData(SqlHandle, 40); // leaforb_stone_2
ref<uint8>(0x39) = Sql_GetUIntData(SqlHandle, 41); // duskslit_stone
ref<uint8>(0x3A) = Sql_GetUIntData(SqlHandle, 42); // duskslit_stone_1
ref<uint8>(0x3B) = Sql_GetUIntData(SqlHandle, 43); // duskslit_stone_2
ref<uint8>(0x3C) = Sql_GetUIntData(SqlHandle, 44); // dusktip_stone
ref<uint8>(0x3D) = Sql_GetUIntData(SqlHandle, 45); // dusktip_stone_1
ref<uint8>(0x3E) = Sql_GetUIntData(SqlHandle, 46); // dusktip_stone_2
ref<uint8>(0x3F) = Sql_GetUIntData(SqlHandle, 47); // duskdim_stone
ref<uint8>(0x40) = Sql_GetUIntData(SqlHandle, 48); // duskdim_stone_1
ref<uint8>(0x41) = Sql_GetUIntData(SqlHandle, 49); // duskdim_stone_2
ref<uint8>(0x42) = Sql_GetUIntData(SqlHandle, 50); // duskorb_stone
ref<uint8>(0x43) = Sql_GetUIntData(SqlHandle, 51); // duskorb_stone_1
ref<uint8>(0x44) = Sql_GetUIntData(SqlHandle, 52); // duskorb_stone_2

ref<uint8>(0x45) = Sql_GetUIntData(SqlHandle, 53); // pellucid_stone
ref<uint8>(0x46) = Sql_GetUIntData(SqlHandle, 54); // fern_stone
ref<uint8>(0x47) = Sql_GetUIntData(SqlHandle, 55); // taupe_stone

ref<uint16>(0x4A) = Sql_GetUIntData(SqlHandle, 56); // escha_beads
ref<uint32>(0x4C) = Sql_GetUIntData(SqlHandle, 57); // escha_silt

ref<uint32>(0x50) = Sql_GetUIntData(SqlHandle, 58); // potpourri

ref<uint32>(0x54) = Sql_GetUIntData(SqlHandle, 59); // current_hallmarks
ref<uint32>(0x58) = Sql_GetUIntData(SqlHandle, 60); // total_hallmarks
ref<uint32>(0x5C) = Sql_GetUIntData(SqlHandle, 61); // gallantry

ref<uint32>(0x60) = Sql_GetUIntData(SqlHandle, 62); // crafter_points

ref<uint8>(0x64) = Sql_GetUIntData(SqlHandle, 63); // fire_crystal_set
ref<uint8>(0x65) = Sql_GetUIntData(SqlHandle, 64); // ice_crystal_set
ref<uint8>(0x66) = Sql_GetUIntData(SqlHandle, 65); // wind_crystal_set
ref<uint8>(0x67) = Sql_GetUIntData(SqlHandle, 66); // earth_crystal_set
ref<uint8>(0x68) = Sql_GetUIntData(SqlHandle, 67); // lightning_crystal_set
ref<uint8>(0x69) = Sql_GetUIntData(SqlHandle, 68); // water_crystal_set
ref<uint8>(0x6A) = Sql_GetUIntData(SqlHandle, 69); // light_crystal_set
ref<uint8>(0x6B) = Sql_GetUIntData(SqlHandle, 70); // dark_crystal_set
ref<uint8>(0x6C) = Sql_GetUIntData(SqlHandle, 71); // mc_s_sr01_set
ref<uint8>(0x6D) = Sql_GetUIntData(SqlHandle, 72); // mc_s_sr02_set
ref<uint8>(0x6E) = Sql_GetUIntData(SqlHandle, 73); // mc_s_sr03_set
ref<uint8>(0x6F) = Sql_GetUIntData(SqlHandle, 74); // liquefaction_spheres_set
ref<uint8>(0x70) = Sql_GetUIntData(SqlHandle, 75); // induration_spheres_set
ref<uint8>(0x71) = Sql_GetUIntData(SqlHandle, 76); // detonation_spheres_set
ref<uint8>(0x72) = Sql_GetUIntData(SqlHandle, 77); // scission_spheres_set
ref<uint8>(0x73) = Sql_GetUIntData(SqlHandle, 78); // impaction_spheres_set
ref<uint8>(0x74) = Sql_GetUIntData(SqlHandle, 79); // reverberation_spheres_set
ref<uint8>(0x75) = Sql_GetUIntData(SqlHandle, 80); // transfixion_spheres_set
ref<uint8>(0x76) = Sql_GetUIntData(SqlHandle, 81); // compression_spheres_set
ref<uint8>(0x77) = Sql_GetUIntData(SqlHandle, 82); // fusion_spheres_set
ref<uint8>(0x78) = Sql_GetUIntData(SqlHandle, 83); // distortion_spheres_set
ref<uint8>(0x79) = Sql_GetUIntData(SqlHandle, 84); // fragmentation_spheres_set
ref<uint8>(0x7A) = Sql_GetUIntData(SqlHandle, 85); // gravitation_spheres_set
ref<uint8>(0x7B) = Sql_GetUIntData(SqlHandle, 86); // light_spheres_set
ref<uint8>(0x7C) = Sql_GetUIntData(SqlHandle, 87); // darkness_spheres_set

ref<uint32>(0x80) = Sql_GetUIntData(SqlHandle, 88); // silver_aman_voucher
}
}
2 changes: 2 additions & 0 deletions tools/dbtool.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
from migrations import convert_mission_status
from migrations import convert_zilart_status
from migrations import add_job_master_column_chars
from migrations import currency2

# Append new migrations to this list and import above
migrations = [
Expand All @@ -58,6 +59,7 @@
convert_mission_status,
convert_zilart_status,
add_job_master_column_chars,
currency2,
]
# These are the default 'protected' files
player_data = [
Expand Down
Loading

0 comments on commit 79bd31a

Please sign in to comment.