Warcraft III: The Frozen Throne: Difference between revisions

From LANCommander
No edit summary
No edit summary
Line 5: Line 5:
{{Game.InfoBox.Developer|Blizzard Entertainment}}
{{Game.InfoBox.Developer|Blizzard Entertainment}}
|Publishers =
|Publishers =
{{Game.InfoBox.Publisher|Sierra Entertainment}}
{{Game.InfoBox.Publisher|Sierra Entertainment}}{{Game.InfoBox.Publisher|Capcom}}{{Game.InfoBox.Publisher|Blizzard Entertainment}}
{{Game.InfoBox.Publisher|Capcom}}
{{Game.InfoBox.Publisher|Blizzard Entertainment}}
|Release Date =
|Release Date =
{{Game.InfoBox.ReleaseDate|Windows|July 3, 2002}}
{{Game.InfoBox.ReleaseDate|Windows|July 1, 2003}}
|Genres =
|Genres =
{{Game.InfoBox.Genre|Real Time Strategy (RTS)}}
{{Game.InfoBox.Genre|Real Time Strategy (RTS)}}{{Game.InfoBox.Genre|Strategy}}
{{Game.InfoBox.Genre|Strategy}}
|PCGamingWiki = Warcraft_III:_The_Frozen_Throne}}
| PCGamingWiki = Warcraft_III:_The_Frozen_Throne
}}


{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play Warcraft III: Reign of Chaos|Path = Warcraft III.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play Warcraft III: Reign of Chaos|Path = {InstallDir}\Warcraft III.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play Warcraft III: The Frozen Throne|Path = FrozenThrone.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play Warcraft III: The Frozen Throne|Path = {InstallDir}\Frozen Throne.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = World Editor|Path = World Editor.exe|Arguments = |WorkingDirectory = |Primary = False}}
{{Game.ActionBox.Row|Name = World Editor|Path = {InstallDir}\World Editor.exe|Arguments = |WorkingDirectory = |Primary = False}}
}}
}}


{{Game.Scripts.NameChange
|Name = Name Change Script
|Description =
|RequiresAdmin = False
|Contents = <syntaxhighlight lang="powershell" line>
$NewName = $args[0]
$InstallDir = $PSScriptRoot
if ($NewName.Length -gt 24) {
    $NewName = $NewName.Substring(0, 24)
}
New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment"
New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III"
New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\String"
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\String" -Name "userlocal" -Value $NewName -Force
</syntaxhighlight>
}}


