#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
source
"$PLAYONLINUX/lib/sources"
TITLE=
"EverQuest II Sentinel's Fate"
WORKING_WINE=
"1.3.5"
PREFIX=
"eq2"
COMPANY=
"Sony Online Entertainment"
cd
$REPERTOIRE
/tmp
rm
*.jpg
POL_SetupWindow_InitWithImages
POL_SetupWindow_presentation
"$TITLE"
"$COMPANY"
"$SITE"
"Benj"
"$PREFIX"
POL_SetupWindow_install_wine
"$WORKING_WINE"
Use_WineVersion
"$WORKING_WINE"
select_prefix
"$REPERTOIRE/wineprefix/$PREFIX"
POL_LoadVar_PROGRAMFILES
POL_SetupWindow_message_image
"Please note that this game requires a subscription.\nThis script will only install EverQuest II,\n it will not give you a paid subscription.\n\nDo not install shortcuts with the installer.\nThose shortcuts will break EverQuest II\nand correct ones will be setup later."
"Note about subscriptions/shortcuts"
"$PLAYONLINUX/themes/tango/warning.png"
cd
$REPERTOIRE
/tmp
POL_SetupWindow_download
"Please wait while EverQuest II is downloading"
"Downloading"
"$DOWNLOAD_SITE"
POL_SetupWindow_pulsebar
"Installing EverQuest II"
"Installing"
POL_SetupWindow_set_text
"Extracting installer"
unzip eq2-us.zip
POL_SetupWindow_pulse 50
POL_SetupWindow_set_text
"Installing EverQuest II"
wine .
/EQ2
.exe
POL_SetupWindow_detect_exit
POL_SetupWindow_pulse 100
POL_SetupWindow_message
"Press forward only when installation is fully complete."
"Confirmation of Installation"
if
[
"$PLAYONMAC"
=
""
];
then
echo
"r_font_ft 0"
>>
"$REPERTOIRE/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Sony/EverQuest II/eq2.ini"
fi
[
"$PLAYONMAC"
==
""
] || Set_Managed
"Off"
POL_SetupWindow_auto_shortcut
"$PREFIX"
"EQ2.exe"
"$TITLE"
"$TITLE.png"
""
Set_WineVersion_Assign
"$WORKING_WINE"
"$TITLE"
clean_tmp
POL_SetupWindow_Message
"EverQuest II Sentinel's Fate has successfully installed.\nClick forward to close the window."
"Installation Successful"
POL_SetupWindow_Close
exit