Page 1 of 1

Sell equipment oxp...

Posted: Sat Jan 09, 2010 12:02 am
by Belgarath
I just installed the Sell Equipment OXP.
According to the readme I should be getting about 60% of the original value for the modules when I sell them, however all sellable equipment gives me just 10 credits...

I noticed the following in the script.js of the Sell Equipment OXP:

Code: Select all

player.ship.removeEquipment(this.equipment_key[i] + "_REMOVAL")
			player.credits += (EquipmentInfo.infoForKey(this.equipment_key[i]).price * 0.1 * 0.6)
			break
		}
	}
}
Seems to me selling equipement gives me 60% x 10% = just 6% of the original value back.
Or am I worng here?

thnx

Posted: Sat Jan 09, 2010 12:40 am
by JensAyton
EquipmentInfo price entries are in tenths of credits, the fundamental unit of currency in Oolite.

Posted: Sat Jan 09, 2010 3:07 am
by Kaks
I think that the 10 credits you see displayed is the handling / brokerage / whatever fee it costs you to actually sell specific equipment. This works in a similar way to 'Unmount and sell all pylon mounted weapons' in vanilla Oolite.
Try that one with a fresh Jameson to see what I mean: it costs you 20 credits to sell missiles, the value of the 3 unused missiles comes to 90 credits, so you're 70 credits better off if you sell the missiles. As if by magic! :P

Posted: Sat Jan 09, 2010 10:00 am
by Belgarath
DOH!

What mistaka to maka...

Thanks for clearing that up...
I found that when I sell my equipement before buying a different ship, I have more credits.