Applications

Choose a category

accessories
Accessories
development
Development
education
Education
games
Games
graphics
Graphics
internet
Internet
multimedia
Multimedia
office
Office
other
Other

Silkroad Online

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"

cfg_check

#attention "Ce script est encore en version beta.\nIl est possible que vous rencontriez des problèmes lors de l'installation ou pendant le jeu"
presentation "Silkroad Online" "Joymax" "http://www.silkroadonline.net/" "Tinou" "SilkroadOnline"

mkdir -p $HOME/.PlayOnLinux/wineprefix/SilkroadOnline/
if [ -d "$HOME/.PlayOnLinux/tmp/SilkroadOnline/" ]
then
rm $HOME/.PlayOnLinux/tmp/SilkroadOnline/ -R
fi
reponse=$(question "Cliquez sur "Valider" si vous possédez le fichier d'installation sur votre disque dur.\nSinon, pour le télécharger, choisissez "Annuler"")
if [ "$reponse" != "0" ]
then
mkdir -p $HOME/.PlayOnLinux/tmp/SilkroadOnline
cd $HOME/.PlayOnLinux/tmp/SilkroadOnline
telecharger "Patientez pendant le téléchargement du client..." "http://joymaxfull.nefficient.com/joymax/SRO_Client/SilkroadOnlinevGlobalOfficial_v1.02.exe"
message "Téléchargement terminé.\nAppuyez sur entrer, puis patientez le temps de préparer l'installation"
CHEMIN="$HOME/.PlayOnLinux/tmp/SilkroadOnline/SilkroadOnlinevGlobalOfficial_v1.02.exe"
else
CHEMIN=$(selectionner_fichier)
fi
select_prefixe "$HOME/.PlayOnLinux/wineprefix/SilkroadOnline/"
creer_prefixe

Set_OS win98
wine "$CHEMIN"

creer_lanceur "SilkroadOnline" "Program Files/Silkroad/" "Silkroad.exe"
rm $HOME/.PlayOnLinux/tmp/SilkroadOnline/ -R
message "Installation terminée"

exit 0