Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 00:46

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Download] Automatic script for install 4 ch

Discussion on [Download] Automatic script for install 4 ch within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2010
Posts: 28
Received Thanks: 23
[Download] Automatic script for install 4 ch

HyE!
Today, I wrote (in the 2 hours) scirpt for install 4 ch in metin2 Pserver - there is automatic version (this is only one script file).
Instalation
Download:
HTML Code:
http://www.multiupload.com/1J9P54BAYM
Enjoy!
@Ok, I gave link for English version
sherer223 is offline  
Thanks
2 Users
Old 08/03/2011, 22:05   #2
 
elite*gold: 156
Join Date: Dec 2009
Posts: 1,469
Received Thanks: 464
VT?
.Nguyen is offline  
Old 08/03/2011, 22:39   #3
 
elite*gold: 0
Join Date: Jan 2011
Posts: 1,484
Received Thanks: 3,151
There are only 775 rights needed...
Daroolein is offline  
Old 08/04/2011, 01:22   #4



 
sLay.'s Avatar
 
elite*gold: 80
The Black Market: 121/0/1
Join Date: Feb 2010
Posts: 4,406
Received Thanks: 2,855
Wozu ein Virustest einer .sh Datei ?

Hier der Inhalt wenn du dennoch Zweifel hast :
PHP Code:
#!/bin/sh
echo -"\033[36mCWybierz sciezke do plikow.
1. Sciezka: /usr/home/rw3
2. Sciezka: /usr/home/game
3. Sciezka: /home/rw3
4. Sciezka: /home/game\033[0m"
read chs

case $chs in 
1
*)
echo -
"\033[34mInstalator rozpoczyna swoja prace!\033[0m"
sleep 5
cd 
/usr/home/rw3/
echo -
"\033[34mOdchudzanie katalogow game i game99...\033[0m"
sleep 2
cd 
/usr/home/rw3/game/
rm syslog
rm syserr
cd 
/usr/home/rw3/game99/
rm syslog
rm syserr
echo -"\033[32mZrobiono!\033[0m"
sleep 2
echo -"\033[32mTeraz instalator skopiuje katalogi z channelami!\033[0m"
sleep 2
cd 
/usr/home/rw3/
mkdir channel2
cp 
-r game /usr/home/rw3/channel2
cp 
-r game99 /usr/home/rw3/channel2
echo -"\033[32mChannel2 - zrobiono!\033[0m"
sleep 2
mkdir channel3
cp 
-r game /usr/home/rw3/channel3
cp 
-r game99 /usr/home/rw3/channel3
echo -"\033[32mChannel3 - zrobiono!\033[0m"
sleep 2
mkdir channel4
cp 
-r game /usr/home/rw3/channel4
cp 
-r game99 /usr/home/rw3/channel4
sleep 2
echo -"\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -"\033[32mZrobione!\033[0m"
sleep 2
echo -"\033[34mInstalator utworzy teraz i wyczysci foldery logow oraz stworzy powiazania do nich w channelach!\033[0m"
sleep 2
cd 
/usr/home/rw3/
rm -rf logs/*/sys*
cp -r logs logi_CH2
cp -r logs logi_CH3
cp -r logs logi_CH4
echo -e "\033[32mWykonano!\033[0m"
sleep 2
echo -e "\033[34mInstalator utworzy za chwile i wyczysci foldery nowych channeli oraz utworzy powiazania!\033[0m"
cd /usr/home/rw3/channel2/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /usr/home/rw3/share/locale locale
ln -s /usr/home/rw3/share/data data
ln -s /usr/home/rw3/logi_CH2 logs
ln -s /usr/home/rw3/logi_CH2/game/PTS PTS
ln -s /usr/home/rw3/share/game game
cd /usr/home/rw3/channel2/game99
rm -rf locale
rm -rf data
rm -rf logs
rm game99
rm PTS
ln -s /usr/home/rw3/share/locale locale
ln -s /usr/home/rw3/share/data data
ln -s /usr/home/rw3/logi_CH2 logs
ln -s /usr/home/rw3/logi_CH2/game99/PTS PTS
ln -s /usr/home/rw3/share/game game99
sleep 5
echo -e "\033[32mChannel2 - zrobiono!\033[0m"
cd /usr/home/rw3/channel3/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /usr/home/rw3/share/locale locale
ln -s /usr/home/rw3/share/data data
ln -s /usr/home/rw3/logi_CH3 logs
ln -s /usr/home/rw3/logi_CH3/game/PTS PTS
ln -s /usr/home/rw3/share/game game
cd /usr/home/rw3/channel3/game99
rm -rf locale
rm -rf data
rm -rf logs
rm game99
rm PTS
ln -s /usr/home/rw3/share/locale locale
ln -s /usr/home/rw3/share/data data
ln -s /usr/home/rw3/logi_CH3 logs
ln -s /usr/home/rw3/logi_CH3/game99/PTS PTS
ln -s /usr/home/rw3/share/game game99
sleep 5
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
cd /usr/home/rw3/channel4/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /usr/home/rw3/share/locale locale
ln -s /usr/home/rw3/share/data data
ln -s /usr/home/rw3/logi_CH4 logs
ln -s /usr/home/rw3/logi_CH4/game/PTS PTS
ln -s /usr/home/rw3/share/game game
cd /usr/home/rw3/channel4/game99
rm -rf locale
rm -rf data
rm -rf logs
rm game99
rm PTS
ln -s /usr/home/rw3/share/locale locale
ln -s /usr/home/rw3/share/data data
ln -s /usr/home/rw3/logi_CH4 logs
ln -s /usr/home/rw3/logi_CH4/game99/PTS PTS
ln -s /usr/home/rw3/share/game game99
sleep 5
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -e "\033[32mWykonano!\033[0m"
sleep 2
echo -e "\033[34mInstalator przeprowadzi teraz edycje configow...\033[0m"
sleep 2
cd /usr/home/rw3/channel2/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH2
CHANNEL: 2
PORT: 16000
P2P_PORT: 17000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206    
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
cd /usr/home/rw3/channel2/game99/
rm CONFIG
echo 'HOSTNAME: channel99_CH2
CHANNEL: 2
PORT: 16001
P2P_PORT: 17001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 12 113 184 185 186 187 188 189 81 181 182 183 114 118 119 120 121 122 123 124 125 126 127 128
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
sleep 5
echo -e "\033[32mChannel2 - zrobiono!\033[0m"
cd /usr/home/rw3/channel3/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH3
CHANNEL: 3
PORT: 18000
P2P_PORT: 19000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206    
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
cd /usr/home/rw3/channel3/game99/
rm CONFIG
echo 'HOSTNAME: channe99_CH3
CHANNEL: 3
PORT: 18001
P2P_PORT: 19001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 12 113 184 185 186 187 188 189 81 181 182 183 114 118 119 120 121 122 123 124 125 126 127 128
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
sleep 5
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
cd /usr/home/rw3/channel4/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH4
CHANNEL: 4
PORT: 20000
P2P_PORT: 21000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206    
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
cd /usr/home/rw3/channel4/game99/
rm CONFIG
echo 'HOSTNAME: channel99_CH4
CHANNEL: 4
PORT: 20001
P2P_PORT: 21001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 12 113 184 185 186 187 188 189 81 181 182 183 114 118 119 120 121 122 123 124 125 126 127 128
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
sleep 5
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
echo -e "\033[31mInstalacja channeli przebiegla pomyslnie!\033[0m"
clear

;;
2*)
echo -e "\033[34mInstalator rozpoczyna swoja prace!\033[0m"
sleep 5
cd /usr/home/game/
echo -e "\033[34mOdchudzanie katalogow channel1 and channel2...\033[0m"
sleep 2
cd /usr/home/game/channel1/
rm syslog
rm syserr
cd /usr/home/game/channel2/
rm syslog
rm syserr
echo -e "\033[32mZrobiono!\033[0m"
sleep 2
echo -e "\033[32mTeraz instalator skopiuje katalogi z channelami!\033[0m"
sleep 2
mkdir channel3
cp -r game /usr/home/game/channel3
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
sleep 2
mkdir channel4
cp -r game /usr/home/game/channel4
sleep 2
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -e "\033[32mZrobione!\033[0m"
sleep 2
echo -e "\033[34mInstalator utworzy teraz i wyczysci foldery logow oraz stworzy powiazania do nich w channelach!\033[0m"
sleep 2
cd /usr/home/game/
rm -rf logs/*/
sys*
cp -r logs logi_CH3
cp 
-r logs logi_CH4
echo -"\033[32mWykonano!\033[0m"
sleep 2
echo -"\033[34mInstalator utworzy za chwile i wyczysci foldery nowych channeli oraz utworzy powiazania!\033[0m"
cd /usr/home/game/channel3/game
rm 
-rf locale
rm 
-rf data
rm 
-rf logs
rm game
rm PTS
ln 
-/usr/home/game/share/locale locale
ln 
-/usr/home/game/share/data data
ln 
-/usr/home/game/logi_CH3 logs
ln 
-/usr/home/game/logi_CH3/game/PTS PTS
ln 
-/usr/home/game/share/game game
sleep 5
echo -"\033[32mChannel3 - zrobiono!\033[0m"
cd /usr/home/game/channel4/game
rm 
-rf locale
rm 
-rf data
rm 
-rf logs
rm game
rm PTS
ln 
-/usr/home/game/share/locale locale
ln 
-/usr/home/game/share/data data
ln 
-/usr/home/game/logi_CH4 logs
ln 
-/usr/home/game/logi_CH4/game/PTS PTS
ln 
-/usr/home/game/share/game game
sleep 5
echo -"\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -"\033[32mWykonano!\033[0m"
sleep 2
echo -"\033[34mInstalator przeprowadzi teraz edycje configow...\033[0m"
sleep 2
cd 
/usr/home/game/channel3/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH3
CHANNEL: 3
PORT: 18000
P2P_PORT: 19000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206    
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' 
>> CONFIG
echo -"\033[32mChannel3 - zrobiono!\033[0m"
cd /usr/home/game/channel4/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH4
CHANNEL: 4
PORT: 20000
P2P_PORT: 21000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206    
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' 
>> CONFIG
echo -"\033[32mChannel4 - zrobiono!\033[0m"
echo -"\033[31mInstalacja channeli przebiegla pomyslnie!\033[0m"
clear

;;
3*)
echo -
"\033[34mInstalator rozpoczyna swoja prace!\033[0m"
sleep 5
cd 
/home/rw3/
echo -
"\033[34mOdchudzanie katalogow game i game99...\033[0m"
sleep 2
cd 
/home/rw3/game/
rm syslog
rm syserr
cd 
/home/rw3/game99/
rm syslog
rm syserr
echo -"\033[32mZrobiono!\033[0m"
sleep 2
echo -"\033[32mTeraz instalator skopiuje katalogi z channelami!\033[0m"
sleep 2
cd 
/home/rw3/
mkdir channel2
cp 
-r game /home/rw3/channel2
cp 
-r game99 /home/rw3/channel2
echo -"\033[32mChannel2 - zrobiono!\033[0m"
sleep 2
mkdir channel3
cp 
-r game /home/rw3/channel3
cp 
-r game99 /home/rw3/channel3
echo -"\033[32mChannel3 - zrobiono!\033[0m"
sleep 2
mkdir channel4
cp 
-r game /home/rw3/channel4
cp 
-r game99 /home/rw3/channel4
sleep 2
echo -"\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -"\033[32mZrobione!\033[0m"
sleep 2
echo -"\033[34mInstalator utworzy teraz i wyczysci foldery logow oraz stworzy powiazania do nich w channelach!\033[0m"
sleep 2
cd 
/home/rw3/
rm -rf logs/*/sys*
cp -r logs logi_CH2
cp -r logs logi_CH3
cp -r logs logi_CH4
echo -e "\033[32mWykonano!\033[0m"
sleep 2
echo -e "\033[34mInstalator utworzy za chwile i wyczysci foldery nowych channeli oraz utworzy powiazania!\033[0m"
cd /home/rw3/channel2/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /home/rw3/share/locale locale
ln -s /home/rw3/share/data data
ln -s /home/rw3/logi_CH2 logs
ln -s /home/rw3/logi_CH2/game/PTS PTS
ln -s /home/rw3/share/game game
cd /home/rw3/channel2/game99
rm -rf locale
rm -rf data
rm -rf logs
rm game99
rm PTS
ln -s /home/rw3/share/locale locale
ln -s /home/rw3/share/data data
ln -s /home/rw3/logi_CH2 logs
ln -s /home/rw3/logi_CH2/game99/PTS PTS
ln -s /home/rw3/share/game game99
sleep 5
echo -e "\033[32mChannel2 - zrobiono!\033[0m"
cd /home/rw3/channel3/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /home/rw3/share/locale locale
ln -s /home/rw3/share/data data
ln -s /home/rw3/logi_CH3 logs
ln -s /home/rw3/logi_CH3/game/PTS PTS
ln -s /home/rw3/share/game game
cd /home/rw3/channel3/game99
rm -rf locale
rm -rf data
rm -rf logs
rm game99
rm PTS
ln -s /home/rw3/share/locale locale
ln -s /home/rw3/share/data data
ln -s /home/rw3/logi_CH3 logs
ln -s /home/rw3/logi_CH3/game99/PTS PTS
ln -s /home/rw3/share/game game99
sleep 5
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
cd /home/rw3/channel4/game
rm -rf locale
rm -rf data
rm -rf logs
rm game
rm PTS
ln -s /home/rw3/share/locale locale
ln -s /home/rw3/share/data data
ln -s /home/rw3/logi_CH4 logs
ln -s /home/rw3/logi_CH4/game/PTS PTS
ln -s /home/rw3/share/game game
cd /home/rw3/channel4/game99
rm -rf locale
rm -rf data
rm -rf logs
rm game99
rm PTS
ln -s /home/rw3/share/locale locale
ln -s /home/rw3/share/data data
ln -s /home/rw3/logi_CH4 logs
ln -s /home/rw3/logi_CH4/game99/PTS PTS
ln -s /home/rw3/share/game game99
sleep 5
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -e "\033[32mWykonano!\033[0m"
sleep 2
echo -e "\033[34mInstalator przeprowadzi teraz edycje configow...\033[0m"
sleep 2
cd /home/rw3/channel2/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH2
CHANNEL: 2
PORT: 16000
P2P_PORT: 17000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206    
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
cd /home/rw3/channel2/game99/
rm CONFIG
echo 'HOSTNAME: channel99_CH2
CHANNEL: 2
PORT: 16001
P2P_PORT: 17001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 12 113 184 185 186 187 188 189 81 181 182 183 114 118 119 120 121 122 123 124 125 126 127 128
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
sleep 5
echo -e "\033[32mChannel2 - zrobiono!\033[0m"
cd /home/rw3/channel3/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH3
CHANNEL: 3
PORT: 18000
P2P_PORT: 19000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206    
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
cd /home/rw3/channel3/game99/
rm CONFIG
echo 'HOSTNAME: channe99_CH3
CHANNEL: 3
PORT: 18001
P2P_PORT: 19001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 12 113 184 185 186 187 188 189 81 181 182 183 114 118 119 120 121 122 123 124 125 126 127 128
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
sleep 5
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
cd /home/rw3/channel4/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH4
CHANNEL: 4
PORT: 20000
P2P_PORT: 21000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206    
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
cd /home/rw3/channel4/game99/
rm CONFIG
echo 'HOSTNAME: channel99_CH4
CHANNEL: 4
PORT: 20001
P2P_PORT: 21001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 12 113 184 185 186 187 188 189 81 181 182 183 114 118 119 120 121 122 123 124 125 126 127 128
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' >> CONFIG
sleep 5
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
echo -e "\033[31mInstalacja channeli przebiegla pomyslnie!\033[0m"
clear

;;
4*)
echo -e "\033[34mInstalator rozpoczyna swoja prace!\033[0m"
sleep 5
cd /home/game/
echo -e "\033[34mOdchudzanie katalogow channel1 i channel2...\033[0m"
sleep 2
cd /home/game/channel1/
rm syslog
rm syserr
cd /home/game/channel2/
rm syslog
rm syserr
echo -e "\033[32mZrobiono!\033[0m"
sleep 2
echo -e "\033[32mTeraz instalator skopiuje katalogi z channelami!\033[0m"
sleep 2
mkdir channel3
cp -r game /home/game/channel3
echo -e "\033[32mChannel3 - zrobiono!\033[0m"
sleep 2
mkdir channel4
cp -r game /home/game/channel4
sleep 2
echo -e "\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -e "\033[32mZrobione!\033[0m"
sleep 2
echo -e "\033[34mInstalator utworzy teraz i wyczysci foldery logow oraz stworzy powiazania do nich w channelach!\033[0m"
sleep 2
cd /home/game/
rm -rf logs/*/
sys*
cp -r logs logi_CH3
cp 
-r logs logi_CH4
echo -"\033[32mWykonano!\033[0m"
sleep 2
echo -"\033[34mInstalator utworzy za chwile i wyczysci foldery nowych channeli oraz utworzy powiazania!\033[0m"
cd /home/game/channel3/game
rm 
-rf locale
rm 
-rf data
rm 
-rf logs
rm game
rm PTS
ln 
-/home/game/share/locale locale
ln 
-/home/game/share/data data
ln 
-/home/game/logi_CH3 logs
ln 
-/home/game/logi_CH3/game/PTS PTS
ln 
-/home/game/share/game game
sleep 5
echo -"\033[32mChannel3 - zrobiono!\033[0m"
cd /home/game/channel4/game
rm 
-rf locale
rm 
-rf data
rm 
-rf logs
rm game
rm PTS
ln 
-/home/game/share/locale locale
ln 
-/home/game/share/data data
ln 
-/home/game/logi_CH4 logs
ln 
-/home/game/logi_CH4/game/PTS PTS
ln 
-/home/game/share/game game
sleep 5
echo -"\033[32mChannel4 - zrobiono!\033[0m"
sleep 5
echo -"\033[32mWykonano!\033[0m"
sleep 2
echo -"\033[34mInstalator przeprowadzi teraz edycje configow...\033[0m"
sleep 2
cd 
/home/game/channel3/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH3
CHANNEL: 3
PORT: 18000
P2P_PORT: 19000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206    
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' 
>> CONFIG
echo -"\033[32mChannel3 - zrobiono!\033[0m"
cd /home/game/channel4/game/
rm CONFIG
echo 'HOSTNAME: channel1_CH4
CHANNEL: 4
PORT: 20000
P2P_PORT: 21000
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 2 3 4 5 6 7 8 9 10 11 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80 74 75 76 77 78 79 100 101 103 105 107 110 111 112 180 190 191 192 193 194 206    
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
LOG_SQL: localhost mt2 mt2!@# log
COMMON_SQL: localhost mt2 mt2!@# common
LOCALE_SERVICE: germany
#TEST_SERVER: 1
#NO_PK: 1
MALL_URL: minishop.nw3-network.org
adminpage_ip0: 80.79.127.10
admin_page_password: loldeinemasucktaberderbe1236
VIEW_RANGE: 20000
CHECK_MULTIHACK: 1' 
>> CONFIG
echo -"\033[32mChannel4 - zrobiono!\033[0m"
echo -"\033[31mInstalacja channeli przebiegla pomyslnie!\033[0m"
clear

;;

esac
sleep 5
echo -"\033[36mCzy chcesz, aby instalator zedytowal pliki start i stop pod 4 CH?
1. Tak
2. Nie\033[0m"
read chs

case $chs in 
2
*)
exit

;;
1*)
echo -
"\033[36mPonownie wybierz sciezke, z wyboru pierwotnego (instalacji channeli).
1. /usr/home/rw3
2. /usr/home/game
3. /home/rw3
4. /home/game\033[0m"

;;

esac
case $chs in 
1
*)
echo -
"\033[33mUsuwanie starych plików start.sh i stop.sh...\033[0m"
sleep 2
    cd 
/usr/home/rw3/
    
rm start.sh
    rm close
.sh
echo -"\033[32mUsunieto w/w pliki!\033[0m"
sleep 5
echo -"\033[33mTworzenie nowych plikow...\033[0m"
sleep 2
    
echo '#!/bin/sh


echo -e "\033[31m  
Ile Ch chcesz odpalic? \n 
1 - Jedno Ch
2 - Dwa CH
3 - Trzy CH
4 - Cztery CH\033[0m"

read chs

case $chs in 
1*) 

    echo -e "\033[31m Startuje DB\033[0m"
    cd /usr/home/rw3/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /usr/home/rw3/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /usr/home/rw3/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /usr/home/rw3/game99/
    ./game99 &
    sleep 2



;;
2*)

    echo -e "\033[31m Startuje DB\033[0m"
    cd /usr/home/rw3/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /usr/home/rw3/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /usr/home/rw3/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /usr/home/rw3/game99/
    ./game99 &
    sleep 2
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /usr/home/rw3/channel2/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /usr/home/rw3/channel2/game99/
    ./game99 &
    sleep 2
    
;;
3*)

    echo -e "\033[31m Startuje DB\033[0m"
    cd /usr/home/rw3/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /usr/home/rw3/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /usr/home/rw3/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /usr/home/rw3/game99/
    ./game99 &
    sleep 2
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /usr/home/rw3/channel2/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /usr/home/rw3/channel2/game99/
    ./game99 &
    sleep 2
    echo -e "\033[31m \n Startuje 3 Ch\033[0m"
    cd /usr/home/rw3/channel3/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 3 Ch\033[0m"
    cd /usr/home/rw3/channel3/game99/
    ./game99 &
    sleep 2
;;
4*)

    echo -e "\033[31m Startuje DB\033[0m"
    cd /usr/home/rw3/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /usr/home/rw3/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /usr/home/rw3/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /usr/home/rw3/game99/
    ./game99 &
    sleep 2
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /usr/home/rw3/channel2/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /usr/home/rw3/channel2/game99/
    ./game99 &
    sleep 2
    echo -e "\033[31m \n Startuje 3 Ch\033[0m"
    cd /usr/home/rw3/channel3/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 3 Ch\033[0m"
    cd /usr/home/rw3/channel3/game99/
    ./game99 &
    sleep 2
    echo -e "\033[31m \n Startuje 4 Ch\033[0m"
    cd /usr/home/rw3/channel4/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 4 Ch\033[0m"
    cd /usr/home/rw3/channel4/game99/
    ./game99 &
    sleep 2
;;

esac' 
>> start.sh

    
echo '#!/bin/sh
killall game
killall db' 
>> close.sh
echo -"\033[33mNadawanie praw nowym plikom...\033[0m"
sleep 2
chmod 
-R 777 /usr/home/rw3/
echo -
"\033[32mZrobione!\033[0m"
sleep 2
echo -"\033[32mPliki stworzone pomyslnie!\033[0m"
sleep 5

;;
2*)
echo -
"\033[33mUsuwanie starych plików start.sh i stop.sh...\033[0m"
sleep 2
    cd 
/usr/home/game/
    
rm start.sh
    rm close
.sh
echo -"\033[32mUsunieto w/w pliki!\033[0m"
sleep 5
echo -"\033[33mTworzenie nowych plikow...\033[0m"
sleep 2
    
echo '#!/bin/sh


echo -e "\033[31m  
Ile Ch chcesz odpalic? \n 
1 - Jedno Ch
2 - Dwa CH
3 - Trzy CH
4 - Cztery CH\033[0m"

read chs

case $chs in 
1*) 

    echo -e "\033[31m Startuje DB\033[0m"
    cd /usr/home/game/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /usr/home/game/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /usr/home/game/channel1/
    ./game &
    sleep 2
    clear



;;
2*)

    echo -e "\033[31m Startuje DB\033[0m"
    cd /usr/home/game/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /usr/home/game/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /usr/home/game/channel1/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /usr/home/game/channel2/game
    ./game &
    sleep 2
    clear
    
;;
3*)

    echo -e "\033[31m Startuje DB\033[0m"
    cd /usr/home/game/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /usr/home/game/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /usr/home/game/channel1/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /usr/home/game/channel2/game
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 3 Ch\033[0m"
    cd /usr/home/game/channel3/game
    ./game &
    sleep 2
    clear
;;
4*)

    echo -e "\033[31m Startuje DB\033[0m"
    cd /usr/home/game/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /usr/home/game/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /usr/home/game/channel1/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /usr/home/game/channel2/game
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 3 Ch\033[0m"
    cd /usr/home/game/channel3/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 4 Ch\033[0m"
    cd /usr/home/game/channel4/game/
    ./game &
    sleep 2
    clear
;;

esac' 
>> start.sh

    
echo '#!/bin/sh
killall game
killall db' 
>> close.sh
echo -"\033[33mNadawanie praw nowym plikom...\033[0m"
sleep 2
chmod 
-R 777 /usr/home/game/
echo -
"\033[32mZrobione!\033[0m"
sleep 2
echo -"\033[32mPliki stworzone pomyslnie!\033[0m"
sleep 5

;;
3*)
echo -
"\033[33mUsuwanie starych plików start.sh i stop.sh...\033[0m"
sleep 2
    cd 
/home/rw3/
    
rm start.sh
    rm close
.sh
echo -"\033[32mUsunieto w/w pliki!\033[0m"
sleep 5
echo -"\033[33mTworzenie nowych plikow...\033[0m"
sleep 2
    
echo '#!/bin/sh


echo -e "\033[31m  
Ile Ch chcesz odpalic? \n 
1 - Jedno Ch
2 - Dwa CH
3 - Trzy CH
4 - Cztery CH\033[0m"

read chs

case $chs in 
1*) 

    echo -e "\033[31m Startuje DB\033[0m"
    cd /home/rw3/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /home/rw3/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /home/rw3/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /home/rw3/game99/
    ./game99 &
    sleep 2



;;
2*)

    echo -e "\033[31m Startuje DB\033[0m"
    cd /home/rw3/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /home/rw3/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /home/rw3/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /home/rw3/game99/
    ./game99 &
    sleep 2
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /home/rw3/channel2/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /home/rw3/channel2/game99/
    ./game99 &
    sleep 2
    
;;
3*)

    echo -e "\033[31m Startuje DB\033[0m"
    cd /home/rw3/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /home/rw3/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /home/rw3/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /home/rw3/game99/
    ./game99 &
    sleep 2
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /home/rw3/channel2/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /home/rw3/channel2/game99/
    ./game99 &
    sleep 2
    echo -e "\033[31m \n Startuje 3 Ch\033[0m"
    cd /home/rw3/channel3/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 3 Ch\033[0m"
    cd /home/rw3/channel3/game99/
    ./game99 &
    sleep 2
;;
4*)

    echo -e "\033[31m Startuje DB\033[0m"
    cd /home/rw3/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /home/rw3/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /home/rw3/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /home/rw3/game99/
    ./game99 &
    sleep 2
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /home/rw3/channel2/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /home/rw3/channel2/game99/
    ./game99 &
    sleep 2
    echo -e "\033[31m \n Startuje 3 Ch\033[0m"
    cd /home/rw3/channel3/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 3 Ch\033[0m"
    cd /home/rw3/channel3/game99/
    ./game99 &
    sleep 2
    echo -e "\033[31m \n Startuje 4 Ch\033[0m"
    cd /home/rw3/channel4/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 4 Ch\033[0m"
    cd /home/rw3/channel4/game99/
    ./game99 &
    sleep 2
;;

esac' 
>> start.sh

    
echo '#!/bin/sh
killall game
killall db' 
>> close.sh
echo -"\033[33mNadawanie praw nowym plikom...\033[0m"
sleep 2
chmod 
-R 777 /home/rw3/
echo -
"\033[32mZrobione!\033[0m"
sleep 2
echo -"\033[32mPliki stworzone pomyslnie!\033[0m"
sleep 5

;;
4*)
echo -
"\033[33mUsuwanie starych plików start.sh i stop.sh...\033[0m"
sleep 2
    cd 
/home/game/
    
rm start.sh
    rm close
.sh
echo -"\033[32mUsunieto w/w pliki!\033[0m"
sleep 5
echo -"\033[33mTworzenie nowych plikow...\033[0m"
sleep 2
    
echo '#!/bin/sh


echo -e "\033[31m  
Ile Ch chcesz odpalic? \n 
1 - Jedno Ch
2 - Dwa CH
3 - Trzy CH
4 - Cztery CH\033[0m"

read chs

case $chs in 
1*) 

    echo -e "\033[31m Startuje DB\033[0m"
    cd /home/game/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /home/game/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /home/game/channel1/
    ./game &
    sleep 2
    clear



;;
2*)

    echo -e "\033[31m Startuje DB\033[0m"
    cd /home/game/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /home/game/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /home/game/channel1/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /home/game/channel2/game
    ./game &
    sleep 2
    clear
    
