Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
57 user(s) are online (38 user(s) are browsing Forum)

Members: 0
Guests: 57

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +30€

Current balance: -190€
(last updated 04/2017)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 51 users playing Freelancer on 40 servers.
August. 20, 2017

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



FLHook Plugin Request: Cargo Exchanger
Not too shy to talk
Joined:
3/20 14:31
Group:
Registered Users
Posts: 59
Offline
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.

Quote:
[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 hold


Examples:

Item Exchange (used as a crafting tool for players)
Quote:
[base]
name=li01_09_base (could be 'all' )
[product]
name=Water
credit=Fabricator_MK1
req=Hydrogen, 2
req=Oxygen, 1
out=Water_Cannister, 1


Give Nomad rep (basically a commodity bribe)

Quote:
[base]
name=ew04_05_base (Nomad base)
[product]
name = RepChange_Nomads
credit = null
req = nomad_datacore, 1
out = rep, nomad_grp, 0.91


Assigning a rep group
Quote:
[base]
[product]
name = rep group test
credit = ge_s_repair_01, 0
req = ge_s_battery_01, 0
out = rep_group, fc_n_grp


Ship tokens would be the obvious use for this, to quickly create them and get loadouts
Quote:
[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.

Quote:
[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_base


So 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.

Attach file:


zip Cargo_Exchanger_V0_007.zip Size: 45.19 KB; Hits: 11

Posted on: 7/30 9:06
Top
Re: FLHook Plugin Request: Cargo Exchanger
Quite a regular
Joined:
2012/8/10 14:03
Group:
Registered Users
Posts: 136
Offline
To my knowledge there are FLhook plugins which already are able to do that.

Posted on: 7/31 16:44
Top
Re: FLHook Plugin Request: Cargo Exchanger
Not too shy to talk
Joined:
3/20 14:31
Group:
Registered Users
Posts: 59
Offline
Yes, the features I am after here are dotted around various plugins, unfortunately I lack the expertise.

I am good at a few scripting languages, batch, vbscript, html, css, php, a little javascript (still learning that) but that's about it.

Posted on: 7/31 18:50
Top
Re: FLHook Plugin Request: Cargo Exchanger
Not too shy to talk
Joined:
3/20 14:31
Group:
Registered Users
Posts: 59
Offline
Still interested in obtaining this plugin, if anyone is interested in earning a little cash for the work. I'd be happy to discuss it further in PM if anyone is willing.

Posted on: 8/5 21:24
Top