Jump to content

Recommended Posts

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
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
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
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
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
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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 3

      Crystal Metinstone

    2. 3

      Feeding game source to LLM

    3. 113

      Ulthar SF V2 (TMP4 Base)

    4. 3

      Feeding game source to LLM

    5. 0

      Target Information System

    6. 3

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.