DiscoveryGC / FLHook

FLHook for Discovery Freelancer
Other
28 stars 33 forks source link

Feature: Added Buy/Sell Functionality #163

Closed Zentor88 closed 2 years ago

Zentor88 commented 2 years ago

Feature: Added Buy/Sell Functionality Added sellprice variable to handle the logic and updated the transaction code to accomplish. Freelancer only supports one value displayed in dealer menu's however, so the /price command was added. Available to all visitors of the base, the /price buy changes the prices displayed in the menu to what the base is buying from players for, /price sell changes it to what the base is selling for. There is condition statements in place to not reveal all items listed in the /shop menu when the /price commands are used Also changed dealer view logic to display what the base buys the item for if the item you have is out of stock on the base, otherwise by default, prices shown are what the base sells the item for.

/base help menus updated with feature info

Zentor88 commented 2 years ago

Implemented suggested changes except the min/max conditional as it does have use in the /price command. Tested changes without issue.