Jump to content

Help- how do i add guns to traders?

Recommended Posts

Easiest way to do it..is download PrivateHiveTools ()

Download and install, then when inside...select the trader you want to tweak...Its easy...just click and add stuff to him.

Just make sure you get the classnames right...after that, restart your server and traders will have the extra weapons.


Check this demo out, to see how easy it is:


Share this post

Link to post
Share on other sites

Is there no there way I can do it so i can add the dmr, as50, m107? istead of private hive tools


Well you can do it from phpmyadmin or any other SQL editor....but its gonna be hard man.

Its gonna take you 15 min to figure what goes where (cause there are 3 tables you have to compare to find the trader, the category the item goes in, and add the item to that category)...and still not be sure if it worked or now.....with the php tool, you can add any item/vehicle you want in 30 sec.

Your call.

Share this post

Link to post
Share on other sites

Just run a SQL query :)

INSERT INTO traders_data (`item`, `qty`, `buy`, `sell`, `tid`, `afile`) VALUES ('["DMR_DZ",3]', 500, '[6,"ItemGoldBar10oz",1]', '[3,"ItemGoldBar10oz",1]', 477, 'trade_weapons');
INSERT INTO traders_data (`item`, `qty`, `buy`, `sell`, `tid`, `afile`) VALUES ('["DMR_DZ",3]', 500, '[6,"ItemGoldBar10oz",1]', '[3,"ItemGoldBar10oz",1]', 627, 'trade_weapons');
INSERT INTO traders_data (`item`, `qty`, `buy`, `sell`, `tid`, `afile`) VALUES ('["DMR_DZ",3]', 500, '[6,"ItemGoldBar10oz",1]', '[3,"ItemGoldBar10oz",1]', 487, 'trade_weapons');
INSERT INTO traders_data (`item`, `qty`, `buy`, `sell`, `tid`, `afile`) VALUES ('["DMR_DZ",3]', 500, '[4,"ItemGoldBar10oz",1]', '[3,"ItemGoldBar10oz",1]', 640, 'trade_weapons');

Share this post

Link to post
Share on other sites

Easiest way is to use config traders.



Enable config traders in the init.sqf, then edit the file you want.


Example black market dealer


class Category_526 {
class Saiga12K {type = "trade_weapons";buy[] ={20000,"Coins"};sell[] ={4000,"Coins"};};
class m8_compact {type = "trade_weapons";buy[] ={55000,"Coins"};sell[] ={15000,"Coins"};};
class m8_sharpshooter {type = "trade_weapons";buy[] ={55000,"Coins"};sell[] ={15000,"Coins"};};
class m8_holo_sd {type = "trade_weapons";buy[] ={55000,"Coins"};sell[] ={15000,"Coins"};};
class m8_carbine {type = "trade_weapons";buy[] ={55000,"Coins"};sell[] ={15000,"Coins"};};
class M24_des_EP1 {type = "trade_weapons";buy[] ={60000,"Coins"};sell[] ={20000,"Coins"};};
class VSS_vintorez {type = "trade_weapons";buy[] ={50000,"Coins"};sell[] ={15000,"Coins"};};
class SVD_des_EP1 {type = "trade_weapons";buy[] ={65000,"Coins"};sell[] ={20000,"Coins"};};
class SVD {type = "trade_weapons";buy[] ={65000,"Coins"};sell[] ={20000,"Coins"};};
class M8_SAW {type = "trade_weapons";buy[] ={57500,"Coins"};sell[] ={17500,"Coins"};};
class MG36 {type = "trade_weapons";buy[] ={57500,"Coins"};sell[] ={17500,"Coins"};};
class RPK_74 {type = "trade_weapons";buy[] ={57000,"Coins"};sell[] ={17500,"Coins"};};
class M60A4_EP1_DZE {type = "trade_weapons";buy[] ={58000,"Coins"};sell[] ={20000,"Coins"};};
class m240_scoped_EP1_DZE {type = "trade_weapons";buy[] ={58000,"Coins"};sell[] ={20000,"Coins"};};
class M249_m145_EP1_DZE {type = "trade_weapons";buy[] ={57500,"Coins"};sell[] ={20000,"Coins"};};
class MG36_camo {type = "trade_weapons";buy[] ={57500,"Coins"};sell[] ={20000,"Coins"};};
class bizon {type = "trade_weapons";buy[] ={25000,"Coins"};sell[] ={5000,"Coins"};};
class M4A1_HWS_GL_SD_Camo {type = "trade_weapons";buy[] ={55000,"Coins"};sell[] ={17500,"Coins"};};
class KSVK_DZE {type = "trade_weapons";buy[] ={110000,"Coins"};sell[] ={20000,"Coins"};};
class RPG7V {type = "trade_weapons";buy[] ={50000,"Coins"};sell[] ={20000,"Coins"};};
class Strela {type = "trade_weapons";buy[] ={200000,"Coins"};sell[] ={20000,"Coins"};};
class AA12_PMC {type = "trade_weapons";buy[] ={55000,"Coins"};sell[] ={20000,"Coins"};};
class AKS_74_NSPU {type = "trade_weapons";buy[] ={55000,"Coins"};sell[] ={20000,"Coins"};};
class AKS_74_pso {type = "trade_weapons";buy[] ={55000,"Coins"};sell[] ={20000,"Coins"};};
class SCAR_L_CQC_CCO_SD {type = "trade_weapons";buy[] ={75000,"Coins"};sell[] ={20000,"Coins"};};
class SCAR_L_CQC {type = "trade_weapons";buy[] ={55000,"Coins"};sell[] ={20000,"Coins"};};
class SCAR_L_CQC_Holo {type = "trade_weapons";buy[] ={55000,"Coins"};sell[] ={20000,"Coins"};};
class SCAR_L_CQC_EGLM_Holo {type = "trade_weapons";buy[] ={60000,"Coins"};sell[] ={20000,"Coins"};};
class SCAR_L_STD_EGLM_RCO {type = "trade_weapons";buy[] ={65000,"Coins"};sell[] ={20000,"Coins"};};
class SCAR_L_STD_HOLO {type = "trade_weapons";buy[] ={65000,"Coins"};sell[] ={20000,"Coins"};};
class SCAR_L_STD_Mk4CQT {type = "trade_weapons";buy[] ={65000,"Coins"};sell[] ={20000,"Coins"};};
class BAF_L86A2_ACOG {type = "trade_weapons";buy[] ={65000,"Coins"};sell[] ={20000,"Coins"};};
class SCAR_H_CQC_CCO {type = "trade_weapons";buy[] ={75000,"Coins"};sell[] ={20000,"Coins"};};
class SCAR_H_CQC_CCO_SD {type = "trade_weapons";buy[] ={85000,"Coins"};sell[] ={20000,"Coins"};};
class SCAR_H_STD_EGLM_Spect {type = "trade_weapons";buy[] ={85000,"Coins"};sell[] ={20000,"Coins"};};
class SCAR_H_LNG_Sniper {type = "trade_weapons";buy[] ={85000,"Coins"};sell[] ={20000,"Coins"};};
class DMR {type = "trade_weapons";buy[] ={85000,"Coins"};sell[] ={20000,"Coins"};};



To add another gun just copy a line, then replace the weapon classname, buy price and sell price.




class m107_TWS_EP1 {type = "trade_weapons";buy[] ={300000,"Coins"};sell[] ={100000,"Coins"};};

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Similar Content

