Jump to content

V 0.3.0.1 Trader file layout


Metalfoundry

Recommended Posts

 

Make a new file in your mission file called CfgPricing.hpp

 

Copy the pricing from the client files, it looks like this

class CfgPricing
{		
	class ChainSaw
	{
		price = 125;
	};
};

etc etc 

Then you have to put this at the bottom of description.ext in your mission file

#include "CfgPricing.hpp"

when i use that at the bottom my server starting not???

Link to comment
Share on other sites

How can i define, which items will be selled by Trader A, Trader B or Trader C ?

 

example:

 

Trader A sells only 5 weapons

 

Trader B sells only Helis

 

Can't really do that right now. You would need a lot of custom stuff to make it like that, but I know it can be done as CCG has that type of system. 

Link to comment
Share on other sites

hi I'm having trouble here, do I add it like this

class CfgEpochClient

{

buildingNearbyMilitary = 0; //1 to allow building nearby

buildingNearbyMilitaryRange = 300; //Define radius of blocked area

buildingRequireJammer = 0; // 1 = to allow building without a jammer

buildingCountLimit = 200; // how many objects can be built within range of a jammer

buildingJammerRange = 75; // jammer range in meters

#include "CfgPricing.hpp"

};

or like this

class CfgPricing

{

#include "CfgPricing.hpp"

};

well iv tried both I think I am wrong any help would be great, thanks.

Link to comment
Share on other sites

hi I'm having trouble here, do I add it like thisclass CfgEpochClient{buildingNearbyMilitary = 0; //1 to allow building nearbybuildingNearbyMilitaryRange = 300; //Define radius of blocked areabuildingRequireJammer = 0; // 1 = to allow building without a jammerbuildingCountLimit = 200; // how many objects can be built within range of a jammerbuildingJammerRange = 75; // jammer range in meters#include "CfgPricing.hpp"};or like thisclass CfgPricing{#include "CfgPricing.hpp"};well iv tried both I think I am wrong any help would be great, thanks.

Just add #include "CfgPricing.hpp" to the very top of your description.ext above Author.

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...