mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-06-19 04:59:07 +00:00
Kopion fix
This commit is contained in:
parent
b99965d245
commit
8d634dd20f
1 changed files with 172 additions and 163 deletions
|
@ -206,13 +206,21 @@ function Read-LogEntry {
|
|||
$damageType = $matches['DamageType']
|
||||
$ship = $global:loadOut
|
||||
|
||||
Try {
|
||||
$page1 = Invoke-WebRequest -uri "https://robertsspaceindustries.com/citizens/$enemyPilot"
|
||||
} Catch {
|
||||
$page1 = $null
|
||||
}
|
||||
|
||||
If ($null -ne $page1){
|
||||
|
||||
If ($enemyShip -eq $global:lastKill){
|
||||
$enemyShip = "Passenger"
|
||||
} Else {
|
||||
$global:lastKill = $enemyShip
|
||||
}
|
||||
|
||||
If (($player -eq $global:userName -and $enemyPilot -ne $global:userName) -and ($enemyPilot -notlike "PU_*" -and $enemyPilot -notlike "NPC_*")){
|
||||
If ($player -eq $global:userName -and $enemyPilot -ne $global:userName){
|
||||
If ($enemyShip -match $cleanupPattern){
|
||||
$enemyShip = $matches[1]
|
||||
}
|
||||
|
@ -246,7 +254,7 @@ function Read-LogEntry {
|
|||
}
|
||||
|
||||
$KillTime = (Get-Date).ToUniversalTime().ToString("d MMM yyyy H:mm 'UTC'")
|
||||
$page1 = Invoke-WebRequest -uri "https://robertsspaceindustries.com/citizens/$enemyPilot"
|
||||
|
||||
|
||||
# Get Enlisted Date
|
||||
if ($($page1.content) -match $joinDatePattern) {
|
||||
|
@ -387,6 +395,7 @@ function Read-LogEntry {
|
|||
Start-Sleep $sleeptimer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Get Logged-in User
|
||||
If ($line -match $loginPattern) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue