Jump to content

Recommended Posts

  • 3 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

On 10/2/2024 at 5:23 PM, fantasma21 said:

Does anyone have the quest that gives Yohara level please

try this:


 

quest conqueror_level begin
	state start begin
		when 20433.chat."Become a Champion" begin
			say("")
			say("Do you want to switch to Champion Level?")
			say("")
			local confirm = select("Yes", "No")
			if confirm == 2 then
				return
			end
			
			setskin(NOWINDOW)
			pc.set_conqueror_level()
		end
	end
end



or this 


 

quest to_champion_level begin
	state start begin
		when login or levelup with pc.get_level() >= 120 begin
			set_state(in_mission);
		end -- when
	end -- state

	state in_mission begin
		function GetNeededItems()
			return {{31107, 2000}, {31108, 2000}, {31109, 2000}, {31114, 2000}, {30618, 10}, {30617, 10}, {30616, 10}, {30610, 500}}
		end -- function

		when letter begin
			send_letter("Become a conqueror")
		end -- when

		when button or info begin
			say_title("Become a conqueror:")
			say_size(350, 400);
			
			say("In order to attain the conqueror level, you'll")
			say("need the following:[ENTER]")

			local needed_items = to_champion_level.GetNeededItems();
			for it, item_data in ipairs(needed_items) do
				raw_script("[INSERT_IMAGE image_type;item|idx;"..item_data[1].."|title;"..string.format("%s (x%d)", item_name(item_data[1]), item_data[2]).."|desc;|index;"..math.mod(it-1, 2).."|total;2]")
			end -- for

			say("[ENTER]You'll also need to have at least 25% EXP.[ENTER]")
			wait();
			
			say_title("Become a conqueror:[ENTER]")
			if (pc.get_exp() < (pc.get_next_exp() * 0.25)) then
				say_reward("You don't have at least 25% EXP.[ENTER]")
				return;
			end -- if

			for _, item_data in ipairs(needed_items) do
				if (pc.count_item(item_data[1]) < item_data[2]) then
					say_reward(string.format("[ENTER]You're missing %d units of %s.[ENTER]", item_data[2]-pc.count_item(item_data[1]), item_name(item_data[1])))
					return;
				end -- if
			end -- for
			
			say("[ENTER]You meet the requisites, do you want to proceed?[ENTER]")
			if (select("Yes, sure", "No, thanks") == 1) then -- wut? you have bugged select?
				for _, item_data in ipairs(needed_items) do
					pc.remove_item(item_data[1], item_data[2]);
				end -- for

				pc.set_conqueror_level();
				syschat("<Conqueror> You have attained the conqueror level.")
				set_state(complete);
			end -- if
		end -- when
	end -- state

	state complete begin
	end -- state
end -- quest



even maybe need this:

 

quest yohara_reset begin
	state start begin
		when 71003.use begin
			say("This Scroll resets your Champion Status")
			say("")
			local test = select(lc_quest("Reset Champion Status"),lc_quest("Cancel"))
			if pc.get_level() > 30 then
				if test == 1 then
					say_title(item_name(71003))
					say("")
					say(lc_quest("Are you sure? do you want to reset your Champion Status??"))
					say("")
					local auswahl = select(lc_quest("Yes"),lc_quest("No"))
					if auswahl == 1 then
						pc.conqueror_reset_status(0)
						pc.conqueror_reset_status(1)
						pc.conqueror_reset_status(2)
						pc.conqueror_reset_status(3)
						pc.remove_item(71003, 1)
					else
						return
					end
				else
					return
				end
			else
				say_title(item_name(71003))
				say(lc_quest("12012"))
			end
		end
	end
end

 

Link to comment
https://metin2.dev/topic/33057-set_conqueror_level/#findComment-167573
Share on other sites

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.