Cum pot deschide 2 ch-uri?

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
EmRcc
Nivel 1

Nivel 1
Mesaje: 76
Membru din: 12 Noi 2014, 15:53
Server: Metin2Himera
Aprecieri: 250  
Mulţumiri: 4  
Medalii

Cine imi poate modifica va rog start.sh astfel incat sa deschida ch1 si ch2 in acelasi timp?

start.sh:

Cod: Selectaţi tot

#!/bin/sh
echo -e "\033[32m  
1 - (1) Pornesc CH1 \n
2 - (2) Pornesc CH2 \n
3 - (3) Pornesc CH3 \n
4 - (4) Pornesc CH4 \n 
5 - (5) Anuleaza Actiunea! \033[0m"

echo -e "\033[36m Copyright @ 2014! Toate drepturile sunt rezervate. \033[0m"
read chs

case $chs in 
1*) 

	echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
	cd /usr/home/game/server/db_auth/db/
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
	cd /usr/home/game/server/db_auth/auth/
	./auth &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
	cd /usr/home/game/server/ch1/core_1/
	./core_1 &
	sleep 2
	cd /usr/home/game/server/ch1/core_2/
	./core_2 &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"	
	cd /usr/home/game/server/game/game99/
	./game99 &
	sleep 2
	clear
echo -e "\033[36m Copyright @ 2014! Toate drepturile sunt rezervate. \033[0m"
;;
2*)

	echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
	cd /usr/home/game/server/db_auth/db/
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
	cd /usr/home/game/server/db_auth/auth/
	./auth &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
	cd /usr/home/game/server/ch1/core_1/
	./core_1 &
	sleep 2
	cd /usr/home/game/server/ch1/core_2/
	./core_2 &
	sleep 2
	echo -e "\033[31m \n PORNESC CHANNEL2_2CORE...\033[0m"
	cd /usr/home/game/server/ch2/core_1/
	./core_1 &
	sleep 2
	cd /usr/home/game/server/ch2/core_2/
	./core_2 &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"	
	cd /usr/home/game/server/game/game99/
	./game99 &
	sleep 2
	clear
echo -e "\033[36m Copyright @ 2014! Toate drepturile sunt rezervate. \033[0m"
;;
3*)

	echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
	cd /usr/home/game/server/db_auth/db/
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
	cd /usr/home/game/server/db_auth/auth/
	./auth &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
	cd /usr/home/game/server/ch1/core_1/
	./core_1 &
	sleep 2
	cd /usr/home/game/server/ch1/core_2/
	./core_2 &
	sleep 2
	echo -e "\033[31m \n PORNESC CHANNEL2_2CORE...\033[0m"
	cd /usr/home/game/server/ch2/core_1/
	./core_1 &
	sleep 2
	cd /usr/home/game/server/ch2/core_2/
	./core_2 &
	sleep 2
	echo -e "\033[31m \n PORNESC CHANNEL3_2CORE...\033[0m"
	cd /usr/home/game/server/ch3/core_1/
	./core_1 &
	sleep 2
	cd /usr/home/game/server/ch3/core_2/
	./core_2 &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"	
	cd /usr/home/game/server/game/game99/
	./game99 &
	sleep 2
	clear
echo -e "\033[36m Copyright @ 2014! Toate drepturile sunt rezervate. \033[0m"
;;
4*)

	echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
	cd /usr/home/game/server/db_auth/db/
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
	cd /usr/home/game/server/db_auth/auth/
	./auth &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
	cd /usr/home/game/server/ch1/core_1/
	./core_1 &
	sleep 2
	cd /usr/home/game/server/ch1/core_2/
	./core_2 &
	sleep 2
	echo -e "\033[31m \n PORNESC CHANNEL2_2CORE...\033[0m"
	cd /usr/home/game/server/ch2/core_1/
	./core_1 &
	sleep 2
	cd /usr/home/game/server/ch2/core_2/
	./core_2 &
	sleep 2
	echo -e "\033[31m \n PORNESC CHANNEL3_2CORE...\033[0m"
	cd /usr/home/game/server/ch3/core_1/
	./core_1 &
	sleep 2
	cd /usr/home/game/server/ch3/core_2/
	./core_2 &
	sleep 2
	echo -e "\033[31m \n PORNESC CHANNEL4_2CORE...\033[0m"
	cd /usr/home/game/server/ch4/core_1/
	./core_1 &
	sleep 2
	cd /usr/home/game/server/ch4/core_2/
	./core_2 &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m" 
	cd /usr/home/game/server/game/game99/
	./game99 &
	sleep 2
	clear
;;
5*)
clear
	echo -e "\033[32m \n Actiune Anulata!\033[0m"
