|
@@ 345-351 (lines=7) @@
|
| 342 |
|
case 36: // Insurance |
| 343 |
|
$msg = 'skip'; |
| 344 |
|
break; |
| 345 |
|
case 41: // System lost |
| 346 |
|
preg_match('/(?<=solarsystemID: )\S+/i', $notificationString, $solarSystemID); |
| 347 |
|
$systemName = getSystemName($solarSystemID[0]); |
| 348 |
|
$allianceID = trim(explode(': ', $notificationArray[0])[1]); |
| 349 |
|
$allianceName = allianceName($allianceID); |
| 350 |
|
$msg = "{$allianceName} has lost control of **{$systemName}**"; |
| 351 |
|
break; |
| 352 |
|
case 43: // System captured |
| 353 |
|
preg_match('/(?<=solarsystemID: )\S+/i', $notificationString, $solarSystemID); |
| 354 |
|
$systemName = getSystemName($solarSystemID[0]); |
|
@@ 352-358 (lines=7) @@
|
| 349 |
|
$allianceName = allianceName($allianceID); |
| 350 |
|
$msg = "{$allianceName} has lost control of **{$systemName}**"; |
| 351 |
|
break; |
| 352 |
|
case 43: // System captured |
| 353 |
|
preg_match('/(?<=solarsystemID: )\S+/i', $notificationString, $solarSystemID); |
| 354 |
|
$systemName = getSystemName($solarSystemID[0]); |
| 355 |
|
$allianceID = trim(explode(': ', $notificationArray[0])[1]); |
| 356 |
|
$allianceName = allianceName($allianceID); |
| 357 |
|
$msg = "{$allianceName} now controls **{$systemName}**"; |
| 358 |
|
break; |
| 359 |
|
case 45: // Tower anchoring |
| 360 |
|
$msg = 'skip'; |
| 361 |
|
break; |
|
@@ 562-568 (lines=7) @@
|
| 559 |
|
} |
| 560 |
|
$msg = "{$corpName} has changed the legality for friendly fire."; |
| 561 |
|
break; |
| 562 |
|
case 147: // Entosis has started |
| 563 |
|
preg_match('/(?<=solarsystemID: )\S+/i', $notificationString, $solarSystemID); |
| 564 |
|
$systemName = getSystemName($solarSystemID[0]); |
| 565 |
|
$typeID = trim(explode(': ', $notificationArray[1])[1]); |
| 566 |
|
$typeName = getTypeName($typeID); |
| 567 |
|
$msg = "Entosis has started in **{$systemName}** on **{$typeName}** (Date: **{$sentDate}**)"; |
| 568 |
|
break; |
| 569 |
|
case 148: // Entosis enabled a module ?????? |
| 570 |
|
preg_match('/(?<=solarsystemID: )\S+/i', $notificationString, $solarSystemID); |
| 571 |
|
$systemName = getSystemName($solarSystemID[0]); |
|
@@ 569-575 (lines=7) @@
|
| 566 |
|
$typeName = getTypeName($typeID); |
| 567 |
|
$msg = "Entosis has started in **{$systemName}** on **{$typeName}** (Date: **{$sentDate}**)"; |
| 568 |
|
break; |
| 569 |
|
case 148: // Entosis enabled a module ?????? |
| 570 |
|
preg_match('/(?<=solarsystemID: )\S+/i', $notificationString, $solarSystemID); |
| 571 |
|
$systemName = getSystemName($solarSystemID[0]); |
| 572 |
|
$typeID = trim(explode(': ', $notificationArray[1])[1]); |
| 573 |
|
$typeName = getTypeName($typeID); |
| 574 |
|
$msg = "Entosis has enabled a module in **{$systemName}** on **{$typeName}** (Date: **{$sentDate}**)"; |
| 575 |
|
break; |
| 576 |
|
case 149: // Entosis disabled a module |
| 577 |
|
preg_match('/(?<=solarsystemID: )\S+/i', $notificationString, $solarSystemID); |
| 578 |
|
$systemName = getSystemName($solarSystemID[0]); |
|
@@ 576-582 (lines=7) @@
|
| 573 |
|
$typeName = getTypeName($typeID); |
| 574 |
|
$msg = "Entosis has enabled a module in **{$systemName}** on **{$typeName}** (Date: **{$sentDate}**)"; |
| 575 |
|
break; |
| 576 |
|
case 149: // Entosis disabled a module |
| 577 |
|
preg_match('/(?<=solarsystemID: )\S+/i', $notificationString, $solarSystemID); |
| 578 |
|
$systemName = getSystemName($solarSystemID[0]); |
| 579 |
|
$typeID = trim(explode(': ', $notificationArray[1])[1]); |
| 580 |
|
$typeName = getTypeName($typeID); |
| 581 |
|
$msg = "Entosis has disabled a module in **{$systemName}** on **{$typeName}** (Date: **{$sentDate}**)"; |
| 582 |
|
break; |
| 583 |
|
case 152: // Sov bill |
| 584 |
|
$msg = 'skip'; |
| 585 |
|
break; |
|
@@ 606-612 (lines=7) @@
|
| 603 |
|
$systemName = getSystemName($solarSystemID[0]); |
| 604 |
|
$msg = "Station in **{$systemName}** has now entered freeport mode."; |
| 605 |
|
break; |
| 606 |
|
case 165: // System became Capital |
| 607 |
|
preg_match('/(?<=solarsystemID: )\S+/i', $notificationString, $solarSystemID); |
| 608 |
|
$systemName = getSystemName($solarSystemID[0]); |
| 609 |
|
$allianceID = trim(explode(': ', $notificationArray[0])[1]); |
| 610 |
|
$allianceName = allianceName($allianceID); |
| 611 |
|
$msg = "**{$systemName}** is now the capital for {$allianceName}."; |
| 612 |
|
break; |
| 613 |
|
case 167: // Initiate Self-destruct on TCU |
| 614 |
|
preg_match('/(?<=solarsystemID: )\S+/i', $notificationString, $solarSystemID); |
| 615 |
|
$systemName = getSystemName($solarSystemID[0]); |
|
@@ 654-660 (lines=7) @@
|
| 651 |
|
$systemName = getSystemName($solarSystemID[0]); |
| 652 |
|
$msg = "Citadel now online in **{$systemName}**."; |
| 653 |
|
break; |
| 654 |
|
case 188: // Citadel destroyed |
| 655 |
|
$corpID = trim(explode('- ', $notificationArray[3])[1]); |
| 656 |
|
$corpName = corpName($corpID); |
| 657 |
|
preg_match('/(?<=solarsystemID: )\S+/i', $notificationString, $solarSystemID); |
| 658 |
|
$systemName = getSystemName($solarSystemID[0]); |
| 659 |
|
$msg = "Citadel owned by **{$corpName}** in **{$systemName}** has been destroyed."; |
| 660 |
|
break; |
| 661 |
|
case 198: // citadel out of fuel |
| 662 |
|
preg_match('/(?<=solarsystemID: )\S+/i', $notificationString, $solarSystemID); |
| 663 |
|
$systemName = getSystemName($solarSystemID[0]); |