WD-40 25 Report post Posted March 8, 2016 (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 March 8, 2016 by WD-40 Share this post Link to post Share on other sites
0 CH!LL3R 50 Report post Posted March 8, 2016 I am looking for this too... Share this post Link to post Share on other sites
0 ynpMOOSE 122 Report post Posted March 8, 2016 (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 March 8, 2016 by ynpMOOSE Share this post Link to post Share on other sites
0 WD-40 25 Report post Posted March 8, 2016 (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 March 9, 2016 by WD-40 1 Share this post Link to post Share on other sites
0 Eichi 4505 Report post Posted March 9, 2016 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 Share this post Link to post Share on other sites
0 [OMG]Slim 62 Report post Posted March 9, 2016 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 WD-40 25 Report post Posted March 10, 2016 Is it possible to omit vehicles capacity with such script? Share this post Link to post Share on other sites
0 ka0s 457 Report post Posted March 10, 2016 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 ynpMOOSE 122 Report post Posted March 10, 2016 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 Eichi 4505 Report post Posted March 10, 2016 I will put that onto our todo list. I think it makes sense to add the crates to le waste dump trader, too 11 Share this post Link to post Share on other sites
0 Mayhem Harry 3 Report post Posted March 10, 2016 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 Share this post Link to post Share on other sites
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-40Share this post
Link to post
Share on other sites