Pakus Posted June 5, 2022 Report Share Posted June 5, 2022 Hi guys I am adding a new category of weapons in the trader and I have a problem. First I have defined the components of the category in weapons.hpp. class Category_80 { class Igla {type = "trade_weapons";buy[] = {10000,"worth"};sell[] = {6000,"worth"};}; class Stinger {type = "trade_weapons";buy[] = {10000,"worth"};sell[] = {6000,"worth"};}; class Strela {type = "trade_weapons";buy[] = {10000,"worth"};sell[] = {6000,"worth"};}; class Javelin {type = "trade_weapons";buy[] = {10000,"worth"};sell[] = {6000,"worth"};}; class M136 {type = "trade_weapons";buy[] = {5000,"worth"};sell[] = {2000,"worth"};}; class RPG18 {type = "trade_weapons";buy[] = {5000,"worth"};sell[] = {2000,"worth"};}; class RPG7V {type = "trade_weapons";buy[] = {5000,"worth"};sell[] = {2000,"worth"};}; }; Then I added the category to the corresponding seller in chernarus11.sqf: /***************Weapons*********/ menu_Sniper1_DZ = [ [[localize "STR_EPOCH_TRADER_CATEGORY_AAAT",80],[localize "STR_EPOCH_TRADER_CATEGORY_ATTACHMENTS",12],[localize "STR_EPOCH_TRADER_CATEGORY_PISTOLS",13],[localize "STR_EPOCH_TRADER_CATEGORY_SUBMACHINEGUNS",14],[localize "STR_EPOCH_TRADER_CATEGORY_SINGLESHOT",15],[localize "STR_EPOCH_TRADER_CATEGORY_ASSAULTRIFLES",16],[localize "STR_EPOCH_TRADER_CATEGORY_SNIPERRIFLES",17],[localize "STR_EPOCH_TRADER_CATEGORY_LIGHTMACHINEGUNS",18]], [], "neutral" ]; Everything works, the weapons can be bought, but in the trader menu the category appears without a name, empty. I need to define the category somewhere, right? but I can't find where after a couple of hours. can you help me please? Link to comment Share on other sites More sharing options...
Crude Posted June 5, 2022 Report Share Posted June 5, 2022 Replace the localize "STR_EPOCH_TRADER_CATEGORY_AAAT" with "TEXT" or you need to add it to a custom stringtable Regards Graham Link to comment Share on other sites More sharing options...
Pakus Posted June 6, 2022 Author Report Share Posted June 6, 2022 Right on target, thank you very much Graham, I owe you a beer. The solution is as simple as adding a new package to stringtable.xml, and adding as many categories as you like. <Package name="CUSTOM"> <Key ID="STR_CUSTOM_AA"> <English>AA Weapon</English> <French>AA Arme</French> <German>AA Wafe</German> <Russian>зенитный пистолет</Russian> <Spanish>Armas Antiaereas</Spanish> </Key> ... </Package> It works perfect, you're a crack Graham. Regards Fran P.S. For beer you will have to come on vacation to Spain :) Link to comment Share on other sites More sharing options...
Crude Posted June 6, 2022 Report Share Posted June 6, 2022 Happy i could help mate. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now