Woubie Posted January 30, 2014 Report Share Posted January 30, 2014 Hi everyone, i am wanting to add jets to the aircraft trader, how would i do so? Im new to scripting and ive looked around and couldnt find anything. Any help is appreciated. Link to comment Share on other sites More sharing options...
0 Defent Posted January 30, 2014 Report Share Posted January 30, 2014 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: 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 More sharing options...
0 hambeast Posted January 31, 2014 Report Share Posted January 31, 2014 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: 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 More sharing options...
0 Defent Posted January 31, 2014 Report Share Posted January 31, 2014 That's not true. You need to add items to to "traders_items" too. Otherwise traders won't have the items icons displayed correctly. Look here for an example: Link to comment Share on other sites More sharing options...
0 NightHâwk Posted February 3, 2014 Report Share Posted February 3, 2014 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 More sharing options...
Question
Woubie
Hi everyone, i am wanting to add jets to the aircraft trader, how would i do so? Im new to scripting and ive looked around and couldnt find anything.
Any help is appreciated.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now