<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="-3760" z="-8592" y="218">
<onLoad>
		player:openStore("Shamp", _option);

		-- inventory:update() -- not needed. getItemCount updates the inventory.
		-- while inventory:getItemCount("Lehrlingslangstiefel") > inventory:itemTotalCount("<EMPTY>","bags")-- not sure what you mean here
		while 1 > inventory:itemTotalCount("<EMPTY>","bags") do -- fills bag with items
		   inventory:storeBuyItem("Lehrlingslangstiefel");
		end
	
		while ( inventory:getItemCount("Lehrlingslangstiefel") > 0 ) do
		   -- run disenchant macro... not sure what to use for this
		   -- Find some boots
		   local boots = inventory:findItem("Lehrlingslangstiefel")
		   -- Use Disenchant skill
		   RoMScript("UseSkill(1,3)") -- Make sure your Disenchant is on tab 1, skill 3.
		   -- Clicks the item
		   RoMScript("PickupBagItem("..boots.BagId..")") 
		   rest( 3550 );
		end
</waypoints>