Team la prieteni

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

Nivel 3
Mesaje: 321
Membru din: 26 Dec 2014, 13:15
Server: Metin2Euphobia
Regat: Jinno
Aprecieri: 4  
Mulţumiri: 3  
 Contact:
Medalii

La Prieteni pe metin2 , am TEAM , cum pot sa adaug cei din staff acolo!
Avatar utilizator
Mikkelsen
Mister Just4Metin

Mister Just4Metin
Mesaje: 2353
Membru din: 06 Mar 2014, 23:53
Server: ETH
Regat: Jinno
Aprecieri: 11  
Mulţumiri: 40  
 Contact:
Medalii

Adaugi acest quest:

Cod: Selectaţi tot

quest gm_list begin
	state start begin
		when login begin
			local gms = 
			{
				{"[GM]1"},
				{"[GM]2"}
			}
			for i=1, table.getn(gms), 1 do
				local name = gms[i][1]
				if name == nil then
					return name
				end
				cmdchat('SetTeamOffline '..name)
			end
			loop_timer("check_gm", 10)
		end
		when check_gm.timer begin
			local t_gms = 
			{
				{"[GM]1"},
				{"[GM]2"}
			}
			for i=1, table.getn(t_gms), 1 do
				local t_name = t_gms[i][1]
				if t_name == nil then
					return t_name
				end
				if game.get_event_flag(t_name) == 1 then
					cmdchat('SetTeamOnline '..t_name)
				else
					cmdchat('SetTeamOffline '..t_name)
				end
			end
		end
		when login with pc.is_gm() begin
			local name = pc.get_name()
			game.set_event_flag(name, 1)
		end
		when logout with pc.is_gm() begin
			local name = pc.get_name()
			game.set_event_flag(name, 0)
		end
	end
end
În loc de [GM]1 şi [GM]2 pui numele membrilor echipei!
Pentru acest mesaj, Mikkelsen for the post:
RoyalJakiro
Avatar utilizator
Raileanu Petru
Nivel 3

Nivel 3
Mesaje: 321
Membru din: 26 Dec 2014, 13:15
Server: Metin2Euphobia
Regat: Jinno
Aprecieri: 4  
Mulţumiri: 3  
 Contact:
Medalii

Nu merge .
Uite cum am pus:
quest gm_list begin
state start begin
when login begin
local gms =
{
{"[OwN]Raileanu"},
{"[GM]Tzaka"}
}
for i=1, table.getn(gms), 1 do
local name = gms[1]
if name == nil then
return name
end
cmdchat('SetTeamOffline '..name)
end
loop_timer("check_gm", 10)
end
when check_gm.timer begin
local t_gms =
{
{"[OwN]Raileanu"},
{"[GM]Tzaka"}
}
for i=1, table.getn(t_gms), 1 do
local t_name = t_gms[1]
if t_name == nil then
return t_name
end
if game.get_event_flag(t_name) == 1 then
cmdchat('SetTeamOnline '..t_name)
else
cmdchat('SetTeamOffline '..t_name)
end
end
end
when login with pc.is_gm() begin
local name = pc.get_name()
game.set_event_flag(name, 1)
end
when logout with pc.is_gm() begin
local name = pc.get_name()
game.set_event_flag(name, 0)
end
end
end


Am dat ./qc gm_list.quest si reboot si tot nu merge.
Avatar utilizator
AdrianC
Nivel 4

Nivel 4
Mesaje: 676
Membru din: 30 Noi 2014, 20:37
Server: #.#
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 47  
Medalii

Poftim încearcă acest quest ar trebui să funcționeze, dacă nu v-a merge problema este din cauza configurației greșită la team din client.

Cod: Selectaţi tot

