Care mă poate ajuta ?

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

Nivel 3
Mesaje: 302
Membru din: 26 Iun 2014, 09:06
Server: Metin2AlphaGun
Regat: Jinno
Aprecieri: 0
Mulţumiri: 0
Medalii

Care mă poate ajuta să introduc numele regatului pe strigă ???
Dau THX.
Ultima oară modificat 25 Feb 2016, 01:07 de către qRedI3ullp, modificat 1 dată în total.
#Begin TeRRoR
Imagine
Afișează semnătura
Avatar utilizator
qRedI3ullp
Nivel 3

Nivel 3
Mesaje: 302
Membru din: 26 Iun 2014, 09:06
Server: Metin2AlphaGun
Regat: Jinno
Aprecieri: 0
Mulţumiri: 0
Medalii

#uppp
#Begin TeRRoR
Imagine
Afișează semnătura
Avatar utilizator
qRedI3ullp
Nivel 3

Nivel 3
Mesaje: 302
Membru din: 26 Iun 2014, 09:06
Server: Metin2AlphaGun
Regat: Jinno
Aprecieri: 0
Mulţumiri: 0
Medalii

#Uppp
#Begin TeRRoR
Imagine
Afișează semnătura
Avatar utilizator
Conne
Nivel 5

Nivel 5
Mesaje: 885
Membru din: 07 Dec 2014, 12:07
Regat: Jinno
Aprecieri: 3  
Mulţumiri: 79  
 Contact:
Medalii

fi ma explictit cand pui intrebarile
Avatar utilizator
qRedI3ullp
Nivel 3

Nivel 3
Mesaje: 302
Membru din: 26 Iun 2014, 09:06
Server: Metin2AlphaGun
Regat: Jinno
Aprecieri: 0
Mulţumiri: 0
Medalii

Conne scrie:fi ma explictit cand pui intrebarile
Uite gen asta :

Tutorialul este explicat destul de bine ,dar am băgat codurile respective și nu mi-a mers deloc .
Am căutat alte rezolvări pe Google dar în zadar ,tot degeaba nu am găsit nimic să mă rezolve.
#Begin TeRRoR
Imagine
Afișează semnătura
Avatar utilizator
qRedI3ullp
Nivel 3

Nivel 3
Mesaje: 302
Membru din: 26 Iun 2014, 09:06
Server: Metin2AlphaGun
Regat: Jinno
Aprecieri: 0
Mulţumiri: 0
Medalii

#Uppp
#Begin TeRRoR
Imagine
Afișează semnătura
Avatar utilizator
VegaS
Membru Club

Membru Club
Mesaje: 233
Membru din: 30 Oct 2015, 17:31
Aprecieri: 68  
Mulţumiri: 298  
 Contact:
Medalii

Cod: Selectaţi tot

	def __SendChatPacket(self, text, type):
		if net.IsChatInsultIn(text):
			chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CHAT_INSULT_STRING)
			return
		#START EMPIRECHAT#
		if type == chat.CHAT_TYPE_SHOUT:
			import time
			empire_chatime = empire_chatime = time.strftime("%H:%M:%S")
			name_check = player.Getname_check()
			empire_check = int(net.GetEmpireID(name_check))
			simple_check = {
				1: 'Rosu',
				2: 'Galben',
				3: 'Albastru'  
				}
			empire_color = {
				1: '|cFFFF0000|H|h', # Regat Rosu
				2: '|cFFFFFF00|H|h', # Regat Galben 
				3: '|cFF0080FF|H|h'  # Regat Albastru
				}
			text2_color = {
				1: '|cFFFFFF00|H|h', # Text
				}
			text_color = str(simple_check[empire_check]) + str(empire_color[empire_check]) + text
			if empire_check == 1:
				#empire_chat = text + " " + str(empire_color[1]) + " rasa : " + str(simple_check[empire_check]) + str(empire_color[1]) + str(empire_color[3]) + " timp : " + "[" + str(empire_chatime) + "]"
				empire_chat =  text + " " + str(empire_color[1]) + " " + str(simple_check[empire_check]) + str(empire_color[1]) + str(empire_color[3]) + " " + "[" + str(empire_chatime) + "]"
				net.SendChatPacket(empire_chat, type)
			if empire_check == 2: 
				empire_chat = text + " " + str(empire_color[2]) + " " + str(simple_check[empire_check]) + str(empire_color[3]) + " " + "[" + str(empire_chatime) + "]"
				net.SendChatPacket(empire_chat, type)
			elif empire_check == 3:  
				empire_chat = text + " " + str(empire_color[3]) + " " + str(simple_check[empire_check]) + str(empire_color[2]) + " " + "[" + str(empire_chatime) + "]"
				net.SendChatPacket(empire_chat, type)
		else:
		#END EMPIRECHAT#
			net.SendChatPacket(text, type)
