Page 1 of 1

bag cleanup after doing mini games

Posted: Mon Aug 27, 2012 6:15 am
by Jandrana
When you got several chars running through mini games, each char is filled with a lot of items. You need to cleanup your inventory, otherwise you run out of space when doing mini games the next day. I thought it would be good idea to ask, if anybody already wrote a script to cleanup the inventory after doing mini games?

My current collection of todo's:

material-package-for-magical-instruments 203635 => use item
arcane transmutor charge 203487 => use item
master's-simple-repair-hammer 201014 => put item shop bag

simple Repair Hammer 201967 => send mail
horse-rental-ticket 203033 => send mail
Fusion Stone with Stamina and two random attributes 203001 => send mail
wood / herb / ore from instrument package => send mail

Ghost Card 205792 => put bank
phirius-shell 240181 => put bank
goblin champion badge 205037 => put bank

sell white, green, blue loot - except blue items with lvl > 54 => make mana stone => send mail

Re: bag cleanup after doing mini games

Posted: Mon Aug 27, 2012 11:34 am
by apple

Code: Select all

	inventory:useItem(203487);
	inventory:useItem(203487);
	inventory:useItem(203487);
	item = inventory:findItem("Master's Simple Repair Hammer")
	if item then
	    item:moveTo("itemshop")
	end
that's what i use for the 3 charges and moving the repair hammer to itemshop. I use lootomatic for automatic drop the stones etc since they aren't anything worth.

regards

Re: bag cleanup after doing mini games

Posted: Mon Aug 27, 2012 4:47 pm
by kuripot

Code: Select all

	function CleanBagDOD()
	   for i, item in pairs(inventory.BagSlot) do
		if item.SlotNumber >= settings.profile.options.INV_AUTOSELL_FROMSLOT + 60 and
 	        settings.profile.options.INV_AUTOSELL_TOSLOT + 60 >= item.SlotNumber then

	         if item:isType("Materials") then
	            item:delete()
	         end
	         if item:isType("Arrows") then
	            item:delete()
	         end
	         if item:isType("Projectiles") then
	            item:delete()
	         end
	         if ( item:isType("Weapons") or item:isType("Armor") ) and (1000 > item.Worth and 5 > item.Quality)then
	            item:delete()
	         end
		if item:isType("Equipment Enhancement") then
	            item:delete()
	         end
		if item.Name  == "Wild Boar Meat" then
	            item:delete()
	         end 
		if item:isType("Potions") then
	            item:delete()
	         end          
	      end
	   end
	end 
edited from CleanBagKS

Re: bag cleanup after doing mini games

Posted: Tue Aug 28, 2012 4:44 am
by Jandrana
Thx for your suggestions. I don't want to drop all of the stuff, so I also started to write my own functions using the CleanBagsKS. Still no time to test it, but I will post them if they are working.