Jump to content

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

 

  • Love 7
Link to post
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Activity

    1. 3

      Loading index and waypoint files like GF

    2. 222

      WorldEditor ReMIX

    3. 3

      Loading index and waypoint files like GF

    4. 3

      HWID ban

    5. 0

      Auth problem

    6. 2

      Starting a metin2 server on a VPS ?

    7. 3

      Client afk in background - Effects started to fun faster

  • Recently Browsing

    No registered users viewing this page.

Shoutbox

Shoutbox

Chatroom Rules

 

Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules

 

×
×
  • 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.