    • By killerkiwi
      hello all i made this crafting menu a while back all this dose make crafting quicker and kinda easier and i left some buttons free to customise ect
      creddit to juandayz and theduke helping with some code and giving tips on arma 2 gui edditor
      you will need click action script to make this work
      this really easy to install got to you description.ext and add the two lines to the bottom
      #include "Stormz\menu\STORMZ_CRAFT_MENU_DEFINES.hpp"
      #include "Stormz\menu\STORMZ_CRAFT_MENU.hpp"
      Step two got to MPMissions\your instance folder\overwrites\click_actions\
      and open config.sqf add this line to DZE_CLICK_ACTIONS = [];
      ["ItemToolbox","Stormz Craft Menu","execVM 'Stormz\menu\open_menu.sqf';","true"]
      like this DZE_CLICK_ACTIONS = [["ItemToolbox","Stormz Craft Menu","execVM 'Stormz\menu\open_menu.sqf';","true"]];

      last thing to do is move the STORMZ folder to your instance folder and you are done have fun
      an image to see what it looks like

      big thanks to MigSDev5 for making this better this have more items and build houses builds heils ect here his is added code 
       his epoch profile Mig
    • By 2DayZ2Retirement
      G'day, Survivors.
      I am having an issue on my server where vehicles which spawn randomly around the map repair themselves upon server restart.
      I use this config in my init.sqf which successfully spawns the vehicles in damaged and with low fuel...
      DynamicVehicleDamageLow = 75;
      DynamicVehicleDamageHigh = 100;
      DynamicVehicleFuelLow = 0;
      DynamicVehicleFuelHigh = 25;
      ...However upon each server restart the vehicles repair themselves (the fuel remains low however) and for the life of me I can't figure out why this is happening. 
      DayZ Version -DayZ Epoch
      Scripts Used -DZAI | -DZMS | -Right Click Actions (Suicide, Smoke Drugs, GPS Scan)
      AntiHack - InfiSTAR
      Server Host - GTXGaming
      My HiveEXT.log and arma2oaserver.RPT logs are not showing anything out of the ordinary.
      I'm not sure if it matter, but all Planes/Helicopters and Boats have been removed from the server via the dynamic_vehicle.sqf.
      In addition, all of the traders and trader cities being removed by removing the call for the CfgServerTrader.hpp in the description.ext.
      If there is any other info I can show to assist in fixing this problem please let me know, any help would be greatly appreciated.
    • By rocalpha
      Bonjour, j’écris aujourd’hui parce que j’aimerais savoir si vous ne pourrez pas m'aider. Je loue un serveur via gportal et j’aimerais pouvoir être mon serveur en PvE, mais aussi créer des éléments de base pour la connexion et des choses simples comme . J'ai un autre problème lorsque j'achète une voiture chère à pied cela me met une flèche rouge puis rien non aucun véhicule il apparait qu'après un redémarrage du serveur
  • Advertisement
  • Supporters
  • Discord

  • Create New...