Jump to content

[MOD] TrashMan


multox

Recommended Posts

Description

Let's you mark with a click all of those hundreds of useless items to sell all at once the next time you visit the appropriate merchant.  Provides a UI so that you can select which tiers of items to sell.  Items already favorited will not get marked for sale.

 

Notes

This is the initial alpha release and most likely has lots of bugs. 

 

Mod Compatibility

Compatible with all other mods.

 

Version Compatibility

This has only been tested against Avorion Beta 0.15.7

 

Installation

[*]Extract the zip file to your Avorion directory.  No files will be overwritten unless you already have this script installed.

[*]

Option A: Use the ShipScriptLoader at http://www.avorion.net/forum/index.php/topic,3918.0.html

Option B: Hit enter and paste this into your chat window

/run Entity():addScript("../../mods/TrashMan/scripts/TrashMan.lua")

(With option B, you will have to do that once each time you create a new ship.)

[*]

If you're playing on a dedicated server, the server also must have this mod installed.

 

trashman.png

 

 

TrashMan_0.1alpha.zip

Link to comment
Share on other sites

  • 2 weeks later...

Thanks for this. I hadn't started modding in Avorion yet  I was able to use this as a basis for something I wanted to do. Which was Clear Recent Items.

 

So 2 things I would like to see. First something to remember what you set so you don't have to keep setting it.

The second is a simple change is related to what I made my mod for. When you remove and add the items they come back as "new" items.

If you change

inv:addAt(iitem, index, amount)

to

inv:addAt(iitem, index, amount, 0)

 

It will change it so the item doesn't appear as "new" and flashing.

 

You could make it a checkbox option if you wanted but I would think if people are trashing items they don't care for it to show up as a new item.

Link to comment
Share on other sites

  • 3 months later...
  • 7 months later...
  • 4 weeks later...
  • 5 weeks later...
  • 2 months later...
  • 1 month later...
  • 3 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
×
×
  • Create New...