• 0
WD-40

R3F + DMS = Sell your crate at waste dump

Question

Posted (edited)

Hi,

I set R3F LOG up to load crates in vehicle. I want waste dump trader to see these crates as vehicles and to allow players to sell their items from crates directly. How to set up crate class as available to sell cargo from? 

Cheers

Edited by WD-40

Share this post


Link to post
Share on other sites

30 answers to this question

  • 0

Posted (edited)

I started looking at making some script changes to do this, but it's a slow process since most of R3F is in French. :( Lots of copy paste to Google translate..

Edited by ynpMOOSE

Share this post


Link to post
Share on other sites
Advertisement
  • 0

Posted (edited)

I dont think its R3F. I'd use crate as vehicle. Basically there should be a trader script that looks for the vehicle you just drove and looks into its cargo. I want to add script to look for crates in 50m radius and do the same. 

I just checked 

ExileServer_system_trading_network_wasteDumpRequest.sqf

But it doesnt seem to be useful here.

@Eichi clould you help?

Edited by WD-40
1 person likes this

Share this post


Link to post
Share on other sites
  • 0

The waste dump trader can only sell things that are local to the player. The crate has been spawned server-side and thus is not local to the client. 

It might be worth a try, but you could check if there is a vehicle local to the player and see if there is a crate in attachedObjects

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Wouldnt it be easier to modify R3F or write seperate script "drop" or "transfer" contents to vehicle?

Share this post


Link to post
Share on other sites
  • 0

Is it possible to omit vehicles capacity with such script?

Share this post


Link to post
Share on other sites
  • 0

I reckon you can override the normal wastedump, make a check at the trader, that objects within certain distance from trader will be selectable in the trader, but it sure would require some manual labour code to do this, because you want to make a check that is checking inventory of i.e. carried containers from R3F / IgiLoad. It's too much effort for me to make a script for this, but it is indeed possible. 

Share this post


Link to post
Share on other sites
  • 0

My initial thoughts were along the lines of Eichi's thinking. Do the regular check for nearby vehicles you drove, then check for contained creates, then get the items list from each crate. Then when the core scripts go though the item valuation, add the array of crate items to the regular vehicle inventory list for valuation.

Share this post


Link to post
Share on other sites
  • 0

I will put that onto our todo list. I think it makes sense to add the crates to le waste dump trader, too :)

11 people like this

Share this post


Link to post
Share on other sites
  • 0
4 minutes ago, Eichi said:

I will put that onto our todo list. I think it makes sense to add the crates to le waste dump trader, too :)

I'll talk with Qzen, our coder, and see if its ok to give you our working code for selling crates and get the correct amount of poptabs regardless if the crate was loaded in a vehicle or not. I totally forgot about it since we've been using this since october last year.

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.