;;
esac
Avatar utilizator
Savagez.
Nivel 1

Nivel 1
Mesaje: 138
Membru din: 14 Iul 2016, 13:00
Server: Nu am !
Regat: Chunjo
Aprecieri: 5  
Mulţumiri: 25  
Medalii

Pai copii ch-ul , ii schimbi numele , intri în config și schimbi porturile + numele de sus.
Dar vezi că acel CH nu va porni cât timp nu modifici și start.sh.
Când modifici te iei după CH1 sau după alt start.sh.
Imagine
Afișează semnătura
Avatar utilizator
Dyzu
Nivel 2

Nivel 2
Mesaje: 189
Membru din: 20 Feb 2014, 18:53
Server: All
Regat: Jinno
Aprecieri: 32  
Mulţumiri: 14  
Medalii

Start.sh-ul tau porneste CH1 si CH2 daca apesi "pornesc CH2".
La si este lafel cu restul, "pornesc CH3" porneste toate pana la CH3 inclusiv, iar "pornesc CH4" le porneste pe toate.
Avatar utilizator
EmRcc
Nivel 1

Nivel 1
Mesaje: 76
Membru din: 12 Noi 2014, 15:53
Server: Metin2Himera
Aprecieri: 250  
Mulţumiri: 4  
Medalii

Start.sh-ul tau porneste CH1 si CH2 daca apesi "pornesc CH2".
La si este lafel cu restul, "pornesc CH3" porneste toate pana la CH3 inclusiv, iar "pornesc CH4" le porneste pe toate.
Am incercat cum ai zis si mi se deschide doar ch1...In client sunt setate corect toate cele 4 ch-uri.
Are altcineva vreo idee?
Avatar utilizator
DarkTobi
Nivel 5

Nivel 5
Mesaje: 846
Membru din: 19 Apr 2016, 14:31
Server: NU JOC
Aprecieri: 16  
Mulţumiri: 197  
Medalii

paulextra2 scrie:
Start.sh-ul tau porneste CH1 si CH2 daca apesi "pornesc CH2".
La si este lafel cu restul, "pornesc CH3" porneste toate pana la CH3 inclusiv, iar "pornesc CH4" le porneste pe toate.
Am incercat cum ai zis si mi se deschide doar ch1...In client sunt setate corect toate cele 4 ch-uri.
Are altcineva vreo idee?
Comanda de deschidere a ch-ului este doar pe acel ch
Deschizi ch 1 normal , si dupa dai sh start.sh si dai pe al 2 ch , asa le pornesti :D
Ambele ch-uri vor fi online :D
Hacking
Afișează semnătura
Avatar utilizator
EmRcc
Nivel 1

Nivel 1
Mesaje: 76
Membru din: 12 Noi 2014, 15:53
Server: Metin2Himera
Aprecieri: 250  
Mulţumiri: 4  
Medalii

Am incercat si nu merge.Si daca dau de la inceput sa deschida ch2 tot ch1 mi se deschide.
Avatar utilizator
EmRcc
Nivel 1

Nivel 1
Mesaje: 76
Membru din: 12 Noi 2014, 15:53
Server: Metin2Himera
Aprecieri: 250  
Mulţumiri: 4  
Medalii

Nimeni nu are alte idei?
Avatar utilizator
bellogioco1
Nivel 3

Nivel 3
Mesaje: 389
Membru din: 20 Mar 2014, 16:49
Server: metin2.ro
Regat: Jinno
Aprecieri: 3  
Mulţumiri: 445  
Medalii

vezi porturile !
client >>>> server
Imagine
Afișează semnătura
Avatar utilizator
Flow
Nou Venit

Nou Venit
Mesaje: 13
Membru din: 30 Sep 2013, 19:42
Server: Palmyra2.com
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 0
 Contact:
Medalii

Cred ca porturile tale sunt urmatoarele.

21000 CH1
22000 CH2
23000 CH3
24000 CH4

Daca sunt astea, modifica-le asa in client.
sh start.sh e bun, trebuie doar sa modifici porturile in client ca cele din CONFIG CH2 CORE1
Avatar utilizator
DarkTobi
Nivel 5

Nivel 5
Mesaje: 846
Membru din: 19 Apr 2016, 14:31
Server: NU JOC
Aprecieri: 16  
Mulţumiri: 197  
Medalii

Arhivat
Hacking
Afișează semnătura
Închis
Răspunsuri
10
Vizualizări
1537
Răspunsuri
7
Vizualizări
318
Răspunsuri
2
Vizualizări
261
Răspunsuri
3
Vizualizări
232

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 73 vizitatori