Jump to content
×
×
  • Create New...

Empty your Inventory


yarka0000

Recommended Posts

M2 Download Center

Download Here ( Internal )

 

quest clean_inventory begin
	state start begin
		when 9005.chat."Empty your inventory" begin
		say_title(mob_name(npc.get_race()))
		say("Inventory which you choose will be empty.")
		say("Pay attention when you make your choice.")
		say_reward("Choose the inventory which you want to empty.")
		local s = select("Inventory - I","Inventory - II","Remove all items","Cancel")
			if s == 1 then
			say("Do you really want to empty Inventory I?")
				if select("Yes","No") == 2 then
				return
				end
			clean_inventory.empty(0,44)
			elseif s == 2 then
			say("Do you really want to empty Inventory II?")
				if select("Yes","No") == 2 then
				return
				end
			clean_inventory.empty(45,89)
			elseif s == 3 then
			say("Do you really want to remove all items except")
			say("equipments?")
				if select("Yes","No") == 2 then
				return
				end
			clean_inventory.empty(0,89)
			else
			return
			end
		end

		function empty(a,b)
			for i=a, b do
			item.select_cell(i)
			item.remove()
			end
		end
	end
end

 

  • Metin2 Dev 3
  • Love 8
Link to comment
Share on other sites

  • 2 weeks later...

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


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.