Jump to content
  • 0

How to add jets to traders?


Woubie

Question

4 answers to this question

Recommended Posts

  • 0

First we add it in to the traders_item.

INSERT INTO `trader_items` (`classname`, `type`, `group`, `afile`) VALUES ('Su25_Ins', '2', 'Plane', 'trade_any_vehicle');

Then we add it to the traders_data and change the price to what ever we want:

INSERT INTO `traders_data` (`item`, `qty`, `buy`, `sell`, `order`, `tid`, `afile`) VALUES ('[\"Su25_Ins\",2]', '10', '[5,\"ItemGoldBar\",1]', '[3,\"ItemGoldBar\",1]', '0', '519', 'trade_any_vehicle');

To change the price, modify the ItemGoldBar value and the number BEFORE it. In this case, the 5.

So this plane would cost 5 REGULAR goldbars and sell for 3.
 

Example price:

The C130J costs: ​[4,"ItemBriefcase100oz",1]. 
This mean it costs 4 times 100oz Breifcases. The number 1 at the end ",1] tells the database and game that the goldbar is just an item and not a vehicle. It can be ignored for now.

If you'd want to change it to costing regular 10oz bars then add this instead: [2,"ItemGoldBar10oz",1] I.e 2x10oz Goldbars.

Note:

It's the same for the selling price.

 

Su25_Ins:

230px-Ofp_su25.jpg

 

This should work.


Edit:
Here is a list of the class names for most Arma 2 vehicles. 

 

http://community.bistudio.com/wiki/ArmA_2:_CfgVehicles

Link to comment
Share on other sites

  • 0

First we add it in to the traders_item.

INSERT INTO `trader_items` (`classname`, `type`, `group`, `afile`) VALUES ('Su25_Ins', '2', 'Plane', 'trade_any_vehicle');

Then we add it to the traders_data and change the price to what ever we want:

INSERT INTO `traders_data` (`item`, `qty`, `buy`, `sell`, `order`, `tid`, `afile`) VALUES ('[\"Su25_Ins\",2]', '10', '[5,\"ItemGoldBar\",1]', '[3,\"ItemGoldBar\",1]', '0', '519', 'trade_any_vehicle');

To change the price, modify the ItemGoldBar value and the number BEFORE it. In this case, the 5.

So this plane would cost 5 REGULAR goldbars and sell for 3.

 

Example price:

The C130J costs: ​[4,"ItemBriefcase100oz",1]. 

This mean it costs 4 times 100oz Breifcases. The number 1 at the end ",1] tells the database and game that the goldbar is just an item and not a vehicle. It can be ignored for now.

If you'd want to change it to costing regular 10oz bars then add this instead: [2,"ItemGoldBar10oz",1] I.e 2x10oz Goldbars.

Note:

It's the same for the selling price.

 

Su25_Ins:

230px-Ofp_su25.jpg

 

This should work.

Edit:

Here is a list of the class names for most Arma 2 vehicles. 

 

http://community.bistudio.com/wiki/ArmA_2:_CfgVehicles

 

pretty sure that the table "traders_item" is only for the trader web tool.  So if you don't use that, you can skip that line.

 

Also be careful with adding vehicles specifically tanks.  Even lightly armored ones, if they are in the cfgVehicles class "tank" then they will not update when gear is removed from them.  You can work around this issue, here is a thread I posted regarding this info: 

Link to comment
Share on other sites

  • 0

Lol, making something so simple sound hard.

 

If all you want to do is add something to a trader all you have to do is go into traders_data and add it in..

 

make sure you have the right afile etc.

 

look at other items/vehicles as an example.

 

To add a aircraft just find any air vehicle duplicate the row change the name to the jet you want, change id so it is not a duplicate id, it is that simple

 

And pictures/icons display just fine without any need of the traders_items change suggested by Defenting.

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