Jump to content
  • 0

How to add things to traders.


DarkWolf

Question

3 answers to this question

Recommended Posts

  • 0

dayz.st you need to add the item to the traders items just make sure you use the correct id for example mine is 

777 CinderBlocks 1 Building Supplies trade_items

starting from the item id (make sure you use one that's not in use) then its the class name, item type, group and finally alfie 

and then you need to add it to the traders data table for example mine;

7376 ["CinderBlocks",1] 200 [2,"ItemGoldBar",1] [1,"ItemGoldBar",1] 0 508

trade_items

 

this means item id, class name must be placed in that format (1 being defining that its an item not a car or gun etc) 200 is what i have my quantity set to then its buy price [amount,"currency",1 (defining it as an item)] sell price is the same set up as buy price, leave the 0 as it is 508 is the trader id of the traders you want to sell it too you can find this by checking for other building supplies in your trader data (just look for another building item i.e vault and check the ids that sell it (ctrl+f to search) and finally the alfie again

 

this is how mine is set up and it works mine just change the item id as you cant have the same id twice so if you want these at 3 traders you would need 3 separate id's and change the trader id to whichever one you want, you can simply change the cinder blocks for mortar buckets by using the above method and just changing the id and  classname or you can add almost everything just make sure you use the correct class name

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