cap
This commit is contained in:
@@ -27,13 +27,24 @@ function ADis_CollectPoliceSprechwuensche() {
|
||||
}).then(() => {
|
||||
console.log('ADis_CollectPoliceSprechwuensche: add');
|
||||
var MOIODOS = $('div#mission_list div.missionSideBarEntry:visible');
|
||||
MOIODOS.each(function (index) {
|
||||
return MOIODOS.each(function (index) {
|
||||
console.log('ADis_CollectPoliceSprechwuensche: add', $(this).text().match(/Gefangene sollen abtransportiert werden/g));
|
||||
if ($(this).text().match(/Gefangene sollen abtransportiert werden/g)) {
|
||||
var MissionID = $(this).attr("mission_id");
|
||||
ADis_AddPoliceSprechwunschToQueue(MissionID);
|
||||
}
|
||||
});
|
||||
}).then(()=>{
|
||||
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
||||
var VehicleStatus = $(this).find(".building_list_fms").text();
|
||||
var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id")));
|
||||
var VehicleID = $(this).attr("vehicle_id");
|
||||
var _meap = $('#radio_messages_important > li.radio_message_vehicle_' + VehicleID + ' > a:contains("Zum Einsatz")').attr('href');
|
||||
var MissionID = _meap.substr(_meap.lastIndexOf("/") + 1);
|
||||
if (MissionID && VehicleStatus == "5" && [32, 52].indexOf(VehicleType) !== -1) {
|
||||
ADis_AddPoliceSprechwunschToQueue(MissionID);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user