Jump to content
  • Join-Us

    https://metin2.dev is the 1st international community on Metin2 development. Join us to develop your skills and share your knowledge with the community, respectful and ethical forum.

  • 0

lvl up quest.


longju2

Question

hi guys this quest is notice all in chat when 1 player level up.

quest noticianivel begin       
        state start begin
                when levelup begin
                        notice_all(pc.get_name() .. " ha subido al nivel " .. pc.get_level() )
                end
        end
end 

i want same quest but from some level, example; level 90.

as would be?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
quest noticianivel begin      
	state start begin
		when levelup begin
			local levels = {10,20,30,40,50,60,70,80,90,100}
			for i=1,table.getn(levels) do
				if pc.get_level() == x[i] then
					notice_all(pc.get_name() .. " ha subido al nivel " .. pc.get_level() )
				end
			end
		end
	end
end
  • Love 2
Link to comment
Share on other sites

  • 0

quest noticianivel begin      
	state start begin
		when levelup begin
			local levels = {10,20,30,40,50,60,70,80,90,100}
			for i=1,table.getn(levels) do
				if pc.get_level() == x[i] then
					notice_all(pc.get_name() .. " ha subido al nivel " .. pc.get_level() )
				end
			end
		end
	end
end

Not work, in my server ir output lua error.

 

error.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 0
quest noticianivel begin     
    state start begin
        when levelup begin
            local levels = {10,20,30,40,50,60,70,80,90,100}
            for i=1,table.getn(levels) do
                if pc.get_level() == levels[i] then
                    notice_all(pc.get_name() .. " ha subido al nivel " .. pc.get_level() )
                end
            end
        end
    end
end

Try now

  • Love 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.