quest gm_list begin
	state start begin
		when login begin
			local gms = 
			{
				{"[SGA]X"},
				{"[MOD]X"},
				{"[MOD]X"},
			}
			for i=1, table.getn(gms), 1 do
				local name = gms[i][1]
				if name == nil then
					return name
				end
				cmdchat('SetTeamOffline '..name)
			end
			loop_timer("check_gm", 8)
		end
		when check_gm.timer begin
			local t_gms = 
			{
				{""},
			}
			for i=1, table.getn(t_gms), 1 do
				local t_name = t_gms[i][1]
				if t_name == nil then
					return t_name
				end
				if game.get_event_flag(t_name) == 1 then
					cmdchat('SetTeamOnline '..t_name)
				else
					cmdchat('SetTeamOffline '..t_name)
				end
			end
		end
		when login with pc.is_gm() or pc.get_name() ==  "[MOD]X" or pc.get_name() == "[MOD]X" or pc.get_name() == "[MOD]X" begin
			local name = pc.get_name()
			game.set_event_flag(name, 1)
		end
		when logout with pc.is_gm() or pc.get_name() == "[MOD]X" or pc.get_name() == "[MOD]X" or pc.get_name() == "[MOD]X" begin
			local name = pc.get_name()
			game.set_event_flag(name, 0)
		end
	end
end
Acest quest a fost testat, și funcționează corespunzător.
Avatar utilizator
Raileanu Petru
Nivel 3

Nivel 3
Mesaje: 321
Membru din: 26 Dec 2014, 13:15
Server: Metin2Euphobia
Regat: Jinno
Aprecieri: 4  
Mulţumiri: 3  
 Contact:
Medalii

Am dat ./qc gm_list.quest

si a aparut asta:

QUEST : gm_list
STATE : start
WHEN : login
WHEN : check_gm.timer
WHEN : login
with pc . is_gm ( ) or pc . get_name ( ) == "[OwNRaileanu" or pc . get_n ame ( ) == "[GM]Tzaka" or pc . get_name ( ) == "[OwNRaileanu"
WHEN : logout
si tot nu apare trebuie sa dau reboot?
Avatar utilizator
AdrianC
Nivel 4

Nivel 4
Mesaje: 676
Membru din: 30 Noi 2014, 20:37
Server: #.#
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 47  
Medalii

Nu problema ta este din client, nu din quest.
Verifică din nou implimentarea la team.

Tutorial: http://just4metin.ro/resurse-metin2/tut ... t6671.html
Avatar utilizator
Raileanu Petru
Nivel 3

Nivel 3
Mesaje: 321
Membru din: 26 Dec 2014, 13:15
Server: Metin2Euphobia
Regat: Jinno
Aprecieri: 4  
Mulţumiri: 3  
 Contact:
Medalii

Am facut in client si apare asa acum cand intru pe sv :
Imagine
Avatar utilizator
AdrianC
Nivel 4

Nivel 4
Mesaje: 676
Membru din: 30 Noi 2014, 20:37
Server: #.#
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 47  
Medalii

Nu ai făcut ceva bine, verifică syserr și postează-l aici.
Avatar utilizator
Raileanu Petru
Nivel 3

Nivel 3
Mesaje: 321
Membru din: 26 Dec 2014, 13:15
Server: Metin2Euphobia
Regat: Jinno
Aprecieri: 4  
Mulţumiri: 3  
 Contact:
Medalii

SYSERR: Jan 20 20:07:57 :: Analyze: login phase does not handle this packet! header 100
SYSERR: Jan 20 20:08:56 :: Analyze: login phase does not handle this packet! header 100
SYSERR: Jan 20 20:09:56 :: Analyze: login phase does not handle this packet! header 100
SYSERR: Jan 20 20:10:56 :: Analyze: login phase does not handle this packet! header 100
SYSERR: Jan 20 20:11:56 :: Analyze: login phase does not handle this packet! header 100
SYSERR: Jan 20 20:12:56 :: Analyze: login phase does not handle this packet! header 100
SYSERR: Jan 20 20:13:56 :: Analyze: login phase does not handle this packet! header 100
Avatar utilizator
Raileanu Petru
Nivel 3

Nivel 3
Mesaje: 321
Membru din: 26 Dec 2014, 13:15
Server: Metin2Euphobia
Regat: Jinno
Aprecieri: 4  
Mulţumiri: 3  
 Contact:
Medalii

Cineva va rog??
Închis
Răspunsuri
5
Vizualizări
438
Răspunsuri
8
Vizualizări
900
Răspunsuri
4
Vizualizări
289
Răspunsuri
2
Vizualizări
134

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

  • Informaţie