#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Wizard101 Europe"
PREFIX=
"Wizard101Europe"
EDITOR=
"Gameforge 4D GmbH | KingsIsle Entertainment, Inc."
AUTHOR=
"PlayPal"
POL_ID=2808
POL_GetSetupImages
"$ICON_TOP"
"$ICON_LEFT"
"$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID $POL_ID
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"$EDITOR"
"$GAME_URL"
"$AUTHOR"
"$PREFIX"
POL_SetupWindow_menu_list
"Please choose your language:\n(you need an account for the specified language)"
"$TITLE"
"English~German~French~Spanish~Italian~Polish~Greek"
"~"
"English"
if
[
"English"
=
"$APP_ANSWER"
];
then
download_file=
"Wizard101_Installer_UK.exe"
tld=
"co.uk"
elif
[
"German"
=
"$APP_ANSWER"
];
then
download_file=
"Wizard101_Installer_DE.exe"
tld=
"de"
elif
[
"French"
=
"$APP_ANSWER"
];
then
download_file=
"Wizard101_Installer_FR.exe"
tld=
"fr"
elif
[
"Spanish"
=
"$APP_ANSWER"
];
then
download_file=
"Wizard101_Installer_ES.exe"
tld=
"es"
elif
[
"Italian"
=
"$APP_ANSWER"
];
then
download_file=
"Wizard101_Installer_IT.exe"
tld=
"it"
elif
[
"Polish"
=
"$APP_ANSWER"
];
then
download_file=
"Wizard101_Installer_PL.exe"
tld=
"pl"
elif
[
"Greek"
=
"$APP_ANSWER"
];
then
download_file=
"Wizard101_Installer_GR.exe"
tld=
"gr"
fi
POL_Wine_SelectPrefix
"$PREFIX"
POL_System_SetArch
"x86"
POL_Wine_PrefixCreate
POL_System_TmpCreate
"$PREFIX"
cd
"$POL_System_TmpDir"
POL_Wine_WaitBefore
"$TITLE"
POL_Wine
"$download_file"
POL_Wine_WaitExit
"$TITLE"
POL_System_TmpDelete
POL_Shortcut
"Wizard101.exe"
"$TITLE"
POL_Shortcut_QuietDebug
"$TITLE"
POL_SetupWindow_Close
exit