;;
3*)

    echo -e "\033[31m Startuje DB\033[0m"
    cd /home/game/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /home/game/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /home/game/channel1/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /home/game/channel2/game
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 3 Ch\033[0m"
    cd /home/game/channel3/game
    ./game &
    sleep 2
    clear
;;
4*)

    echo -e "\033[31m Startuje DB\033[0m"
    cd /home/game/db/
    ./db &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje auth\033[0m"
    cd /home/game/auth/
    ./auth &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 1 Ch\033[0m"
    cd /home/game/channel1/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 2 Ch\033[0m"
    cd /home/game/channel2/game
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 3 Ch\033[0m"
    cd /home/game/channel3/game/
    ./game &
    sleep 2
    clear
    echo -e "\033[31m \n Startuje 4 Ch\033[0m"
    cd /home/game/channel4/game/
    ./game &
    sleep 2
    clear
;;

esac' 
>> start.sh

    
echo '#!/bin/sh
killall game
killall db' 
>> close.sh
echo -"\033[33mNadawanie praw nowym plikom...\033[0m"
sleep 2
chmod 
-R 777 /home/game/
echo -
"\033[32mZrobione!\033[0m"
sleep 2
echo -"\033[32mPliki stworzone pomyslnie!\033[0m"
sleep 5

;;

esac
clear
sleep 2
echo -"\033[33mInstalacja 4 channeli zakonczona sukcesem! \n
Skrypt zostal napisany przez sherer - zakaz udostepniania jako wlasny! \n
Chcesz podziekowac? \n
Odwdziecz sie plusem na mpcforum, lub subem na yt!\033[0m"
sleep 10
clear
exit 
sLay. is offline  
Old 08/04/2011, 09:08   #5
 
¢ýL's Avatar
 
elite*gold: 1
Join Date: Aug 2010
Posts: 1,264
Received Thanks: 363
Erinert mich bisschen an daroo's Files !!!!!
¢ýL is offline  
Old 08/04/2011, 10:30   #6
 
elite*gold: 0
Join Date: Sep 2010
Posts: 28
Received Thanks: 23
@up
No me friend - this in me script.
sherer223 is offline  
Reply


Similar Threads Similar Threads
swsro download and install
04/28/2011 - SRO Private Server - 1 Replies
hey i often asked for the download for swsro2 but everyone sent me this side Index of / and said i have to download SWSRO2_New_Client.rar but when i unzip the file in a order and start it, there is a error like this http://imagespread.com/images/y9e4gxpf8n2j6ucxodsw .jpg and i tried to download other patches. now my question. WHICH THINGS I HAVE TO DOWNLOAD THAT I CAN LOGIN SWSRO2?
Darkorbit script: how to install?
02/20/2011 - DarkOrbit - 5 Replies
i want to install this script. How to do it? Ñêðèïò èçìåíåíèÿ âàøåãî êîðàáëÿ (WP) - Zhyk.Ru Forums
Automatic Imbue script or macro?
10/07/2007 - Silkroad Online - 8 Replies
Well I'm starting the joys of SP farming *yawn* and it's so tedious to have to continuously press down the imbue hotkey with my left hand and double click mobs with my right hand. I'd much rather have a macro or script that keeps my imbue up until I end the script, so that I can just hold down the Ctrl button and click amob once to attack. Can anyone tell me if this is possible, and if it is, provide me with something like this please? It would be greatly appreciated. =)



All times are GMT +2. The time now is 00:46.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.