Sprechwunsch Police

This commit is contained in:
2018-11-24 15:26:13 +01:00
parent 644b3b09af
commit df57183f30
3 changed files with 7 additions and 57 deletions

View File

@@ -1,6 +1,6 @@
$(document).ready(function () {
setInterval(ADis_CollectPoliceSprechwuensche, 7500);
setInterval(ADis_OpenNextPoliceSprechwunsch, 7500);
setInterval(ADis_CollectPoliceSprechwuensche, 5000);
setInterval(ADis_OpenNextPoliceSprechwunsch, 5000);
ADis_CollectPoliceSprechwuensche();
});
@@ -72,29 +72,4 @@ function ADis_UpdatePoliceSprechwunschToDone(WunschID) {
missionID: WunschID,
done: 'true'
}).catch((err) => {})
}
/**
* #mission_missing_905214286
* //*[@id="mission_missing_905214286"]
*
* const regex = /^Gefangene sollen abtransportiert werden\.$/gmu;
const str = `Alarm Massenschlägerei, Uferweg, 27749 Düsternort Delmenhorst
Gefangene sollen abtransportiert werden.
Sophie V.
Anna T.
Franziska M.`;
let m;
while ((m = regex.exec(str)) !== null) {
// This is necessary to avoid infinite loops with zero-width matches
if (m.index === regex.lastIndex) {
regex.lastIndex++;
}
// The result can be accessed through the `m`-variable.
m.forEach((match, groupIndex) => {
console.log(`Found match, group ${groupIndex}: ${match}`);
});
}
*/
}