mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 02:31:03 +00:00
add RaidMember.IsBot
This commit is contained in:
@@ -27,6 +27,7 @@ public:
|
||||
int isgroupleader;
|
||||
int israidleader;
|
||||
int islooter;
|
||||
int isbot;
|
||||
};
|
||||
|
||||
static std::string PrimaryKey()
|
||||
@@ -46,6 +47,7 @@ public:
|
||||
"isgroupleader",
|
||||
"israidleader",
|
||||
"islooter",
|
||||
"isbot",
|
||||
};
|
||||
}
|
||||
|
||||
@@ -90,6 +92,7 @@ public:
|
||||
entry.isgroupleader = 0;
|
||||
entry.israidleader = 0;
|
||||
entry.islooter = 0;
|
||||
entry.isbot = 0;
|
||||
|
||||
return entry;
|
||||
}
|
||||
@@ -133,7 +136,8 @@ public:
|
||||
entry.name = row[5] ? row[5] : "";
|
||||
entry.isgroupleader = atoi(row[6]);
|
||||
entry.israidleader = atoi(row[7]);
|
||||
entry.islooter = atoi(row[8]);
|
||||
entry.islooter = atoi(row[8]);
|
||||
entry.isbot = atoi(row[9]);
|
||||
|
||||
return entry;
|
||||
}
|
||||
@@ -176,6 +180,7 @@ public:
|
||||
update_values.push_back(columns[6] + " = " + std::to_string(raid_members_entry.isgroupleader));
|
||||
update_values.push_back(columns[7] + " = " + std::to_string(raid_members_entry.israidleader));
|
||||
update_values.push_back(columns[8] + " = " + std::to_string(raid_members_entry.islooter));
|
||||
update_values.push_back(columns[9] + " = " + std::to_string(raid_members_entry.isbot)); //Mitch
|
||||
|
||||
auto results = db.QueryDatabase(
|
||||
fmt::format(
|
||||
@@ -206,6 +211,7 @@ public:
|
||||
insert_values.push_back(std::to_string(raid_members_entry.isgroupleader));
|
||||
insert_values.push_back(std::to_string(raid_members_entry.israidleader));
|
||||
insert_values.push_back(std::to_string(raid_members_entry.islooter));
|
||||
insert_values.push_back(std::to_string(raid_members_entry.isbot));
|
||||
|
||||
auto results = db.QueryDatabase(
|
||||
fmt::format(
|
||||
@@ -244,6 +250,7 @@ public:
|
||||
insert_values.push_back(std::to_string(raid_members_entry.isgroupleader));
|
||||
insert_values.push_back(std::to_string(raid_members_entry.israidleader));
|
||||
insert_values.push_back(std::to_string(raid_members_entry.islooter));
|
||||
insert_values.push_back(std::to_string(raid_members_entry.isbot));
|
||||
|
||||
insert_chunks.push_back("(" + implode(",", insert_values) + ")");
|
||||
}
|
||||
@@ -286,6 +293,7 @@ public:
|
||||
entry.isgroupleader = atoi(row[6]);
|
||||
entry.israidleader = atoi(row[7]);
|
||||
entry.islooter = atoi(row[8]);
|
||||
entry.isbot = atoi(row[9]);
|
||||
|
||||
all_entries.push_back(entry);
|
||||
}
|
||||
@@ -319,6 +327,7 @@ public:
|
||||
entry.isgroupleader = atoi(row[6]);
|
||||
entry.israidleader = atoi(row[7]);
|
||||
entry.islooter = atoi(row[8]);
|
||||
entry.isbot = atoi(row[9]);
|
||||
|
||||
all_entries.push_back(entry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user