Jump to content
  • 0

Adding Epoch Trader Tabs


jacobpslagle

Question

Okay so I am currently adding tabs to some of my traders for the most part it all makes sense, but I have ran into one problem, but first here is what i have done:

 

  • First I went into C:\ArmaServers\A2EpochServer\MPMissions\DayZ_Epoch_24.Napf\server_traders.sqf
  • I have added two tabs to the hero vender ["Sniper Rifles"] and ["Sniper Rifle Ammunition"] Here is the code:
// Hero Vendor
menu_Tanny_PMC = [
    [["Ammunition",478],["Clothes",476],["Helicopter Armed",493],["Military Armed",562],["Trucks Armed",479],["Weapons",477],["Sniper Rifles",800],["Sniper Rifle Ammunition",801]],
    [],
    "hero"
  • I have add two TID' 800 & 801
  • Next I went into my database and added two TID's to trader_tids
  • I assigned them to trader 143 which is the hero vender. All good so far.
  • Next i added some items to those tabs.
  • The tabs show up just fine, but nothing in them appears.
  • Did i forget a step? Can anyone help me
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Database Entries:

 

TID 800

 

  • In the database in table server_traders i found the Trader ID for the hero vender.
  • After that i added my new TID for the first tab. Here is that SQL

INSERT INTO `dayz_epoch`.`trader_tids` (`id`, `name`, `trader`) VALUES ('800', 'Sniper Rifles', '143')
  • Then I added a Sniper to that Tab here is the SQL
INSERT INTO `dayz_epoch`.`traders_data` (`id`, `item`, `qty`, `buy`, `sell`, `order`, `tid`, `afile`) VALUES (NULL, 'M107', '5', '[4,"ItemGoldBar",1]', '[2,"ItemGoldBar",1]', '0', '800', 'trade_weapons')
  • Then i added an Sniper Rifle Ammunition Tab
INSERT INTO `dayz_epoch`.`trader_tids` (`id`, `name`, `trader`) VALUES ('801', 'Sniper Rifle Ammunition', '143')
  • And last but not least I added some ammo for the M107
INSERT INTO `dayz_epoch`.`traders_data` (`id`, `item`, `qty`, `buy`, `sell`, `order`, `tid`, `afile`) VALUES (NULL, '10Rnd_127x99_m107', '20', '[1,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]', '0', '801', 'trade_items')
  • Like I said my tabs show up just fine, but when I click on them nothing loads in. Those are the my SQL inserts that I did.
Link to comment
Share on other sites

  • 0

I use this format to insert items

 

INSERT INTO `traders_data` (`item`,`qty`,`buy`,`sell`,`order`,`tid`,`afile`) VALUES ('["1Rnd_HE_M203",1]',10,'[4,"ItemGoldBar",1]','[2,"ItemGoldBar",1]',0,60,'trade_items') not sure if the id and null values possibly throwing it off?

Link to comment
Share on other sites

  • 0

here try this query it should work :)

 

INSERT INTO `traders_data` (`id`, `item`, `qty`, `buy`, `sell`, `order`, `tid`, `afile`) VALUES
(NULL, '["M107",3]', 5, '[4,"ItemGoldBar",1]', '[2,"ItemGoldBar",1]', 0, 800, 'trade_weapons'),
(NULL, '["10Rnd_127x99_m107",1]', 20, '[1,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]', 0, 801, 'trade_items');

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

×
×
  • Create New...