Avatar utilizator
Pietonu'
Nivel 7

Nivel 7
Mesaje: 1351
Membru din: 18 Mar 2015, 13:47
Regat: Chunjo
Aprecieri: 3  
Mulţumiri: 52  
Medalii

Mutat la probleme si intrebari!
Imagine
Afișează semnătura
Avatar utilizator
[Mafia83]
Membru Club

Membru Club
Mesaje: 777
Membru din: 24 Feb 2016, 20:32
Server: Metin2KGB
Regat: Jinno
Aprecieri: 279  
Mulţumiri: 2287  
Discord: Copiază ID
 Contact:
Medalii

Probabil baiatul vrea sa faca chat global si sa apara numele regatului acelui player care scrie pe striga :D
Avatar utilizator
qRedI3ullp
Nivel 3

Nivel 3
Mesaje: 302
Membru din: 26 Iun 2014, 09:06
Server: Metin2AlphaGun
Regat: Jinno
Aprecieri: 0
Mulţumiri: 0
Medalii

VegaS™ scrie:

Cod: Selectaţi tot

	def __SendChatPacket(self, text, type):
		if net.IsChatInsultIn(text):
			chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CHAT_INSULT_STRING)
			return
		#START EMPIRECHAT#
		if type == chat.CHAT_TYPE_SHOUT:
			import time
			empire_chatime = empire_chatime = time.strftime("%H:%M:%S")
			name_check = player.Getname_check()
			empire_check = int(net.GetEmpireID(name_check))
			simple_check = {
				1: 'Rosu',
				2: 'Galben',
				3: 'Albastru'  
				}
			empire_color = {
				1: '|cFFFF0000|H|h', # Regat Rosu
				2: '|cFFFFFF00|H|h', # Regat Galben 
				3: '|cFF0080FF|H|h'  # Regat Albastru
				}
			text2_color = {
				1: '|cFFFFFF00|H|h', # Text
				}
			text_color = str(simple_check[empire_check]) + str(empire_color[empire_check]) + text
			if empire_check == 1:
				#empire_chat = text + " " + str(empire_color[1]) + " rasa : " + str(simple_check[empire_check]) + str(empire_color[1]) + str(empire_color[3]) + " timp : " + "[" + str(empire_chatime) + "]"
				empire_chat =  text + " " + str(empire_color[1]) + " " + str(simple_check[empire_check]) + str(empire_color[1]) + str(empire_color[3]) + " " + "[" + str(empire_chatime) + "]"
				net.SendChatPacket(empire_chat, type)
			if empire_check == 2: 
				empire_chat = text + " " + str(empire_color[2]) + " " + str(simple_check[empire_check]) + str(empire_color[3]) + " " + "[" + str(empire_chatime) + "]"
				net.SendChatPacket(empire_chat, type)
			elif empire_check == 3:  
				empire_chat = text + " " + str(empire_color[3]) + " " + str(simple_check[empire_check]) + str(empire_color[2]) + " " + "[" + str(empire_chatime) + "]"
				net.SendChatPacket(empire_chat, type)
		else:
		#END EMPIRECHAT#
			net.SendChatPacket(text, type)
Spune.mi și mie exact ce trebuie să fac cu asta ,așa fără să.mi zici unde pun eu codu ?
#Begin TeRRoR
Imagine
Afișează semnătura
Închis
Răspunsuri
1
Vizualizări
138
Răspunsuri
7
Vizualizări
235
Răspunsuri
4
Vizualizări
526

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

  • Informaţie
  • Cine este conectat

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