-
Notifications
You must be signed in to change notification settings - Fork 0
/
launchervanilla.sh
176 lines (169 loc) · 12.5 KB
/
launchervanilla.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
#!/bin/bash
# List of client versions
client_versions=(
"2007E"
"2007L"
"2008E"
"2008M"
"2009L"
"2009M"
"2010M"
"2010L"
"2011E"
"2011M"
"2012M"
"2012L"
"2013M"
"2013L"
"2014M"
"2014L"
"2015E"
"2015M"
"2016E"
"2017E"
"2018M"
"2019L"
"2020E"
"2021E"
)
# Construct the options string for whiptail
options=()
for version in "${client_versions[@]}"; do
options+=("$version" "")
done
# Display list of client versions and allow the user to select one
selected_version=$(whiptail --title "Client Version Selection" --menu "Choose a client version:" 20 60 15 "${options[@]}" 3>&1 1>&2 2>&3)
# Check if the user canceled the selection
if [ $? -ne 0 ]; then
echo "Selection canceled."
exit 1
fi
# Ask user for IP address, port number, and username
ip_address=$(whiptail --inputbox "Enter IP address:" 8 60 --title "IP Address" 3>&1 1>&2 2>&3)
port=$(whiptail --inputbox "Enter port number:" 8 60 --title "Port Number" 3>&1 1>&2 2>&3)
username=$(whiptail --inputbox "Enter username:" 8 60 --title "Username" 3>&1 1>&2 2>&3)
# Perform actions based on the selected client version
case $selected_version in
"2007E")
# Execute actions for 2007E client version
echo "Executing actions for 2007E client version"
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2007L")
# Execute actions for 2007L client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2008E")
# Execute actions for 2008E client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2008M")
# Execute actions for 2008M client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2009L")
# Execute actions for 2009L client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2009M")
# Execute actions for 2009M client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2010M")
# Execute actions for 2010M client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2010L")
# Execute actions for 2010L client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2011E")
# Execute actions for 2011E client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2011M")
# Execute actions for 2011M client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2012M")
# Execute actions for 2012M client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2012L")
# Execute actions for 2012L client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2013M")
# Execute actions for 2013M client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2013L")
# Execute actions for 2013L client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2014M")
# Execute actions for 2014M client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2014L")
# Execute actions for 2014L client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2015E")
# Execute actions for 2015E client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2015M")
# Execute actions for 2015M client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2016E")
# Execute actions for 2016E client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2017E")
# Execute actions for 2017E client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2018M")
# Execute actions for 2018M client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2019L")
# Execute actions for 2019L client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2020E")
# Execute actions for 2020E client version
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
"2021E")
# Execute the specified command with the user-entered values
command="wine /home/$USER/Vanilla/clients/2021E/Player/RobloxPlayerBeta.exe -j 'http://www.roblox.com/game/join.ashx?username=$username&id=2324213&ip=$ip_address&hat1=271014536&hat2=192565417&hat3=0&shirt=130220741&pants=203990930&tshirt=1381383&port=$port&PlaceId=1818&hc=1&tc=1&la=1&ll=1&ra=1&rl=1&avatartype=R15' -t 0 -a 'http://www.roblox.com/Login/Negotiate.ashx'"
eval "$command"
;;
*)
esac