mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-25 18:47:35 +00:00
[Repositories] Regenerate repositories with int64 support, reserved word support (#1440)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* This repository was automatically generated and is NOT to be modified directly.
|
||||
* Any repository modifications are meant to be made to the repository extending the base.
|
||||
* Any modifications to base repositories are to be made by the generator only
|
||||
*
|
||||
*
|
||||
* @generator ./utils/scripts/generators/repository-generator.pl
|
||||
* @docs https://eqemu.gitbook.io/server/in-development/developer-area/repositories
|
||||
*/
|
||||
@@ -26,6 +26,7 @@ public:
|
||||
float safe_x;
|
||||
float safe_y;
|
||||
float safe_z;
|
||||
float safe_heading;
|
||||
float graveyard_id;
|
||||
int min_level;
|
||||
int min_status;
|
||||
@@ -76,7 +77,7 @@ public:
|
||||
int castoutdoor;
|
||||
int hotzone;
|
||||
int insttype;
|
||||
int shutdowndelay;
|
||||
int64 shutdowndelay;
|
||||
int peqzone;
|
||||
int expansion;
|
||||
int suspendbuffs;
|
||||
@@ -127,6 +128,7 @@ public:
|
||||
"safe_x",
|
||||
"safe_y",
|
||||
"safe_z",
|
||||
"safe_heading",
|
||||
"graveyard_id",
|
||||
"min_level",
|
||||
"min_status",
|
||||
@@ -253,6 +255,7 @@ public:
|
||||
entry.safe_x = 0;
|
||||
entry.safe_y = 0;
|
||||
entry.safe_z = 0;
|
||||
entry.safe_heading = 0;
|
||||
entry.graveyard_id = 0;
|
||||
entry.min_level = 0;
|
||||
entry.min_status = 0;
|
||||
@@ -379,89 +382,90 @@ public:
|
||||
entry.safe_x = static_cast<float>(atof(row[5]));
|
||||
entry.safe_y = static_cast<float>(atof(row[6]));
|
||||
entry.safe_z = static_cast<float>(atof(row[7]));
|
||||
entry.graveyard_id = static_cast<float>(atof(row[8]));
|
||||
entry.min_level = atoi(row[9]);
|
||||
entry.min_status = atoi(row[10]);
|
||||
entry.zoneidnumber = atoi(row[11]);
|
||||
entry.version = atoi(row[12]);
|
||||
entry.timezone = atoi(row[13]);
|
||||
entry.maxclients = atoi(row[14]);
|
||||
entry.ruleset = atoi(row[15]);
|
||||
entry.note = row[16] ? row[16] : "";
|
||||
entry.underworld = static_cast<float>(atof(row[17]));
|
||||
entry.minclip = static_cast<float>(atof(row[18]));
|
||||
entry.maxclip = static_cast<float>(atof(row[19]));
|
||||
entry.fog_minclip = static_cast<float>(atof(row[20]));
|
||||
entry.fog_maxclip = static_cast<float>(atof(row[21]));
|
||||
entry.fog_blue = atoi(row[22]);
|
||||
entry.fog_red = atoi(row[23]);
|
||||
entry.fog_green = atoi(row[24]);
|
||||
entry.sky = atoi(row[25]);
|
||||
entry.ztype = atoi(row[26]);
|
||||
entry.zone_exp_multiplier = static_cast<float>(atof(row[27]));
|
||||
entry.walkspeed = static_cast<float>(atof(row[28]));
|
||||
entry.time_type = atoi(row[29]);
|
||||
entry.fog_red1 = atoi(row[30]);
|
||||
entry.fog_green1 = atoi(row[31]);
|
||||
entry.fog_blue1 = atoi(row[32]);
|
||||
entry.fog_minclip1 = static_cast<float>(atof(row[33]));
|
||||
entry.fog_maxclip1 = static_cast<float>(atof(row[34]));
|
||||
entry.fog_red2 = atoi(row[35]);
|
||||
entry.fog_green2 = atoi(row[36]);
|
||||
entry.fog_blue2 = atoi(row[37]);
|
||||
entry.fog_minclip2 = static_cast<float>(atof(row[38]));
|
||||
entry.fog_maxclip2 = static_cast<float>(atof(row[39]));
|
||||
entry.fog_red3 = atoi(row[40]);
|
||||
entry.fog_green3 = atoi(row[41]);
|
||||
entry.fog_blue3 = atoi(row[42]);
|
||||
entry.fog_minclip3 = static_cast<float>(atof(row[43]));
|
||||
entry.fog_maxclip3 = static_cast<float>(atof(row[44]));
|
||||
entry.fog_red4 = atoi(row[45]);
|
||||
entry.fog_green4 = atoi(row[46]);
|
||||
entry.fog_blue4 = atoi(row[47]);
|
||||
entry.fog_minclip4 = static_cast<float>(atof(row[48]));
|
||||
entry.fog_maxclip4 = static_cast<float>(atof(row[49]));
|
||||
entry.fog_density = static_cast<float>(atof(row[50]));
|
||||
entry.flag_needed = row[51] ? row[51] : "";
|
||||
entry.canbind = atoi(row[52]);
|
||||
entry.cancombat = atoi(row[53]);
|
||||
entry.canlevitate = atoi(row[54]);
|
||||
entry.castoutdoor = atoi(row[55]);
|
||||
entry.hotzone = atoi(row[56]);
|
||||
entry.insttype = atoi(row[57]);
|
||||
entry.shutdowndelay = atoi(row[58]);
|
||||
entry.peqzone = atoi(row[59]);
|
||||
entry.expansion = atoi(row[60]);
|
||||
entry.suspendbuffs = atoi(row[61]);
|
||||
entry.rain_chance1 = atoi(row[62]);
|
||||
entry.rain_chance2 = atoi(row[63]);
|
||||
entry.rain_chance3 = atoi(row[64]);
|
||||
entry.rain_chance4 = atoi(row[65]);
|
||||
entry.rain_duration1 = atoi(row[66]);
|
||||
entry.rain_duration2 = atoi(row[67]);
|
||||
entry.rain_duration3 = atoi(row[68]);
|
||||
entry.rain_duration4 = atoi(row[69]);
|
||||
entry.snow_chance1 = atoi(row[70]);
|
||||
entry.snow_chance2 = atoi(row[71]);
|
||||
entry.snow_chance3 = atoi(row[72]);
|
||||
entry.snow_chance4 = atoi(row[73]);
|
||||
entry.snow_duration1 = atoi(row[74]);
|
||||
entry.snow_duration2 = atoi(row[75]);
|
||||
entry.snow_duration3 = atoi(row[76]);
|
||||
entry.snow_duration4 = atoi(row[77]);
|
||||
entry.gravity = static_cast<float>(atof(row[78]));
|
||||
entry.type = atoi(row[79]);
|
||||
entry.skylock = atoi(row[80]);
|
||||
entry.fast_regen_hp = atoi(row[81]);
|
||||
entry.fast_regen_mana = atoi(row[82]);
|
||||
entry.fast_regen_endurance = atoi(row[83]);
|
||||
entry.npc_max_aggro_dist = atoi(row[84]);
|
||||
entry.max_movement_update_range = atoi(row[85]);
|
||||
entry.min_expansion = atoi(row[86]);
|
||||
entry.max_expansion = atoi(row[87]);
|
||||
entry.content_flags = row[88] ? row[88] : "";
|
||||
entry.content_flags_disabled = row[89] ? row[89] : "";
|
||||
entry.underworld_teleport_index = atoi(row[90]);
|
||||
entry.safe_heading = static_cast<float>(atof(row[8]));
|
||||
entry.graveyard_id = static_cast<float>(atof(row[9]));
|
||||
entry.min_level = atoi(row[10]);
|
||||
entry.min_status = atoi(row[11]);
|
||||
entry.zoneidnumber = atoi(row[12]);
|
||||
entry.version = atoi(row[13]);
|
||||
entry.timezone = atoi(row[14]);
|
||||
entry.maxclients = atoi(row[15]);
|
||||
entry.ruleset = atoi(row[16]);
|
||||
entry.note = row[17] ? row[17] : "";
|
||||
entry.underworld = static_cast<float>(atof(row[18]));
|
||||
entry.minclip = static_cast<float>(atof(row[19]));
|
||||
entry.maxclip = static_cast<float>(atof(row[20]));
|
||||
entry.fog_minclip = static_cast<float>(atof(row[21]));
|
||||
entry.fog_maxclip = static_cast<float>(atof(row[22]));
|
||||
entry.fog_blue = atoi(row[23]);
|
||||
entry.fog_red = atoi(row[24]);
|
||||
entry.fog_green = atoi(row[25]);
|
||||
entry.sky = atoi(row[26]);
|
||||
entry.ztype = atoi(row[27]);
|
||||
entry.zone_exp_multiplier = static_cast<float>(atof(row[28]));
|
||||
entry.walkspeed = static_cast<float>(atof(row[29]));
|
||||
entry.time_type = atoi(row[30]);
|
||||
entry.fog_red1 = atoi(row[31]);
|
||||
entry.fog_green1 = atoi(row[32]);
|
||||
entry.fog_blue1 = atoi(row[33]);
|
||||
entry.fog_minclip1 = static_cast<float>(atof(row[34]));
|
||||
entry.fog_maxclip1 = static_cast<float>(atof(row[35]));
|
||||
entry.fog_red2 = atoi(row[36]);
|
||||
entry.fog_green2 = atoi(row[37]);
|
||||
entry.fog_blue2 = atoi(row[38]);
|
||||
entry.fog_minclip2 = static_cast<float>(atof(row[39]));
|
||||
entry.fog_maxclip2 = static_cast<float>(atof(row[40]));
|
||||
entry.fog_red3 = atoi(row[41]);
|
||||
entry.fog_green3 = atoi(row[42]);
|
||||
entry.fog_blue3 = atoi(row[43]);
|
||||
entry.fog_minclip3 = static_cast<float>(atof(row[44]));
|
||||
entry.fog_maxclip3 = static_cast<float>(atof(row[45]));
|
||||
entry.fog_red4 = atoi(row[46]);
|
||||
entry.fog_green4 = atoi(row[47]);
|
||||
entry.fog_blue4 = atoi(row[48]);
|
||||
entry.fog_minclip4 = static_cast<float>(atof(row[49]));
|
||||
entry.fog_maxclip4 = static_cast<float>(atof(row[50]));
|
||||
entry.fog_density = static_cast<float>(atof(row[51]));
|
||||
entry.flag_needed = row[52] ? row[52] : "";
|
||||
entry.canbind = atoi(row[53]);
|
||||
entry.cancombat = atoi(row[54]);
|
||||
entry.canlevitate = atoi(row[55]);
|
||||
entry.castoutdoor = atoi(row[56]);
|
||||
entry.hotzone = atoi(row[57]);
|
||||
entry.insttype = atoi(row[58]);
|
||||
entry.shutdowndelay = strtoll(row[59], NULL, 10);
|
||||
entry.peqzone = atoi(row[60]);
|
||||
entry.expansion = atoi(row[61]);
|
||||
entry.suspendbuffs = atoi(row[62]);
|
||||
entry.rain_chance1 = atoi(row[63]);
|
||||
entry.rain_chance2 = atoi(row[64]);
|
||||
entry.rain_chance3 = atoi(row[65]);
|
||||
entry.rain_chance4 = atoi(row[66]);
|
||||
entry.rain_duration1 = atoi(row[67]);
|
||||
entry.rain_duration2 = atoi(row[68]);
|
||||
entry.rain_duration3 = atoi(row[69]);
|
||||
entry.rain_duration4 = atoi(row[70]);
|
||||
entry.snow_chance1 = atoi(row[71]);
|
||||
entry.snow_chance2 = atoi(row[72]);
|
||||
entry.snow_chance3 = atoi(row[73]);
|
||||
entry.snow_chance4 = atoi(row[74]);
|
||||
entry.snow_duration1 = atoi(row[75]);
|
||||
entry.snow_duration2 = atoi(row[76]);
|
||||
entry.snow_duration3 = atoi(row[77]);
|
||||
entry.snow_duration4 = atoi(row[78]);
|
||||
entry.gravity = static_cast<float>(atof(row[79]));
|
||||
entry.type = atoi(row[80]);
|
||||
entry.skylock = atoi(row[81]);
|
||||
entry.fast_regen_hp = atoi(row[82]);
|
||||
entry.fast_regen_mana = atoi(row[83]);
|
||||
entry.fast_regen_endurance = atoi(row[84]);
|
||||
entry.npc_max_aggro_dist = atoi(row[85]);
|
||||
entry.max_movement_update_range = atoi(row[86]);
|
||||
entry.min_expansion = atoi(row[87]);
|
||||
entry.max_expansion = atoi(row[88]);
|
||||
entry.content_flags = row[89] ? row[89] : "";
|
||||
entry.content_flags_disabled = row[90] ? row[90] : "";
|
||||
entry.underworld_teleport_index = atoi(row[91]);
|
||||
|
||||
return entry;
|
||||
}
|
||||
@@ -502,89 +506,90 @@ public:
|
||||
update_values.push_back(columns[5] + " = " + std::to_string(zone_entry.safe_x));
|
||||
update_values.push_back(columns[6] + " = " + std::to_string(zone_entry.safe_y));
|
||||
update_values.push_back(columns[7] + " = " + std::to_string(zone_entry.safe_z));
|
||||
update_values.push_back(columns[8] + " = " + std::to_string(zone_entry.graveyard_id));
|
||||
update_values.push_back(columns[9] + " = " + std::to_string(zone_entry.min_level));
|
||||
update_values.push_back(columns[10] + " = " + std::to_string(zone_entry.min_status));
|
||||
update_values.push_back(columns[11] + " = " + std::to_string(zone_entry.zoneidnumber));
|
||||
update_values.push_back(columns[12] + " = " + std::to_string(zone_entry.version));
|
||||
update_values.push_back(columns[13] + " = " + std::to_string(zone_entry.timezone));
|
||||
update_values.push_back(columns[14] + " = " + std::to_string(zone_entry.maxclients));
|
||||
update_values.push_back(columns[15] + " = " + std::to_string(zone_entry.ruleset));
|
||||
update_values.push_back(columns[16] + " = '" + EscapeString(zone_entry.note) + "'");
|
||||
update_values.push_back(columns[17] + " = " + std::to_string(zone_entry.underworld));
|
||||
update_values.push_back(columns[18] + " = " + std::to_string(zone_entry.minclip));
|
||||
update_values.push_back(columns[19] + " = " + std::to_string(zone_entry.maxclip));
|
||||
update_values.push_back(columns[20] + " = " + std::to_string(zone_entry.fog_minclip));
|
||||
update_values.push_back(columns[21] + " = " + std::to_string(zone_entry.fog_maxclip));
|
||||
update_values.push_back(columns[22] + " = " + std::to_string(zone_entry.fog_blue));
|
||||
update_values.push_back(columns[23] + " = " + std::to_string(zone_entry.fog_red));
|
||||
update_values.push_back(columns[24] + " = " + std::to_string(zone_entry.fog_green));
|
||||
update_values.push_back(columns[25] + " = " + std::to_string(zone_entry.sky));
|
||||
update_values.push_back(columns[26] + " = " + std::to_string(zone_entry.ztype));
|
||||
update_values.push_back(columns[27] + " = " + std::to_string(zone_entry.zone_exp_multiplier));
|
||||
update_values.push_back(columns[28] + " = " + std::to_string(zone_entry.walkspeed));
|
||||
update_values.push_back(columns[29] + " = " + std::to_string(zone_entry.time_type));
|
||||
update_values.push_back(columns[30] + " = " + std::to_string(zone_entry.fog_red1));
|
||||
update_values.push_back(columns[31] + " = " + std::to_string(zone_entry.fog_green1));
|
||||
update_values.push_back(columns[32] + " = " + std::to_string(zone_entry.fog_blue1));
|
||||
update_values.push_back(columns[33] + " = " + std::to_string(zone_entry.fog_minclip1));
|
||||
update_values.push_back(columns[34] + " = " + std::to_string(zone_entry.fog_maxclip1));
|
||||
update_values.push_back(columns[35] + " = " + std::to_string(zone_entry.fog_red2));
|
||||
update_values.push_back(columns[36] + " = " + std::to_string(zone_entry.fog_green2));
|
||||
update_values.push_back(columns[37] + " = " + std::to_string(zone_entry.fog_blue2));
|
||||
update_values.push_back(columns[38] + " = " + std::to_string(zone_entry.fog_minclip2));
|
||||
update_values.push_back(columns[39] + " = " + std::to_string(zone_entry.fog_maxclip2));
|
||||
update_values.push_back(columns[40] + " = " + std::to_string(zone_entry.fog_red3));
|
||||
update_values.push_back(columns[41] + " = " + std::to_string(zone_entry.fog_green3));
|
||||
update_values.push_back(columns[42] + " = " + std::to_string(zone_entry.fog_blue3));
|
||||
update_values.push_back(columns[43] + " = " + std::to_string(zone_entry.fog_minclip3));
|
||||
update_values.push_back(columns[44] + " = " + std::to_string(zone_entry.fog_maxclip3));
|
||||
update_values.push_back(columns[45] + " = " + std::to_string(zone_entry.fog_red4));
|
||||
update_values.push_back(columns[46] + " = " + std::to_string(zone_entry.fog_green4));
|
||||
update_values.push_back(columns[47] + " = " + std::to_string(zone_entry.fog_blue4));
|
||||
update_values.push_back(columns[48] + " = " + std::to_string(zone_entry.fog_minclip4));
|
||||
update_values.push_back(columns[49] + " = " + std::to_string(zone_entry.fog_maxclip4));
|
||||
update_values.push_back(columns[50] + " = " + std::to_string(zone_entry.fog_density));
|
||||
update_values.push_back(columns[51] + " = '" + EscapeString(zone_entry.flag_needed) + "'");
|
||||
update_values.push_back(columns[52] + " = " + std::to_string(zone_entry.canbind));
|
||||
update_values.push_back(columns[53] + " = " + std::to_string(zone_entry.cancombat));
|
||||
update_values.push_back(columns[54] + " = " + std::to_string(zone_entry.canlevitate));
|
||||
update_values.push_back(columns[55] + " = " + std::to_string(zone_entry.castoutdoor));
|
||||
update_values.push_back(columns[56] + " = " + std::to_string(zone_entry.hotzone));
|
||||
update_values.push_back(columns[57] + " = " + std::to_string(zone_entry.insttype));
|
||||
update_values.push_back(columns[58] + " = " + std::to_string(zone_entry.shutdowndelay));
|
||||
update_values.push_back(columns[59] + " = " + std::to_string(zone_entry.peqzone));
|
||||
update_values.push_back(columns[60] + " = " + std::to_string(zone_entry.expansion));
|
||||
update_values.push_back(columns[61] + " = " + std::to_string(zone_entry.suspendbuffs));
|
||||
update_values.push_back(columns[62] + " = " + std::to_string(zone_entry.rain_chance1));
|
||||
update_values.push_back(columns[63] + " = " + std::to_string(zone_entry.rain_chance2));
|
||||
update_values.push_back(columns[64] + " = " + std::to_string(zone_entry.rain_chance3));
|
||||
update_values.push_back(columns[65] + " = " + std::to_string(zone_entry.rain_chance4));
|
||||
update_values.push_back(columns[66] + " = " + std::to_string(zone_entry.rain_duration1));
|
||||
update_values.push_back(columns[67] + " = " + std::to_string(zone_entry.rain_duration2));
|
||||
update_values.push_back(columns[68] + " = " + std::to_string(zone_entry.rain_duration3));
|
||||
update_values.push_back(columns[69] + " = " + std::to_string(zone_entry.rain_duration4));
|
||||
update_values.push_back(columns[70] + " = " + std::to_string(zone_entry.snow_chance1));
|
||||
update_values.push_back(columns[71] + " = " + std::to_string(zone_entry.snow_chance2));
|
||||
update_values.push_back(columns[72] + " = " + std::to_string(zone_entry.snow_chance3));
|
||||
update_values.push_back(columns[73] + " = " + std::to_string(zone_entry.snow_chance4));
|
||||
update_values.push_back(columns[74] + " = " + std::to_string(zone_entry.snow_duration1));
|
||||
update_values.push_back(columns[75] + " = " + std::to_string(zone_entry.snow_duration2));
|
||||
update_values.push_back(columns[76] + " = " + std::to_string(zone_entry.snow_duration3));
|
||||
update_values.push_back(columns[77] + " = " + std::to_string(zone_entry.snow_duration4));
|
||||
update_values.push_back(columns[78] + " = " + std::to_string(zone_entry.gravity));
|
||||
update_values.push_back(columns[79] + " = " + std::to_string(zone_entry.type));
|
||||
update_values.push_back(columns[80] + " = " + std::to_string(zone_entry.skylock));
|
||||
update_values.push_back(columns[81] + " = " + std::to_string(zone_entry.fast_regen_hp));
|
||||
update_values.push_back(columns[82] + " = " + std::to_string(zone_entry.fast_regen_mana));
|
||||
update_values.push_back(columns[83] + " = " + std::to_string(zone_entry.fast_regen_endurance));
|
||||
update_values.push_back(columns[84] + " = " + std::to_string(zone_entry.npc_max_aggro_dist));
|
||||
update_values.push_back(columns[85] + " = " + std::to_string(zone_entry.max_movement_update_range));
|
||||
update_values.push_back(columns[86] + " = " + std::to_string(zone_entry.min_expansion));
|
||||
update_values.push_back(columns[87] + " = " + std::to_string(zone_entry.max_expansion));
|
||||
update_values.push_back(columns[88] + " = '" + EscapeString(zone_entry.content_flags) + "'");
|
||||
update_values.push_back(columns[89] + " = '" + EscapeString(zone_entry.content_flags_disabled) + "'");
|
||||
update_values.push_back(columns[90] + " = " + std::to_string(zone_entry.underworld_teleport_index));
|
||||
update_values.push_back(columns[8] + " = " + std::to_string(zone_entry.safe_heading));
|
||||
update_values.push_back(columns[9] + " = " + std::to_string(zone_entry.graveyard_id));
|
||||
update_values.push_back(columns[10] + " = " + std::to_string(zone_entry.min_level));
|
||||
update_values.push_back(columns[11] + " = " + std::to_string(zone_entry.min_status));
|
||||
update_values.push_back(columns[12] + " = " + std::to_string(zone_entry.zoneidnumber));
|
||||
update_values.push_back(columns[13] + " = " + std::to_string(zone_entry.version));
|
||||
update_values.push_back(columns[14] + " = " + std::to_string(zone_entry.timezone));
|
||||
update_values.push_back(columns[15] + " = " + std::to_string(zone_entry.maxclients));
|
||||
update_values.push_back(columns[16] + " = " + std::to_string(zone_entry.ruleset));
|
||||
update_values.push_back(columns[17] + " = '" + EscapeString(zone_entry.note) + "'");
|
||||
update_values.push_back(columns[18] + " = " + std::to_string(zone_entry.underworld));
|
||||
update_values.push_back(columns[19] + " = " + std::to_string(zone_entry.minclip));
|
||||
update_values.push_back(columns[20] + " = " + std::to_string(zone_entry.maxclip));
|
||||
update_values.push_back(columns[21] + " = " + std::to_string(zone_entry.fog_minclip));
|
||||
update_values.push_back(columns[22] + " = " + std::to_string(zone_entry.fog_maxclip));
|
||||
update_values.push_back(columns[23] + " = " + std::to_string(zone_entry.fog_blue));
|
||||
update_values.push_back(columns[24] + " = " + std::to_string(zone_entry.fog_red));
|
||||
update_values.push_back(columns[25] + " = " + std::to_string(zone_entry.fog_green));
|
||||
update_values.push_back(columns[26] + " = " + std::to_string(zone_entry.sky));
|
||||
update_values.push_back(columns[27] + " = " + std::to_string(zone_entry.ztype));
|
||||
update_values.push_back(columns[28] + " = " + std::to_string(zone_entry.zone_exp_multiplier));
|
||||
update_values.push_back(columns[29] + " = " + std::to_string(zone_entry.walkspeed));
|
||||
update_values.push_back(columns[30] + " = " + std::to_string(zone_entry.time_type));
|
||||
update_values.push_back(columns[31] + " = " + std::to_string(zone_entry.fog_red1));
|
||||
update_values.push_back(columns[32] + " = " + std::to_string(zone_entry.fog_green1));
|
||||
update_values.push_back(columns[33] + " = " + std::to_string(zone_entry.fog_blue1));
|
||||
update_values.push_back(columns[34] + " = " + std::to_string(zone_entry.fog_minclip1));
|
||||
update_values.push_back(columns[35] + " = " + std::to_string(zone_entry.fog_maxclip1));
|
||||
update_values.push_back(columns[36] + " = " + std::to_string(zone_entry.fog_red2));
|
||||
update_values.push_back(columns[37] + " = " + std::to_string(zone_entry.fog_green2));
|
||||
update_values.push_back(columns[38] + " = " + std::to_string(zone_entry.fog_blue2));
|
||||
update_values.push_back(columns[39] + " = " + std::to_string(zone_entry.fog_minclip2));
|
||||
update_values.push_back(columns[40] + " = " + std::to_string(zone_entry.fog_maxclip2));
|
||||
update_values.push_back(columns[41] + " = " + std::to_string(zone_entry.fog_red3));
|
||||
update_values.push_back(columns[42] + " = " + std::to_string(zone_entry.fog_green3));
|
||||
update_values.push_back(columns[43] + " = " + std::to_string(zone_entry.fog_blue3));
|
||||
update_values.push_back(columns[44] + " = " + std::to_string(zone_entry.fog_minclip3));
|
||||
update_values.push_back(columns[45] + " = " + std::to_string(zone_entry.fog_maxclip3));
|
||||
update_values.push_back(columns[46] + " = " + std::to_string(zone_entry.fog_red4));
|
||||
update_values.push_back(columns[47] + " = " + std::to_string(zone_entry.fog_green4));
|
||||
update_values.push_back(columns[48] + " = " + std::to_string(zone_entry.fog_blue4));
|
||||
update_values.push_back(columns[49] + " = " + std::to_string(zone_entry.fog_minclip4));
|
||||
update_values.push_back(columns[50] + " = " + std::to_string(zone_entry.fog_maxclip4));
|
||||
update_values.push_back(columns[51] + " = " + std::to_string(zone_entry.fog_density));
|
||||
update_values.push_back(columns[52] + " = '" + EscapeString(zone_entry.flag_needed) + "'");
|
||||
update_values.push_back(columns[53] + " = " + std::to_string(zone_entry.canbind));
|
||||
update_values.push_back(columns[54] + " = " + std::to_string(zone_entry.cancombat));
|
||||
update_values.push_back(columns[55] + " = " + std::to_string(zone_entry.canlevitate));
|
||||
update_values.push_back(columns[56] + " = " + std::to_string(zone_entry.castoutdoor));
|
||||
update_values.push_back(columns[57] + " = " + std::to_string(zone_entry.hotzone));
|
||||
update_values.push_back(columns[58] + " = " + std::to_string(zone_entry.insttype));
|
||||
update_values.push_back(columns[59] + " = " + std::to_string(zone_entry.shutdowndelay));
|
||||
update_values.push_back(columns[60] + " = " + std::to_string(zone_entry.peqzone));
|
||||
update_values.push_back(columns[61] + " = " + std::to_string(zone_entry.expansion));
|
||||
update_values.push_back(columns[62] + " = " + std::to_string(zone_entry.suspendbuffs));
|
||||
update_values.push_back(columns[63] + " = " + std::to_string(zone_entry.rain_chance1));
|
||||
update_values.push_back(columns[64] + " = " + std::to_string(zone_entry.rain_chance2));
|
||||
update_values.push_back(columns[65] + " = " + std::to_string(zone_entry.rain_chance3));
|
||||
update_values.push_back(columns[66] + " = " + std::to_string(zone_entry.rain_chance4));
|
||||
update_values.push_back(columns[67] + " = " + std::to_string(zone_entry.rain_duration1));
|
||||
update_values.push_back(columns[68] + " = " + std::to_string(zone_entry.rain_duration2));
|
||||
update_values.push_back(columns[69] + " = " + std::to_string(zone_entry.rain_duration3));
|
||||
update_values.push_back(columns[70] + " = " + std::to_string(zone_entry.rain_duration4));
|
||||
update_values.push_back(columns[71] + " = " + std::to_string(zone_entry.snow_chance1));
|
||||
update_values.push_back(columns[72] + " = " + std::to_string(zone_entry.snow_chance2));
|
||||
update_values.push_back(columns[73] + " = " + std::to_string(zone_entry.snow_chance3));
|
||||
update_values.push_back(columns[74] + " = " + std::to_string(zone_entry.snow_chance4));
|
||||
update_values.push_back(columns[75] + " = " + std::to_string(zone_entry.snow_duration1));
|
||||
update_values.push_back(columns[76] + " = " + std::to_string(zone_entry.snow_duration2));
|
||||
update_values.push_back(columns[77] + " = " + std::to_string(zone_entry.snow_duration3));
|
||||
update_values.push_back(columns[78] + " = " + std::to_string(zone_entry.snow_duration4));
|
||||
update_values.push_back(columns[79] + " = " + std::to_string(zone_entry.gravity));
|
||||
update_values.push_back(columns[80] + " = " + std::to_string(zone_entry.type));
|
||||
update_values.push_back(columns[81] + " = " + std::to_string(zone_entry.skylock));
|
||||
update_values.push_back(columns[82] + " = " + std::to_string(zone_entry.fast_regen_hp));
|
||||
update_values.push_back(columns[83] + " = " + std::to_string(zone_entry.fast_regen_mana));
|
||||
update_values.push_back(columns[84] + " = " + std::to_string(zone_entry.fast_regen_endurance));
|
||||
update_values.push_back(columns[85] + " = " + std::to_string(zone_entry.npc_max_aggro_dist));
|
||||
update_values.push_back(columns[86] + " = " + std::to_string(zone_entry.max_movement_update_range));
|
||||
update_values.push_back(columns[87] + " = " + std::to_string(zone_entry.min_expansion));
|
||||
update_values.push_back(columns[88] + " = " + std::to_string(zone_entry.max_expansion));
|
||||
update_values.push_back(columns[89] + " = '" + EscapeString(zone_entry.content_flags) + "'");
|
||||
update_values.push_back(columns[90] + " = '" + EscapeString(zone_entry.content_flags_disabled) + "'");
|
||||
update_values.push_back(columns[91] + " = " + std::to_string(zone_entry.underworld_teleport_index));
|
||||
|
||||
auto results = db.QueryDatabase(
|
||||
fmt::format(
|
||||
@@ -614,6 +619,7 @@ public:
|
||||
insert_values.push_back(std::to_string(zone_entry.safe_x));
|
||||
insert_values.push_back(std::to_string(zone_entry.safe_y));
|
||||
insert_values.push_back(std::to_string(zone_entry.safe_z));
|
||||
insert_values.push_back(std::to_string(zone_entry.safe_heading));
|
||||
insert_values.push_back(std::to_string(zone_entry.graveyard_id));
|
||||
insert_values.push_back(std::to_string(zone_entry.min_level));
|
||||
insert_values.push_back(std::to_string(zone_entry.min_status));
|
||||
@@ -734,6 +740,7 @@ public:
|
||||
insert_values.push_back(std::to_string(zone_entry.safe_x));
|
||||
insert_values.push_back(std::to_string(zone_entry.safe_y));
|
||||
insert_values.push_back(std::to_string(zone_entry.safe_z));
|
||||
insert_values.push_back(std::to_string(zone_entry.safe_heading));
|
||||
insert_values.push_back(std::to_string(zone_entry.graveyard_id));
|
||||
insert_values.push_back(std::to_string(zone_entry.min_level));
|
||||
insert_values.push_back(std::to_string(zone_entry.min_status));
|
||||
@@ -858,89 +865,90 @@ public:
|
||||
entry.safe_x = static_cast<float>(atof(row[5]));
|
||||
entry.safe_y = static_cast<float>(atof(row[6]));
|
||||
entry.safe_z = static_cast<float>(atof(row[7]));
|
||||
entry.graveyard_id = static_cast<float>(atof(row[8]));
|
||||
entry.min_level = atoi(row[9]);
|
||||
entry.min_status = atoi(row[10]);
|
||||
entry.zoneidnumber = atoi(row[11]);
|
||||
entry.version = atoi(row[12]);
|
||||
entry.timezone = atoi(row[13]);
|
||||
entry.maxclients = atoi(row[14]);
|
||||
entry.ruleset = atoi(row[15]);
|
||||
entry.note = row[16] ? row[16] : "";
|
||||
entry.underworld = static_cast<float>(atof(row[17]));
|
||||
entry.minclip = static_cast<float>(atof(row[18]));
|
||||
entry.maxclip = static_cast<float>(atof(row[19]));
|
||||
entry.fog_minclip = static_cast<float>(atof(row[20]));
|
||||
entry.fog_maxclip = static_cast<float>(atof(row[21]));
|
||||
entry.fog_blue = atoi(row[22]);
|
||||
entry.fog_red = atoi(row[23]);
|
||||
entry.fog_green = atoi(row[24]);
|
||||
entry.sky = atoi(row[25]);
|
||||
entry.ztype = atoi(row[26]);
|
||||
entry.zone_exp_multiplier = static_cast<float>(atof(row[27]));
|
||||
entry.walkspeed = static_cast<float>(atof(row[28]));
|
||||
entry.time_type = atoi(row[29]);
|
||||
entry.fog_red1 = atoi(row[30]);
|
||||
entry.fog_green1 = atoi(row[31]);
|
||||
entry.fog_blue1 = atoi(row[32]);
|
||||
entry.fog_minclip1 = static_cast<float>(atof(row[33]));
|
||||
entry.fog_maxclip1 = static_cast<float>(atof(row[34]));
|
||||
entry.fog_red2 = atoi(row[35]);
|
||||
entry.fog_green2 = atoi(row[36]);
|
||||
entry.fog_blue2 = atoi(row[37]);
|
||||
entry.fog_minclip2 = static_cast<float>(atof(row[38]));
|
||||
entry.fog_maxclip2 = static_cast<float>(atof(row[39]));
|
||||
entry.fog_red3 = atoi(row[40]);
|
||||
entry.fog_green3 = atoi(row[41]);
|
||||
entry.fog_blue3 = atoi(row[42]);
|
||||
entry.fog_minclip3 = static_cast<float>(atof(row[43]));
|
||||
entry.fog_maxclip3 = static_cast<float>(atof(row[44]));
|
||||
entry.fog_red4 = atoi(row[45]);
|
||||
entry.fog_green4 = atoi(row[46]);
|
||||
entry.fog_blue4 = atoi(row[47]);
|
||||
entry.fog_minclip4 = static_cast<float>(atof(row[48]));
|
||||
entry.fog_maxclip4 = static_cast<float>(atof(row[49]));
|
||||
entry.fog_density = static_cast<float>(atof(row[50]));
|
||||
entry.flag_needed = row[51] ? row[51] : "";
|
||||
entry.canbind = atoi(row[52]);
|
||||
entry.cancombat = atoi(row[53]);
|
||||
entry.canlevitate = atoi(row[54]);
|
||||
entry.castoutdoor = atoi(row[55]);
|
||||
entry.hotzone = atoi(row[56]);
|
||||
entry.insttype = atoi(row[57]);
|
||||
entry.shutdowndelay = atoi(row[58]);
|
||||
entry.peqzone = atoi(row[59]);
|
||||
entry.expansion = atoi(row[60]);
|
||||
entry.suspendbuffs = atoi(row[61]);
|
||||
entry.rain_chance1 = atoi(row[62]);
|
||||
entry.rain_chance2 = atoi(row[63]);
|
||||
entry.rain_chance3 = atoi(row[64]);
|
||||
entry.rain_chance4 = atoi(row[65]);
|
||||
entry.rain_duration1 = atoi(row[66]);
|
||||
entry.rain_duration2 = atoi(row[67]);
|
||||
entry.rain_duration3 = atoi(row[68]);
|
||||
entry.rain_duration4 = atoi(row[69]);
|
||||
entry.snow_chance1 = atoi(row[70]);
|
||||
entry.snow_chance2 = atoi(row[71]);
|
||||
entry.snow_chance3 = atoi(row[72]);
|
||||
entry.snow_chance4 = atoi(row[73]);
|
||||
entry.snow_duration1 = atoi(row[74]);
|
||||
entry.snow_duration2 = atoi(row[75]);
|
||||
entry.snow_duration3 = atoi(row[76]);
|
||||
entry.snow_duration4 = atoi(row[77]);
|
||||
entry.gravity = static_cast<float>(atof(row[78]));
|
||||
entry.type = atoi(row[79]);
|
||||
entry.skylock = atoi(row[80]);
|
||||
entry.fast_regen_hp = atoi(row[81]);
|
||||
entry.fast_regen_mana = atoi(row[82]);
|
||||
entry.fast_regen_endurance = atoi(row[83]);
|
||||
entry.npc_max_aggro_dist = atoi(row[84]);
|
||||
entry.max_movement_update_range = atoi(row[85]);
|
||||
entry.min_expansion = atoi(row[86]);
|
||||
entry.max_expansion = atoi(row[87]);
|
||||
entry.content_flags = row[88] ? row[88] : "";
|
||||
entry.content_flags_disabled = row[89] ? row[89] : "";
|
||||
entry.underworld_teleport_index = atoi(row[90]);
|
||||
entry.safe_heading = static_cast<float>(atof(row[8]));
|
||||
entry.graveyard_id = static_cast<float>(atof(row[9]));
|
||||
entry.min_level = atoi(row[10]);
|
||||
entry.min_status = atoi(row[11]);
|
||||
entry.zoneidnumber = atoi(row[12]);
|
||||
entry.version = atoi(row[13]);
|
||||
entry.timezone = atoi(row[14]);
|
||||
entry.maxclients = atoi(row[15]);
|
||||
entry.ruleset = atoi(row[16]);
|
||||
entry.note = row[17] ? row[17] : "";
|
||||
entry.underworld = static_cast<float>(atof(row[18]));
|
||||
entry.minclip = static_cast<float>(atof(row[19]));
|
||||
entry.maxclip = static_cast<float>(atof(row[20]));
|
||||
entry.fog_minclip = static_cast<float>(atof(row[21]));
|
||||
entry.fog_maxclip = static_cast<float>(atof(row[22]));
|
||||
entry.fog_blue = atoi(row[23]);
|
||||
entry.fog_red = atoi(row[24]);
|
||||
entry.fog_green = atoi(row[25]);
|
||||
entry.sky = atoi(row[26]);
|
||||
entry.ztype = atoi(row[27]);
|
||||
entry.zone_exp_multiplier = static_cast<float>(atof(row[28]));
|
||||
entry.walkspeed = static_cast<float>(atof(row[29]));
|
||||
entry.time_type = atoi(row[30]);
|
||||
entry.fog_red1 = atoi(row[31]);
|
||||
entry.fog_green1 = atoi(row[32]);
|
||||
entry.fog_blue1 = atoi(row[33]);
|
||||
entry.fog_minclip1 = static_cast<float>(atof(row[34]));
|
||||
entry.fog_maxclip1 = static_cast<float>(atof(row[35]));
|
||||
entry.fog_red2 = atoi(row[36]);
|
||||
entry.fog_green2 = atoi(row[37]);
|
||||
entry.fog_blue2 = atoi(row[38]);
|
||||
entry.fog_minclip2 = static_cast<float>(atof(row[39]));
|
||||
entry.fog_maxclip2 = static_cast<float>(atof(row[40]));
|
||||
entry.fog_red3 = atoi(row[41]);
|
||||
entry.fog_green3 = atoi(row[42]);
|
||||
entry.fog_blue3 = atoi(row[43]);
|
||||
entry.fog_minclip3 = static_cast<float>(atof(row[44]));
|
||||
entry.fog_maxclip3 = static_cast<float>(atof(row[45]));
|
||||
entry.fog_red4 = atoi(row[46]);
|
||||
entry.fog_green4 = atoi(row[47]);
|
||||
entry.fog_blue4 = atoi(row[48]);
|
||||
entry.fog_minclip4 = static_cast<float>(atof(row[49]));
|
||||
entry.fog_maxclip4 = static_cast<float>(atof(row[50]));
|
||||
entry.fog_density = static_cast<float>(atof(row[51]));
|
||||
entry.flag_needed = row[52] ? row[52] : "";
|
||||
entry.canbind = atoi(row[53]);
|
||||
entry.cancombat = atoi(row[54]);
|
||||
entry.canlevitate = atoi(row[55]);
|
||||
entry.castoutdoor = atoi(row[56]);
|
||||
entry.hotzone = atoi(row[57]);
|
||||
entry.insttype = atoi(row[58]);
|
||||
entry.shutdowndelay = strtoll(row[59], NULL, 10);
|
||||
entry.peqzone = atoi(row[60]);
|
||||
entry.expansion = atoi(row[61]);
|
||||
entry.suspendbuffs = atoi(row[62]);
|
||||
entry.rain_chance1 = atoi(row[63]);
|
||||
entry.rain_chance2 = atoi(row[64]);
|
||||
entry.rain_chance3 = atoi(row[65]);
|
||||
entry.rain_chance4 = atoi(row[66]);
|
||||
entry.rain_duration1 = atoi(row[67]);
|
||||
entry.rain_duration2 = atoi(row[68]);
|
||||
entry.rain_duration3 = atoi(row[69]);
|
||||
entry.rain_duration4 = atoi(row[70]);
|
||||
entry.snow_chance1 = atoi(row[71]);
|
||||
entry.snow_chance2 = atoi(row[72]);
|
||||
entry.snow_chance3 = atoi(row[73]);
|
||||
entry.snow_chance4 = atoi(row[74]);
|
||||
entry.snow_duration1 = atoi(row[75]);
|
||||
entry.snow_duration2 = atoi(row[76]);
|
||||
entry.snow_duration3 = atoi(row[77]);
|
||||
entry.snow_duration4 = atoi(row[78]);
|
||||
entry.gravity = static_cast<float>(atof(row[79]));
|
||||
entry.type = atoi(row[80]);
|
||||
entry.skylock = atoi(row[81]);
|
||||
entry.fast_regen_hp = atoi(row[82]);
|
||||
entry.fast_regen_mana = atoi(row[83]);
|
||||
entry.fast_regen_endurance = atoi(row[84]);
|
||||
entry.npc_max_aggro_dist = atoi(row[85]);
|
||||
entry.max_movement_update_range = atoi(row[86]);
|
||||
entry.min_expansion = atoi(row[87]);
|
||||
entry.max_expansion = atoi(row[88]);
|
||||
entry.content_flags = row[89] ? row[89] : "";
|
||||
entry.content_flags_disabled = row[90] ? row[90] : "";
|
||||
entry.underworld_teleport_index = atoi(row[91]);
|
||||
|
||||
all_entries.push_back(entry);
|
||||
}
|
||||
@@ -973,89 +981,90 @@ public:
|
||||
entry.safe_x = static_cast<float>(atof(row[5]));
|
||||
entry.safe_y = static_cast<float>(atof(row[6]));
|
||||
entry.safe_z = static_cast<float>(atof(row[7]));
|
||||
entry.graveyard_id = static_cast<float>(atof(row[8]));
|
||||
entry.min_level = atoi(row[9]);
|
||||
entry.min_status = atoi(row[10]);
|
||||
entry.zoneidnumber = atoi(row[11]);
|
||||
entry.version = atoi(row[12]);
|
||||
entry.timezone = atoi(row[13]);
|
||||
entry.maxclients = atoi(row[14]);
|
||||
entry.ruleset = atoi(row[15]);
|
||||
entry.note = row[16] ? row[16] : "";
|
||||
entry.underworld = static_cast<float>(atof(row[17]));
|
||||
entry.minclip = static_cast<float>(atof(row[18]));
|
||||
entry.maxclip = static_cast<float>(atof(row[19]));
|
||||
entry.fog_minclip = static_cast<float>(atof(row[20]));
|
||||
entry.fog_maxclip = static_cast<float>(atof(row[21]));
|
||||
entry.fog_blue = atoi(row[22]);
|
||||
entry.fog_red = atoi(row[23]);
|
||||
entry.fog_green = atoi(row[24]);
|
||||
entry.sky = atoi(row[25]);
|
||||
entry.ztype = atoi(row[26]);
|
||||
entry.zone_exp_multiplier = static_cast<float>(atof(row[27]));
|
||||
entry.walkspeed = static_cast<float>(atof(row[28]));
|
||||
entry.time_type = atoi(row[29]);
|
||||
entry.fog_red1 = atoi(row[30]);
|
||||
entry.fog_green1 = atoi(row[31]);
|
||||
entry.fog_blue1 = atoi(row[32]);
|
||||
entry.fog_minclip1 = static_cast<float>(atof(row[33]));
|
||||
entry.fog_maxclip1 = static_cast<float>(atof(row[34]));
|
||||
entry.fog_red2 = atoi(row[35]);
|
||||
entry.fog_green2 = atoi(row[36]);
|
||||
entry.fog_blue2 = atoi(row[37]);
|
||||
entry.fog_minclip2 = static_cast<float>(atof(row[38]));
|
||||
entry.fog_maxclip2 = static_cast<float>(atof(row[39]));
|
||||
entry.fog_red3 = atoi(row[40]);
|
||||
entry.fog_green3 = atoi(row[41]);
|
||||
entry.fog_blue3 = atoi(row[42]);
|
||||
entry.fog_minclip3 = static_cast<float>(atof(row[43]));
|
||||
entry.fog_maxclip3 = static_cast<float>(atof(row[44]));
|
||||
entry.fog_red4 = atoi(row[45]);
|
||||
entry.fog_green4 = atoi(row[46]);
|
||||
entry.fog_blue4 = atoi(row[47]);
|
||||
entry.fog_minclip4 = static_cast<float>(atof(row[48]));
|
||||
entry.fog_maxclip4 = static_cast<float>(atof(row[49]));
|
||||
entry.fog_density = static_cast<float>(atof(row[50]));
|
||||
entry.flag_needed = row[51] ? row[51] : "";
|
||||
entry.canbind = atoi(row[52]);
|
||||
entry.cancombat = atoi(row[53]);
|
||||
entry.canlevitate = atoi(row[54]);
|
||||
entry.castoutdoor = atoi(row[55]);
|
||||
entry.hotzone = atoi(row[56]);
|
||||
entry.insttype = atoi(row[57]);
|
||||
entry.shutdowndelay = atoi(row[58]);
|
||||
entry.peqzone = atoi(row[59]);
|
||||
entry.expansion = atoi(row[60]);
|
||||
entry.suspendbuffs = atoi(row[61]);
|
||||
entry.rain_chance1 = atoi(row[62]);
|
||||
entry.rain_chance2 = atoi(row[63]);
|
||||
entry.rain_chance3 = atoi(row[64]);
|
||||
entry.rain_chance4 = atoi(row[65]);
|
||||
entry.rain_duration1 = atoi(row[66]);
|
||||
entry.rain_duration2 = atoi(row[67]);
|
||||
entry.rain_duration3 = atoi(row[68]);
|
||||
entry.rain_duration4 = atoi(row[69]);
|
||||
entry.snow_chance1 = atoi(row[70]);
|
||||
entry.snow_chance2 = atoi(row[71]);
|
||||
entry.snow_chance3 = atoi(row[72]);
|
||||
entry.snow_chance4 = atoi(row[73]);
|
||||
entry.snow_duration1 = atoi(row[74]);
|
||||
entry.snow_duration2 = atoi(row[75]);
|
||||
entry.snow_duration3 = atoi(row[76]);
|
||||
entry.snow_duration4 = atoi(row[77]);
|
||||
entry.gravity = static_cast<float>(atof(row[78]));
|
||||
entry.type = atoi(row[79]);
|
||||
entry.skylock = atoi(row[80]);
|
||||
entry.fast_regen_hp = atoi(row[81]);
|
||||
entry.fast_regen_mana = atoi(row[82]);
|
||||
entry.fast_regen_endurance = atoi(row[83]);
|
||||
entry.npc_max_aggro_dist = atoi(row[84]);
|
||||
entry.max_movement_update_range = atoi(row[85]);
|
||||
entry.min_expansion = atoi(row[86]);
|
||||
entry.max_expansion = atoi(row[87]);
|
||||
entry.content_flags = row[88] ? row[88] : "";
|
||||
entry.content_flags_disabled = row[89] ? row[89] : "";
|
||||
entry.underworld_teleport_index = atoi(row[90]);
|
||||
entry.safe_heading = static_cast<float>(atof(row[8]));
|
||||
entry.graveyard_id = static_cast<float>(atof(row[9]));
|
||||
entry.min_level = atoi(row[10]);
|
||||
entry.min_status = atoi(row[11]);
|
||||
entry.zoneidnumber = atoi(row[12]);
|
||||
entry.version = atoi(row[13]);
|
||||
entry.timezone = atoi(row[14]);
|
||||
entry.maxclients = atoi(row[15]);
|
||||
entry.ruleset = atoi(row[16]);
|
||||
entry.note = row[17] ? row[17] : "";
|
||||
entry.underworld = static_cast<float>(atof(row[18]));
|
||||
entry.minclip = static_cast<float>(atof(row[19]));
|
||||
entry.maxclip = static_cast<float>(atof(row[20]));
|
||||
entry.fog_minclip = static_cast<float>(atof(row[21]));
|
||||
entry.fog_maxclip = static_cast<float>(atof(row[22]));
|
||||
entry.fog_blue = atoi(row[23]);
|
||||
entry.fog_red = atoi(row[24]);
|
||||
entry.fog_green = atoi(row[25]);
|
||||
entry.sky = atoi(row[26]);
|
||||
entry.ztype = atoi(row[27]);
|
||||
entry.zone_exp_multiplier = static_cast<float>(atof(row[28]));
|
||||
entry.walkspeed = static_cast<float>(atof(row[29]));
|
||||
entry.time_type = atoi(row[30]);
|
||||
entry.fog_red1 = atoi(row[31]);
|
||||
entry.fog_green1 = atoi(row[32]);
|
||||
entry.fog_blue1 = atoi(row[33]);
|
||||
entry.fog_minclip1 = static_cast<float>(atof(row[34]));
|
||||
entry.fog_maxclip1 = static_cast<float>(atof(row[35]));
|
||||
entry.fog_red2 = atoi(row[36]);
|
||||
entry.fog_green2 = atoi(row[37]);
|
||||
entry.fog_blue2 = atoi(row[38]);
|
||||
entry.fog_minclip2 = static_cast<float>(atof(row[39]));
|
||||
entry.fog_maxclip2 = static_cast<float>(atof(row[40]));
|
||||
entry.fog_red3 = atoi(row[41]);
|
||||
entry.fog_green3 = atoi(row[42]);
|
||||
entry.fog_blue3 = atoi(row[43]);
|
||||
entry.fog_minclip3 = static_cast<float>(atof(row[44]));
|
||||
entry.fog_maxclip3 = static_cast<float>(atof(row[45]));
|
||||
entry.fog_red4 = atoi(row[46]);
|
||||
entry.fog_green4 = atoi(row[47]);
|
||||
entry.fog_blue4 = atoi(row[48]);
|
||||
entry.fog_minclip4 = static_cast<float>(atof(row[49]));
|
||||
entry.fog_maxclip4 = static_cast<float>(atof(row[50]));
|
||||
entry.fog_density = static_cast<float>(atof(row[51]));
|
||||
entry.flag_needed = row[52] ? row[52] : "";
|
||||
entry.canbind = atoi(row[53]);
|
||||
entry.cancombat = atoi(row[54]);
|
||||
entry.canlevitate = atoi(row[55]);
|
||||
entry.castoutdoor = atoi(row[56]);
|
||||
entry.hotzone = atoi(row[57]);
|
||||
entry.insttype = atoi(row[58]);
|
||||
entry.shutdowndelay = strtoll(row[59], NULL, 10);
|
||||
entry.peqzone = atoi(row[60]);
|
||||
entry.expansion = atoi(row[61]);
|
||||
entry.suspendbuffs = atoi(row[62]);
|
||||
entry.rain_chance1 = atoi(row[63]);
|
||||
entry.rain_chance2 = atoi(row[64]);
|
||||
entry.rain_chance3 = atoi(row[65]);
|
||||
entry.rain_chance4 = atoi(row[66]);
|
||||
entry.rain_duration1 = atoi(row[67]);
|
||||
entry.rain_duration2 = atoi(row[68]);
|
||||
entry.rain_duration3 = atoi(row[69]);
|
||||
entry.rain_duration4 = atoi(row[70]);
|
||||
entry.snow_chance1 = atoi(row[71]);
|
||||
entry.snow_chance2 = atoi(row[72]);
|
||||
entry.snow_chance3 = atoi(row[73]);
|
||||
entry.snow_chance4 = atoi(row[74]);
|
||||
entry.snow_duration1 = atoi(row[75]);
|
||||
entry.snow_duration2 = atoi(row[76]);
|
||||
entry.snow_duration3 = atoi(row[77]);
|
||||
entry.snow_duration4 = atoi(row[78]);
|
||||
entry.gravity = static_cast<float>(atof(row[79]));
|
||||
entry.type = atoi(row[80]);
|
||||
entry.skylock = atoi(row[81]);
|
||||
entry.fast_regen_hp = atoi(row[82]);
|
||||
entry.fast_regen_mana = atoi(row[83]);
|
||||
entry.fast_regen_endurance = atoi(row[84]);
|
||||
entry.npc_max_aggro_dist = atoi(row[85]);
|
||||
entry.max_movement_update_range = atoi(row[86]);
|
||||
entry.min_expansion = atoi(row[87]);
|
||||
entry.max_expansion = atoi(row[88]);
|
||||
entry.content_flags = row[89] ? row[89] : "";
|
||||
entry.content_flags_disabled = row[90] ? row[90] : "";
|
||||
entry.underworld_teleport_index = atoi(row[91]);
|
||||
|
||||
all_entries.push_back(entry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user