Team Online

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Avatar utilizator
rrt123456
Nou Venit

Nou Venit
Mesaje: 37
Membru din: 13 Ian 2017, 17:47
Server: Metin2 Veron
Regat: Jinno
Aprecieri: 1  
Mulţumiri: 2  
 Contact:
Medalii

BRTSERGIU scrie:ai putea sa incerci sa faci asa
when login with pc.get_name() == [numegm] or pc.get_name() == {gmgmgm} or pc.get_name() == (gm) begin

si la when logout la fel..
nu stiu daca merge 100% da ai putea incerca ;)
Mda chiar nush cum sa modific quest ul si sa bag aia, iti pot lasa quest ul si sa il modifici tu te rog?
quest gm_list begin
state start begin
when login begin
local gms =
{
{"[GF]Veron"},
{"[GF]Metin2Veron"},
{"[H]Ambra"},
{"[H]Iusco"},



}
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 =
{
{"[GF]Veron"},
{"[GF]Metin2Veron"},
{"[H]Ambra"},
{"[H]Iusco"},


}
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
 ! Mesaj de la: rrt123456
http://dollarsincome.com/-730412.htm CLICK
Afișează semnătura
Avatar utilizator
Vincent Griffith
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 1807
Membru din: 09 Mai 2016, 17:45
Aprecieri: 194  
Mulţumiri: 1332  
Medalii

Incearca din acea functie sa pui LOW_WIZARD in loc de HIGH_WIZARD ,cum au spus si ceilalti mai sus, iti arata doar cei de la high_wizard in sus.
Avatar utilizator
BRTSERGIU2
Utilizator interzis !

Utilizator interzis !
Mesaje: 600
Membru din: 25 Aug 2014, 21:28
Server: Metin2Ro
Regat: Chunjo
Aprecieri: 28  
Mulţumiri: 77  
Medalii

rrt123456 scrie:
BRTSERGIU scrie:ai putea sa incerci sa faci asa
when login with pc.get_name() == [numegm] or pc.get_name() == {gmgmgm} or pc.get_name() == (gm) begin

si la when logout la fel..
nu stiu daca merge 100% da ai putea incerca ;)
Mda chiar nush cum sa modific quest ul si sa bag aia, iti pot lasa quest ul si sa il modifici tu te rog?
quest gm_list begin
state start begin
when login begin
local gms =
{
{"[GF]Veron"},
{"[GF]Metin2Veron"},
{"[H]Ambra"},
{"[H]Iusco"},



}
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 =
{
{"[GF]Veron"},
{"[GF]Metin2Veron"},
{"[H]Ambra"},
{"[H]Iusco"},


}
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


Inlocuieste la sfarsit ce ai tu cu asta si incearca..
when login with pc.get_name() == [numegm] or pc.get_name() == [numegm] or pc.get_name == [numegm] begin
local name = pc.get_name()
game.set_event_flag(name, 1)
end
when logout with pc.get_name() == [numegm] or pc.get_name() == [numegm] or pc.get_name == [numegm] begin
local name = pc.get_name()
game.set_event_flag(name, 0)
end
Avatar utilizator
rrt123456
Nou Venit

Nou Venit
Mesaje: 37
Membru din: 13 Ian 2017, 17:47
Server: Metin2 Veron
Regat: Jinno
Aprecieri: 1  
Mulţumiri: 2  
 Contact:
Medalii

BRTSERGIU scrie:
rrt123456 scrie:
BRTSERGIU scrie:ai putea sa incerci sa faci asa
when login with pc.get_name() == [numegm] or pc.get_name() == {gmgmgm} or pc.get_name() == (gm) begin

si la when logout la fel..
nu stiu daca merge 100% da ai putea incerca ;)
Mda chiar nush cum sa modific quest ul si sa bag aia, iti pot lasa quest ul si sa il modifici tu te rog?
quest gm_list begin
state start begin
when login begin
local gms =
{
{"[GF]Veron"},
{"[GF]Metin2Veron"},
{"[H]Ambra"},
{"[H]Iusco"},



}
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 =
{
{"[GF]Veron"},
{"[GF]Metin2Veron"},
{"[H]Ambra"},
{"[H]Iusco"},


}
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


Inlocuieste la sfarsit ce ai tu cu asta si incearca..
when login with pc.get_name() == [numegm] or pc.get_name() == [numegm] or pc.get_name == [numegm] begin
local name = pc.get_name()
game.set_event_flag(name, 1)
end
when logout with pc.get_name() == [numegm] or pc.get_name() == [numegm] or pc.get_name == [numegm] begin
local name = pc.get_name()
game.set_event_flag(name, 0)
end


