Compatibility unverified
This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.
doubloons for sinking a ship Crew Contracts added to pending salvage 1 Ship Upgrades added to pending salvage
GatheringSailing
Dub Boat Log Parser.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/fb68b3ac-8a4a-4b0c-a3bb-3307c0c44009 for latest2# Automation by Jaseowns3## Script: Dub / Boat Log Parser4## Created by: Brozan (Syal)#45235#############################################6 7#doubloons for sinking a ship8#Crew Contracts added to pending salvage9#1 Ship Upgrades added to pending salvage10 11 12$last_out_line = ''13$folders = Get-ChildItem -Path 'C:\Program Files (x86)\Ultima Online Outlands\ClassicUO\Data\Client\JournalLogs' -Name14foreach($item in $folders) 15{16 $files = 'C:\Program Files (x86)\Ultima Online Outlands\ClassicUO\Data\Client\JournalLogs\' + $item17 foreach($file in $files)18 {19 foreach($line in Get-Content $file) 20 {21 if ($line -like "*doubloons for sinking a ship*" )22 {23 $out_line = $line.substring(42)24 $out_line = $out_line -replace " doubloons for sinking a ship! They have been placed in the ship's hold."25 #echo "$out_line"26 }27 if ($line -like "*ship's hold: *1*added to pending salvage*" )28 { 29 if ($out_line -ne $last_out_line)30 { 31 $boat_size = [Math]::Floor([decimal]($out_line.trim() / 2000)) + 132 if ($line -like "*Upgrade*" )33 {34 $out_drop = "Upgrade" 35 }36 else37 {38 $out_drop = "Crew_Contract"39 }40 $dub_value = $out_line.trim() 41 echo "$dub_value,$boat_size,$out_drop"42 }43 $last_out_line = $out_line44 } 45 }46 }47}48 