Designed for UO Renaissance - http://www.uorenaissance.com/
Simple Powershell Script to download UOR housing positions and create a UOAM mapfile. This script will offset the positions provided by http://www.uorenaissance.com/map/house.txt so they display properly in UOAM.
- Download the Powershell script
- (Optional) The script will create a file in C:\Program Files\UOAM by default. If you have UOAM installed elsewhere, modify the value at the top of the script to reflect the proper location. You can also modify the name of the file that is generated.
$UOAMHousesFile = "C:\Program Files\UOAM\UORHouses.map"
- Run Powershell script (You may need to run script as an administrator)
- After a few moments, a file will be generated in C:\Program Files\UOAM\
- If you haven't already, open up UOAM, hit CTRL-A, click the Files tab and Add UORHouses.map.
- If you're missing the icon, go to the Filter tab in Options, scroll down to fortress and click Edit. Select "Choose Icon" and select Fortress_Update2.ico
To make this completely automated, you can setup a job manually in Windows Task Scheduler or you can run the following Powershell commands to create a scheduled task. Here's an example of setting this script to run every day at 9AM.
$action = New-ScheduledTaskAction -Execute 'Powershell.exe' -Argument '-NoProfile -WindowStyle Hidden C:\Path\To\Script\UORHousePositions.ps1'
$trigger = New-ScheduledTaskTrigger -Daily -At 9am
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "UOR House Map Update" -Description "Daily update of the UOR house locations for UOAM" -RunLevel Highest
If you set it up via the Task Scheduler, set it to run the following command:
Powershell.exe -NoProfile -WindowStyle Hidden C:\Path\To\Script\UORHousePositions.ps1