Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Removing player ability to sell a weapon at a base?

The general place to discuss MOD''ing Freelancer!

Post Sat Jul 03, 2004 10:29 pm

Removing player ability to sell a weapon at a base?

Does anyone know how to make a weapon that a player has on his ship unsellable at a base? I have tried various methods but they either don't work or work but cause crashes when the weapon is unmounted. What I've tried:

Changing the price multiplier in the market_misc entry to 0 and to -1.
Changing the rank requirement in the market_misc to 90
Changing all values in the market_misc to 0 and to -1
Deleting all mention of the weapon in market_misc and removing the entry in weapon_good.
Commenting out the 'price =' entry in weapon_good
Making the value for the 'price =' entry -1
Changing the 'category =' value in weapon_good from equipment to commodity

I've also tried various combinations of the above methods and had no luck. Anyone know how to do this or have any more suggestions to try?

Post Sun Jul 04, 2004 2:44 pm

I don't think it's possible to take away the selling option for a player on a certain base. Not even for just one weapon. I can be wrong of course.

Post Sun Jul 04, 2004 7:45 pm

it's doable in regards to making a weapon not sellable on every base, but to my knowledge you can't stop it from being sellable on one base and not be sellable on another.


Post Sun Jul 04, 2004 7:52 pm

@blacklightning. That's exactly what I'm looking for. I want to make a "weapon" that I'll be adding to a ship's package and I want to ensure the player can never remove it. Do you know how it's done?

Edit= By "never remove it" I mean to say he can't sell it, on any base. I need to make it so that it's possible to mount or dismount the "weapon".

Edited by - kaegogi on 7/5/2004 3:24:28 PM

Post Mon Jul 05, 2004 5:03 pm

well stopping one from unequipting it or equipting it is the only way I know of to prevent from having the weapon sellable.

To allow them to be equipted and unquipted, and not be sellable is not possible to my knowledge. It's having it come with the ship, and gone with the ship which is possible. I.E. equiping in the goods.ini, giving massive cargo space so it can't be stored in the cargo space upon selling ship. Then adding fake hardpoints on all the ships real weapon hardpoints on every buyable ship, this prevents any transfering when buying ships and having weapons being automounted on the new ship... But it's a hassle and I don't think that's exatctly what you want.

Post Mon Jul 26, 2004 2:25 am

Hy kaegogi,

why shouldn't players sell this weapon?....I think theres no way to get it working...one alternative were, if you put in the infocard a text like "THIS WEAPON IS NOT BUYABLE, SO DON'T TRY TO SELL IT." and in the ship infocard: "THIS IS THE ONLY SHIP, THAT COMES EQUIPPED WITH THIS WEAPON"...

The problem, that the weapon shouldn't be buyable is solved simply:
you only make the required entrys in the weapon_equip.ini and in the loadouts.ini add the weapon to the package of the ship...then its not buyable, but the player has got this weapon...

Post Mon Jul 26, 2004 3:10 am

i can make it unmountable and unsellable period. just remove its weapon_good.ini entry, and you cant see it in inventory. thus not allowing you to unmount, sell or even see its stats. but you will be able to use it in space. i know this isnt what you were looking for, but its a start

Post Mon Jul 26, 2004 3:11 am

het black lightning got another question for ya.... in one of your replies here you got these ships in a picture wich mod/mods are those ships in?????

DoN'T hATE ThE PlaYEr,
HatE The GAmE.
I hAte The DeSiGnER.......

GoT VisuAl On BOgeY,KiCKinG His AsS....

Return to Freelancer General Editing Forum