{{Game.Scripts.Install
{{Game.Scripts.Install
Line 47: Line 24:
|Description =  
|Description =  
|RequiresAdmin = False
|RequiresAdmin = False
|Contents = <syntaxhighlight lang="powershell" line>
|Contents =
$NewName = $args[0]
<syntaxhighlight lang="powershell" line>
$InstallDir = $PSScriptRoot
$Display = Get-PrimaryDisplay
 
if ($NewName.Length -gt 24) {
    $NewName = $NewName.Substring(0, 24)
}


New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment"
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment" -Force
New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III"
New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0"
New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption1"
New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2"
New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption3"
New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\String"


New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\" -Name "InstallPath" -Value $InstallDir -Force
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\" -Name "InstallPathX" -Value $InstallDir -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III" -Name "InstallPath" -Value "$InstallDir" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\" -Name "Program" -Value "$InstallDir\Warcraft III.exe" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III" -Name "InstallPathX" -Value "$InstallDir" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\" -Name "ProgramX" -Value "$InstallDir\Frozen Throne.exe" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III" -Name "Program" -Value "$InstallDir\Warcraft III.exe" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III" -Name "ProgramX" -Value "$InstallDir\Frozen Throne.exe" -Force


New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "File0" -Value "w3z" -Force
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "File1" -Value "w3v" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "File0" -Value "w3z" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "File2" -Value "w3p" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "File1" -Value "w3v" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "Path0" -Value "$InstallDir\save" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "File2" -Value "w3p" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "Path1" -Value "$InstallDir\save" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "Path0" -Value "$InstallDir\save" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "Path2" -Value "$InstallDir\save" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "Path1" -Value "$InstallDir\save" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "Path2" -Value "$InstallDir\save" -Force


New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption1" -Name "File0" -Value "w3g" -Force
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption1" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption1" -Name "Path0" -Value "$InstallDir\replay" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption1" -Name "File0" -Value "w3g" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption1" -Name "Path0" -Value "$InstallDir\replay" -Force


New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "File0" -Value "log" -Force
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "File1" -Value "txt" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "File0" -Value "log" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "File2" -Value "w3g" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "File1" -Value "txt" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "File3" -Value "j" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "File2" -Value "w3g" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "Path0" -Value "$InstallDir\Logs" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "File3" -Value "j" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "Path1" -Value "$InstallDir\Logs" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "Path0" -Value "$InstallDir\Logs" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "Path2" -Value "$InstallDir\Logs" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "Path1" -Value "$InstallDir\Logs" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "Path3" -Value "$InstallDir\Logs" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "Path2" -Value "$InstallDir\Logs" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "Path3" -Value "$InstallDir\Logs" -Force


New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption3" -Name "File0" -Value "txt" -Force
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption3" -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption3" -Name "Path0" -Value "$InstallDir\Errors" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption3" -Name "File0" -Value "txt" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption3" -Name "Path0" -Value "$InstallDir\Errors" -Force


New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\String" -Name "userlocal" -Value $NewName -Force
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Force
</syntaxhighlight>
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "gamespeed" -Value 3 -Force
}}
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "mousescroll" -Value 50 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "mousescrolldisable" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "keyscroll" -Value 50 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "tooltips" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "formations" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "formationtoggle" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "herobar" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "netgameport" -Value 6112 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "inputsprocket" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "ammtype" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "ammstyles" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "ammmapprefs" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "ammmaphashes" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "ammrace" -Value 32 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "customfilter" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "custommask" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "allyFilter" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "creepFilter" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "terrainFilter" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "subgrouporder" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "multiboardon" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "customkeys" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "schedrace" -Value 32 -Force


{{Game.Scripts.KeyChange
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Map" -Force
|Name = Key Change Script
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Map" -Name "skirmish_V0" -Value "" -Force
|Description = Warcraft III stores the game's CD key encrypted in the war3.mpq and war3x.mpq files in the game's installation directory. There is currently no known way to change this through command-line-only. Instead, we have to rely on [http://www.icyhell.net/2010/08/19/warcraft-3-roc-tft-cd-key-changers key changers]. Provided below are [https://autohotkey.com AutoHotkey] scripts to automate this process. For ease of distribution, it is recommended that you compile the AutoHotkey script to an .exe executable. This will allow you to run the script without having AutoHotkey installed on the client machine.
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Map" -Name "skirmish_V1" -Value "" -Force
|RequiresAdmin = True
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Map" -Name "lan_V0" -Value "" -Force
|Contents =
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Map" -Name "lan_V1" -Value "Maps\(2)BootyBay.w3m" -Force
=== AutoHotkey Scripts ===
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Map" -Name "battlenet_V0" -Value "" -Force
==== Change Warcraft III Key ====
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Map" -Name "battlenet_V1" -Value "" -Force
<syntaxhighlight lang="ahk" line>
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#WinActivateForce  ; Recommended for new scripts due to its superior speed and reliability.
SetTitleMatchMode, 2


Key = %1%
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Name "seenintromovie" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Name "campaignprofile" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Name "clickedtourn" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Name "clickedclan" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Name "clickedladder" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Name "clickedad" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Name "chatsupport" -Value 0 -Force


Run, cdkey.exe
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Force
WinWait, ahk_exe cdkey.exe
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "provider" -Value 1 -Force
WinGetActiveTitle, ChangerTitle
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "positional" -Value 1 -Force
Sleep, 100
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "environmental" -Value 1 -Force
Send, K
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "music" -Value 1 -Force
Send, Vintage{Tab}
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "musicvolume" -Value 40 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "sfx" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "sfxvolume" -Value 100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "ambient" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "movement" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "unit" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "subtitles" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "nomidi" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "softwaremidi" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "nosoundwarn" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "donotusewaveout" -Value 0 -Force


StringMid, KeyPart1, Key, 1, 6
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\String" -Force
StringMid, KeyPart2, Key, 8, 4
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\String" -Name "userlocal" -Value "Vintage" -Force
StringMid, KeyPart3, Key, 13, 6
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\String" -Name "userbnet" -Value "" -Force
StringMid, KeyPart4, Key, 20, 4
StringMid, KeyPart5, Key, 25, 6


Send, %keyPart1%{Tab}
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Force
Send, %keyPart2%{Tab}
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "reswidth" -Value $Display.Bounds.Width -Force
Send, %keyPart3%{Tab}
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "resheight" -Value $Display.Bounds.Height -Force
Send, %keyPart4%{Tab}
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "colordepth" -Value 16 -Force
Send, %keyPart5%{Enter}
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "adapter" -Value 0 -Force
 
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "refreshrate" -Value 60 -Force
Sleep, 100
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "gamma" -Value 30 -Force
 
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "modeldetail" -Value 1 -Force
WinActivate, %ChangerTitle%
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "animquality" -Value 2 -Force
WinWaitActive, %ChangerTitle%
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "texquality" -Value 1 -Force
Send, X
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "miplevel" -Value 0 -Force
 
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "texcolordepth" -Value 16 -Force
return
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "particles" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "lights" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "lockfb" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "unitshadows" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "occlusion" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "cinematicoverrides" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "cinematicrefresh" -Value 75 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "cinematicbpp" -Value 32 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "cinematicwidth" -Value 800 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "cinematicheight" -Value 600 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "spellfilter" -Value 2 -Force
</syntaxhighlight>
</syntaxhighlight>
==== Change Warcraft III: The Frozen Throne Key ====
}}
<syntaxhighlight lang="ahk" line>
           
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
{{Game.Scripts.NameChange
#WinActivateForce  ; Recommended for new scripts due to its superior speed and reliability.
|Name = Name Change Script
SetTitleMatchMode, 2
|Description =  
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
if ($NewPlayerAlias.Length -gt 24) {
    $NewPlayerAlias = $NewPlayerAlias.Substring(0, 24)
}


Key = %1%
New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment"
 
New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III"
Run, FTkey.exe
New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\String"
WinWait, ahk_exe FTkey.exe
WinGetActiveTitle, ChangerTitle
Send, C
 
StringMid, KeyPart1, Key, 1, 6
StringMid, KeyPart2, Key, 8, 4
StringMid, KeyPart3, Key, 13, 6
StringMid, KeyPart4, Key, 20, 4
StringMid, KeyPart5, Key, 25, 6
 
Send, %keyPart1%{Tab}
Send, %keyPart2%{Tab}
Send, %keyPart3%{Tab}
Send, %keyPart4%{Tab}
Send, %keyPart5%{Enter}
 
Sleep, 100
 
WinActivate, %ChangerTitle%
WinWaitActive, %ChangerTitle%
 
Send, X


return
New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\String" -Name "userlocal" -Value $NewPlayerAlias -Force
</syntaxhighlight>
</syntaxhighlight>
=== PowerShell Script ===
}}
           
{{Game.Scripts.KeyChange
|Name = Key Change Script
|Description =  
|RequiresAdmin = True
|Contents =
<syntaxhighlight lang="powershell" line>
<syntaxhighlight lang="powershell" line>
cd "$InstallDir\Warcraft III Key Changer"
cd "$InstallDirectory\Warcraft III Key Changer"
Start-Process "Change WarCraft III CD Key.exe" -ArgumentList "$($args[0])" -Wait
Start-Process "Change Keys.exe" -Wait -ArgumentList "$AllocatedKey"
Start-Process "Change WarCraft III TFT CD Key.exe" -ArgumentList "$($args[0])" -Wait
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Revision as of 21:58, 8 January 2024

Developers
Blizzard Entertainment
Publishers
Sierra EntertainmentCapcomBlizzard Entertainment
Release Date
Windows: July 1, 2003
Genres
Real Time Strategy (RTS)Strategy
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Warcraft III: Reign of Chaos {InstallDir}\Warcraft III.exe True
Play Warcraft III: The Frozen Throne {InstallDir}\Frozen Throne.exe True
World Editor {InstallDir}\World Editor.exe False

Install Script

$Display = Get-PrimaryDisplay

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment" -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III" -Name "InstallPath" -Value "$InstallDir" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III" -Name "InstallPathX" -Value "$InstallDir" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III" -Name "Program" -Value "$InstallDir\Warcraft III.exe" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III" -Name "ProgramX" -Value "$InstallDir\Frozen Throne.exe" -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "File0" -Value "w3z" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "File1" -Value "w3v" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "File2" -Value "w3p" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "Path0" -Value "$InstallDir\save" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "Path1" -Value "$InstallDir\save" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption0" -Name "Path2" -Value "$InstallDir\save" -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption1" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption1" -Name "File0" -Value "w3g" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption1" -Name "Path0" -Value "$InstallDir\replay" -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "File0" -Value "log" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "File1" -Value "txt" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "File2" -Value "w3g" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "File3" -Value "j" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "Path0" -Value "$InstallDir\Logs" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "Path1" -Value "$InstallDir\Logs" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "Path2" -Value "$InstallDir\Logs" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption2" -Name "Path3" -Value "$InstallDir\Logs" -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption3" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption3" -Name "File0" -Value "txt" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOption3" -Name "Path0" -Value "$InstallDir\Errors" -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "gamespeed" -Value 3 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "mousescroll" -Value 50 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "mousescrolldisable" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "keyscroll" -Value 50 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "tooltips" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "formations" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "formationtoggle" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "herobar" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "netgameport" -Value 6112 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "inputsprocket" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "ammtype" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "ammstyles" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "ammmapprefs" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "ammmaphashes" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "ammrace" -Value 32 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "customfilter" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "custommask" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "allyFilter" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "creepFilter" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "terrainFilter" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "subgrouporder" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "multiboardon" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "customkeys" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay" -Name "schedrace" -Value 32 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Map" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Map" -Name "skirmish_V0" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Map" -Name "skirmish_V1" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Map" -Name "lan_V0" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Map" -Name "lan_V1" -Value "Maps\(2)BootyBay.w3m" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Map" -Name "battlenet_V0" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Map" -Name "battlenet_V1" -Value "" -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Name "seenintromovie" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Name "campaignprofile" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Name "clickedtourn" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Name "clickedclan" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Name "clickedladder" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Name "clickedad" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Misc" -Name "chatsupport" -Value 0 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "provider" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "positional" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "environmental" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "music" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "musicvolume" -Value 40 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "sfx" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "sfxvolume" -Value 100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "ambient" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "movement" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "unit" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "subtitles" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "nomidi" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "softwaremidi" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "nosoundwarn" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound" -Name "donotusewaveout" -Value 0 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\String" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\String" -Name "userlocal" -Value "Vintage" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\String" -Name "userbnet" -Value "" -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "reswidth" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "resheight" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "colordepth" -Value 16 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "adapter" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "refreshrate" -Value 60 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "gamma" -Value 30 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "modeldetail" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "animquality" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "texquality" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "miplevel" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "texcolordepth" -Value 16 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "particles" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "lights" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "lockfb" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "unitshadows" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "occlusion" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "cinematicoverrides" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "cinematicrefresh" -Value 75 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "cinematicbpp" -Value 32 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "cinematicwidth" -Value 800 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "cinematicheight" -Value 600 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video" -Name "spellfilter" -Value 2 -Force

Name Change Script

if ($NewPlayerAlias.Length -gt 24) {
    $NewPlayerAlias = $NewPlayerAlias.Substring(0, 24)
}

New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment"
New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III"
New-Item -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\String"

New-ItemProperty -Path "HKCU:\SOFTWARE\Blizzard Entertainment\Warcraft III\String" -Name "userlocal" -Value $NewPlayerAlias -Force

Key Change Script

This script requires admin access to function properly

cd "$InstallDirectory\Warcraft III Key Changer"
Start-Process "Change Keys.exe" -Wait -ArgumentList "$AllocatedKey"