Jump to content
  • 0

Adding key maker kits to Vendors


raincloud

Question

I have added 

INSERT INTO `Traders_DATA` (`item`,`qty`,`buy`,`sell`,`order`,`tid`,`afile`) VALUES ('["ItemKeyKit",1]',10,'[4,"ItemGoldBar10oz",1]','[1,"ItemGoldBar",1]',0,510,'trade_items');

however when someone tries to buy it it gives the error

"no entry 'bin\config.bin/cfgMagazine.ItemKeyKit'"

How can I fix this?

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0
["ItemKeyKit",1]

You see that 1?

 

http://dayzepoch.com/wiki/index.php/Server_Configuration_Instructions#Adding_new_items_to_traders

 

I know it's no weapon either, but it needs to be changed to a 3.

 

That should fix your problem!

 

Changed ["ItemKeyKit",1] to ["ItemKeyKit",3] and I'm still getting the error. Was the KeyKit removed from the mod?

Link to comment
Share on other sites

  • 0

The keymakers kit is a tool, therefore classified as a weapon not an item.
Needs to be:
 

INSERT INTO `Traders_DATA` (`item`,`qty`,`buy`,`sell`,`order`,`tid`,`afile`) VALUES 

('["ItemKeyKit",3]',10,'[4,"ItemGoldBar10oz",1]','[1,"ItemGoldBar",1]',0,510,'trade_weapons');

trade_items is why you get the error, the keykit is not a "Magazine" item.

 

Also, it's important that you follow the classification bFe:

Weapons (+toolbelt) = 3
Vehicles and backpacks = 2
Magazines = 1

 

http://dayzepoch.com/wiki/index.php/Server_Configuration_Instructions#Adding_new_items_to_traders

Link to comment
Share on other sites

  • 0

Yes.

 

Use the following as a table for items types in the columns ItemBuy and Sell:

  • Weapons = 3
  • Vehicles and backpacks = 2
  • Magazines = 1
[...]

afile Use the following types each of these represent a different .sqf file that performs the work:

  • trade_items
  • trade_weapons
  • trade_any_vehicle
  • trade_any_boat
  • trade_backpacks
 

Read the guide! http://dayzepoch.com/wiki/index.php/Server_Configuration_Instructions#Adding_new_items_to_traders

Link to comment
Share on other sites

  • 0

The keymakers kit is a tool, therefore classified as a weapon not an item.

Needs to be:

 

INSERT INTO `Traders_DATA` (`item`,`qty`,`buy`,`sell`,`order`,`tid`,`afile`) VALUES 

('["ItemKeyKit",3]',10,'[4,"ItemGoldBar10oz",1]','[1,"ItemGoldBar",1]',0,510,'trade_weapons');

trade_items is why you get the error, the keykit is not a "Magazine" item.

 

Also, it's important that you follow the classification bFe:

Weapons (+toolbelt) = 3

Vehicles and backpacks = 2

Magazines = 1

 

http://dayzepoch.com/wiki/index.php/Server_Configuration_Instructions#Adding_new_items_to_traders

Ah, makes sense now, thank you for the post, it's working correctly now.

 

(I gotta quit doing this stuff when I'm half asleep)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...