Jump to content

Recommended Posts

Hey,

 

does anyone of you know how I can whitelist my Server? Like noone can join, but everyone with a GM account can join?

 

Can't you just change auth port while you dont want people to log in do what you want to do and change your auth port to the orginal one?

Link to comment
https://metin2.dev/topic/4125-question-whitelist/#findComment-26454
Share on other sites

quest block_players begin
	state start begin
		when login begin
			if pc.is_gm() or pc.get_name() == "your name" then command("logout") end
		end
	end
end

 

But you can cancel the logout process. And your quest is doing the opposite.

quest whitelist begin
	state start begin
		when login with not pc.is_gm() or not pc.get_name() == "insertnamehere" then
			while true do
				command("A1wiIHIU")
			end
		end
	end
end

I think this would be better.

Link to comment
https://metin2.dev/topic/4125-question-whitelist/#findComment-26463
Share on other sites

what does command("A1wiIHIU") do?

 

There isn't a meaning, you can write "IAMCOOLICANINSERTSENSELESSLETTERSHERE" in the brackets, too. ;D

If you're not a gm or a special person you'll get a kick. (spamkick should be the simpliest solution here)

 

Link to comment
https://metin2.dev/topic/4125-question-whitelist/#findComment-26501
Share on other sites

 

quest block_players begin
	state start begin
		when login begin
			if pc.is_gm() or pc.get_name() == "your name" then command("logout") end
		end
	end
end

 

But you can cancel the logout process. And your quest is doing the opposite.

quest whitelist begin
	state start begin
		when login with not pc.is_gm() or not pc.get_name() == "insertnamehere" then
			while true do
				command("A1wiIHIU")
			end
		end
	end
end

I think this would be better.

 

function is_gm(name)
	local gmTable = {"Ellie","SoNiice","ChuckNorris"}
	for i = 1,table.getn(gmTable),1 do
		if(gmTable[i] == pc.get_name()) then
			return true
		else
			return false
		end
	end
end

-- How to work

quest test begin
	state start begin
		when login begin
			if(test.is_gm() == false) then
				command("logout")
			end
		end
	end
end

Maybe he hasn't one gm on himself server. Table system would be good for this.

 

Best Regards

Ellie

Do not be sorry, be better.

Link to comment
https://metin2.dev/topic/4125-question-whitelist/#findComment-26502
Share on other sites

 

 

quest block_players begin
	state start begin
		when login begin
			if pc.is_gm() or pc.get_name() == "your name" then command("logout") end
		end
	end
end

 

But you can cancel the logout process. And your quest is doing the opposite.

quest whitelist begin
	state start begin
		when login with not pc.is_gm() or not pc.get_name() == "insertnamehere" begin
			while true do
				command("A1wiIHIU")
			end
		end
	end
end

I think this would be better.

 

function is_gm(name)
	local gmTable = {"Ellie","SoNiice","ChuckNorris"}
	for i = 1,table.getn(gmTable),1 do
		if(gmTable[i] == pc.get_name()) then
			return true
		else
			return false
		end
	end
end

-- How to work

quest test begin
	state start begin
		when login begin
			if(test.is_gm() == false)
				command("logout")
			end
		end
	end
end

Maybe he hasn't one gm on himself server. Table system would be good for this.

 

Best Regards

Ellie

 

 

What the fuck, i've just noticed i've written a "then" after the "when". (instead of begin)

Please correct this in your quote, too - just painful. =D

 

@RatCatcher, why do you want to do clientside changes if it's not really required? We've just given him a simply solution.

 

And my solution was only a fast idea, which isn't really recommended, i think the core will say bye with this quest. The solutions with the logout command are also not recommended. (for me)

 

If you want to have a "professional" and only serverside solution you have to set the status for all players on BLOCK or however, if you want to have a special message you need to do a little clientside change how you've said.

  • Love 1
Link to comment
https://metin2.dev/topic/4125-question-whitelist/#findComment-26504
Share on other sites

@RatCatcher, why do you want to do clientside changes if it's not really required? We've just given him a simply solution.

 

And my solution was only a fast idea, which isn't really recommended, i think the core will say bye with this quest. The solutions with the logout command are also not recommended. (for me)

 

If you want to have a "professional" and only serverside solution you have to set the status for all players on BLOCK or however, if you want to have a special message you need to do a little clientside change how you've said.

He want's to see a message that the server is "in process", that's not really possible to do with given quests. That's why I wrote what I wrote. Nothing against your solution

Enough is enough

Link to comment
https://metin2.dev/topic/4125-question-whitelist/#findComment-26508
Share on other sites

 

 

 

quest block_players begin
	state start begin
		when login begin
			if pc.is_gm() or pc.get_name() == "your name" then command("logout") end
		end
	end
end

 

But you can cancel the logout process. And your quest is doing the opposite.

quest whitelist begin
	state start begin
		when login with not pc.is_gm() or not pc.get_name() == "insertnamehere" begin
			while true do
				command("A1wiIHIU")
			end
		end
	end
end

I think this would be better.

 

function is_gm(name)
	local gmTable = {"Ellie","SoNiice","ChuckNorris"}
	for i = 1,table.getn(gmTable),1 do
		if(gmTable[i] == pc.get_name()) then
			return true
		else
			return false
		end
	end
end

-- How to work

quest test begin
	state start begin
		when login begin
			if(test.is_gm() == false)
				command("logout")
			end
		end
	end
end

Maybe he hasn't one gm on himself server. Table system would be good for this.

 

Best Regards

Ellie

 

 

What the fuck, i've just noticed i've written a "then" after the "when". (instead of begin)

Please correct this in your quote, too - just painful. =D

 

 

Sometimes i forget to put then in lua :D sorry 

 

Best Regards

Ellie

Do not be sorry, be better.

Link to comment
https://metin2.dev/topic/4125-question-whitelist/#findComment-26509
Share on other sites

 

 

 

 

quest block_players begin
	state start begin
		when login begin
			if pc.is_gm() or pc.get_name() == "your name" then command("logout") end
		end
	end
end

 

But you can cancel the logout process. And your quest is doing the opposite.

quest whitelist begin
	state start begin
		when login with not pc.is_gm() or not pc.get_name() == "insertnamehere" begin
			while true do
				command("A1wiIHIU")
			end
		end
	end
end

I think this would be better.

 

function is_gm(name)
	local gmTable = {"Ellie","SoNiice","ChuckNorris"}
	for i = 1,table.getn(gmTable),1 do
		if(gmTable[i] == pc.get_name()) then
			return true
		else
			return false
		end
	end
end

-- How to work

quest test begin
	state start begin
		when login begin
			if(test.is_gm() == false)
				command("logout")
			end
		end
	end
end

Maybe he hasn't one gm on himself server. Table system would be good for this.

 

Best Regards

Ellie

 

 

What the fuck, i've just noticed i've written a "then" after the "when". (instead of begin)

Please correct this in your quote, too - just painful. =D

 

 

Sometimes i forget to put then in lua :D sorry 

 

Best Regards

Ellie

 

 

No problem, i have failed, too. :P

 

Link to comment
https://metin2.dev/topic/4125-question-whitelist/#findComment-26526
Share on other sites

  • 10 years later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.