Jump to content
  • 0

Icons for new trader items


BetterDeadThanZed

Question

Today I added the rare drink items to a trader. Items such as Beer, or the rare sodas sometimes found on the DZAI are in the list. When you go to this trader, these rare items have no icons in the list of items, and when you buy one, it says you bought "1 for 3 gold" (It doesn't tell you what you bought 1 of...)

 

How can I get the icons to display and fix it to tell you what you bought?

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

add the item to trader_items and they will show up

 

Yeah, that's what I posted above your response...

 

However, it didn't work. The items are in trader_items and still no icons. I wonder if there are no icons for the items I added. Anyone know where I'd look to see if icons exist for these items?

Link to comment
Share on other sites

  • 0

in player_traderMenuConfig, the dialog gets its image using this bit of code:

 

 

Which means that the item should have the picture variable set to an .paa file.

 

Seeing as your items (the rare drinks) also seem to have the picture set, I don't see why it wouldn't show.

Not sure if this is any help.

 

Yeah, I saw that and the icons should show but they don't. Just the classnames listed in the trader menu with no pictures.

Link to comment
Share on other sites

  • 0

 

 

Use the following as a table for items types in the columns Item, Buy 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

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

('["20Rnd_762x51_B_SCAR",1]', 15, '[3,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]', 480, 'trade_items');

('["pook_H13_gunship",2]', 15, '[1,"ItemGoldBar10oz",1]', '[1,"ItemGoldBar10oz",1]', 519, 'trade_any_vehicle'); 

('["AKS_GOLD",3]', 5, '[1,"ItemGoldBar10oz",1]', '[5,"ItemGoldBar",1]', 602, 'trade_weapons');

Link to comment
Share on other sites

  • 0

make sure when you added them into Trader_Items you had the the item # correct like above  

those would be items so they need the 1 after the name

('["xxxRare_Drink_Whatever",1]', 15, '[3,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]', 480, 'trade_items');

 

Just explaining the above post a bit.  Hope this helps

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

×
×
  • Create New...