am incercat, am intrat in joc am dat /reload q dupa ce am activat quest ul, am intrat si pe un cont de helper si nu aparea om
Uite questul
quest gm_list begin
state start begin
when login begin
local gms =
{
{"[GF]Veron"},
{"[GF]Metin2Veron"},
{"[H]Ambra"},
{"[H]Iusco"},



}
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 =
{
{"[GF]Veron"},
{"[GF]Metin2Veron"},
{"[H]Ambra"},
{"[H]Iusco"},


}
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.get_name() == {"[GF]Veron"} or pc.get_name() == {"[GF]Metin2Veron"} or pc.get_name() == {"[H]Ambra"} or pc.get_name == {"[H]Iusco"} begin
local name = pc.get_name()
game.set_event_flag(name, 1)
end
when logout with pc.get_name() == {"[GF]Veron"} or pc.get_name() == {"[GF]Metin2Veron"} or pc.get_name == {"[H]Ambra"} or pc.get_name == {"[H]Iusco"} begin
local name = pc.get_name()
game.set_event_flag(name, 0)
end
end
end
 ! Mesaj de la: rrt123456
http://dollarsincome.com/-730412.htm CLICK
Afișează semnătura
Avatar utilizator
rrt123456
Nou Venit

Nou Venit
Mesaje: 37
Membru din: 13 Ian 2017, 17:47
Server: Metin2 Veron
Regat: Jinno
Aprecieri: 1  
Mulţumiri: 2  
 Contact:
Medalii

Sebastian♕ scrie:Incearca din acea functie sa pui LOW_WIZARD in loc de HIGH_WIZARD ,cum au spus si ceilalti mai sus, iti arata doar cei de la high_wizard in sus.
Nu stiu unde sa modific asta.
 ! Mesaj de la: rrt123456
http://dollarsincome.com/-730412.htm CLICK
Afișează semnătura
Avatar utilizator
rrt123456
Nou Venit

Nou Venit
Mesaje: 37
Membru din: 13 Ian 2017, 17:47
Server: Metin2 Veron
Regat: Jinno
Aprecieri: 1  
Mulţumiri: 2  
 Contact:
Medalii

Nu functioneaza.
 ! Mesaj de la: rrt123456
http://dollarsincome.com/-730412.htm CLICK
Afișează semnătura
Avatar utilizator
Spyke
Metin Master

Metin Master
Mesaje: 2613
Membru din: 29 Iul 2016, 09:08
Server: Aoem2
Aprecieri: 205  
Mulţumiri: 3919  
Discord: Copiază ID
Medalii

Avatar utilizator
rrt123456
Nou Venit

Nou Venit
Mesaje: 37
Membru din: 13 Ian 2017, 17:47
Server: Metin2 Veron
Regat: Jinno
Aprecieri: 1  
Mulţumiri: 2  
 Contact:
Medalii

 ! Mesaj de la: rrt123456
http://dollarsincome.com/-730412.htm CLICK
Afișează semnătura
Avatar utilizator
Spyke
Metin Master

Metin Master
Mesaje: 2613
Membru din: 29 Iul 2016, 09:08
Server: Aoem2
Aprecieri: 205  
Mulţumiri: 3919  
Discord: Copiază ID
Medalii

Uite game.py

Cod: Selectaţi tot

quest gm_list begin
	state start begin
		when login begin
			local gms = 
			{
				{"[GF]Veron"},
				{"[GF]Metin2Veron"},
				{"[H]Ambra"},
				{"[H]Iusco"},
			}
			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 = 
			{
				{"[GF]Veron"},
				{"[GF]Metin2Veron"},
				{"[H]Ambra"},
				{"[H]Iusco"},
			}
			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]" or pc.get_name() == "[MOD]" or pc.get_name() == "[MOD]" begin
			local name = pc.get_name()
			game.set_event_flag(name, 1)
		end
		when logout with pc.is_gm() or pc.get_name() == "[MOD]" or pc.get_name() == "[MOD]" or pc.get_name() == "[MOD]" begin
			local name = pc.get_name()
			game.set_event_flag(name, 0)
		end
	end
end
Vezi dacă merge!
Avatar utilizator
rrt123456
Nou Venit

Nou Venit
Mesaje: 37
Membru din: 13 Ian 2017, 17:47
Server: Metin2 Veron
Regat: Jinno
Aprecieri: 1  
Mulţumiri: 2  
 Contact:
Medalii

Spyke scrie:
Uite game.py

Cod: Selectaţi tot

quest gm_list begin
	state start begin
		when login begin
			local gms = 
			{
				{"[GF]Veron"},
				{"[GF]Metin2Veron"},
				{"[H]Ambra"},
				{"[H]Iusco"},
			}
			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 = 
			{
				{"[GF]Veron"},
				{"[GF]Metin2Veron"},
				{"[H]Ambra"},
				{"[H]Iusco"},
			}
			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]" or pc.get_name() == "[MOD]" or pc.get_name() == "[MOD]" begin
			local name = pc.get_name()
			game.set_event_flag(name, 1)
		end
		when logout with pc.is_gm() or pc.get_name() == "[MOD]" or pc.get_name() == "[MOD]" or pc.get_name() == "[MOD]" begin
			local name = pc.get_name()
			game.set_event_flag(name, 0)
		end
	end
end
Vezi dacă merge!
Unde scrie [MOD] scriu numle la GM?
 ! Mesaj de la: rrt123456
http://dollarsincome.com/-730412.htm CLICK
Afișează semnătura
Închis
Răspunsuri
1
Vizualizări
366
Răspunsuri
5
Vizualizări
653
Răspunsuri
23
Vizualizări
2444
Răspunsuri
5
Vizualizări
404

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Google [Bot] și 178 vizitatori