FLHook Plugin Request: Cargo Exchanger
-
So Lancer Solarus made this a while ago but it was an external program and only actionned changes on player logout. I would like to see if anyone remains who can construct an FLHook version.
More to the point, there doesn’t seem to be a version out there, unless I’ve missed it.
See the file attached, but I will lay out the functions here.
You set requirements, and output, and the item names as below, to create a swap of items.[base]
name = base that does the exchange, use ‘all’ for all bases (without the’ )
[product]
name = descriptive name (unused but required)
credit = main required item for exchange (ie. purchase credit), usually a specialty item
req = additional required items, up to 16 requirements allowed with a minimum of one requirement
out = item that is put in the cargo holdExamples:
Item Exchange (used as a crafting tool for players)
[base]
name=li01_09_base (could be ‘all’ )
[product]
name=Water
credit=Fabricator_MK1
req=Hydrogen, 2
req=Oxygen, 1
out=Water_Cannister, 1Give Nomad rep (basically a commodity bribe)
[base]
name=ew04_05_base (Nomad base)
[product]
name = RepChange_Nomads
credit = null
req = nomad_datacore, 1
out = rep, nomad_grp, 0.91Assigning a rep group
[base]
[product]
name = rep group test
credit = ge_s_repair_01, 0
req = ge_s_battery_01, 0
out = rep_group, fc_n_grpShip tokens would be the obvious use for this, to quickly create them and get loadouts
[base]
name=li01_01_base
[product]
name = liberty_freighter01
credit = trading_license, 1
req = freighter_hull_components, 10
out = ship, Liberty_Freighter_09 (I would like this to be ship packages not just a ship)Buying shortcuts for insane prices would be a way to bring down trading time but at high cost
Below example would make a diamond run from new berlin to new tokyo a couple of presses, providing the player spent a decent amount of credits to buy the item autopilot_rh_ku, and they have a cryostasis pod.[base]
name=rh01_01_base
[product]
name = shortcut_rh01_ku01
credit = cryostasis_pod
req = autopilot_rh_ku, 1
out = move_to_base, rh01_01_base, ku01_01_baseSo there we have it, this is how Lancers version worked.
I can even see a rudimentary quest system coming out of this:
1. Buy item A that has quest text in its info card, directing you to another location.
2. Trade in item A for item B at intended base, get item C.
3. Go to the indicated coords, find a wreck, with NPC enemy spawns, beat them and obtain the prize.
4. Go deliver the prize for your reward (rep gain, items, ship even)Probably a few more things I haven’t thought of yet.
But doesn’t the above sound awesome? I’m sure its within the realm of possibility, I just lack the programming skills to achieve it personally.If it needs to be done by the player with commands, here would be the list.
/fabricate itemname
itemname would be an alias name, i.e; “Nomad Laser MK1” would translate to its no_laser_mk1 nickname./rephack faction
This would just require the appropriate commodity item, namely like the nomad power core example above./addgroup groupname
The equivalent for the repgroup change./buildship shippackage
Consumes the ship token to grant you the requested ship./journey diamondrun
Providing you have the item, will transport you from the required base to the target base.That’s all the detail I thought of, aside from the original work.
Credit to Lancer Solarus for the original work on this, as always, awesome work!I implore anyone still here with FLHook skills to create this.
I would even be willing to transfer a donation to you (small amount) if that motivates you, not much but it shows you I’m serious about getting my goals achieved.We could do with an FLHook programmer, so monthly donations could be a thing for those willing. Might as well make something for it, even if it’s a takeaway, or a few extra drinks at the pub. What you do is valuable to players and good work should be compensated in my eyes.
-
To my knowledge there are FLhook plugins which already are able to do that.
-