M6mal

Adding buyable items to trader salesmen

3 posts in this topic

i want to add the following to the Hardware Salesman at the traders

"Land_Sofa_01_F",
"Land_ArmChair_01_F",
"Land_OfficeChair_01_F",
"Land_ChairWood_F",
"Land_Sun_chair_green_F",
"Land_Sun_chair_F",
"Land_TableSmall_01_F",
"Land_TableDesk_F",
"Land_TableBig_01_F",
"OfficeTable_01_new_F",
"Land_WoodenTable_large_F",
"Land_Tablet_01_F",
"Land_PicnicTable_01_F",
"Land_FlatTV_01_F",
"Land_WaterCooler_01_new_F",
"Land_MedicalTent_01_white_IDAP_outer_F",
"Land_MedicalTent_01_white_IDAP_open_F",
"Land_TablePlastic_01_F",
"Land_ChairPlastic_F",
"Land_EntranceGate_01_narrow_F",

I added them to class section

Spoiler

class Land_Sofa_01_F                            { quality = 1; price = 250; };
class Land_ArmChair_01_F                        { quality = 1; price = 250; };
class Land_OfficeChair_01_F                     { quality = 1; price = 250; };
class Land_ChairWood_F                          { quality = 1; price = 250; };
class Land_Sun_chair_green_F                    { quality = 1; price = 250; };
class Land_Sun_chair_F                          { quality = 1; price = 250; };
class Land_TableSmall_01_F                      { quality = 1; price = 250; };
class Land_TableDesk_F                          { quality = 1; price = 250; };
class Land_TableBig_01_F                        { quality = 1; price = 250; };
class OfficeTable_01_new_F                      { quality = 1; price = 250; };
class Land_WoodenTable_large_F                  { quality = 1; price = 250; };
class Land_Tablet_01_F                          { quality = 1; price = 250; };
class Land_PicnicTable_01_F                     { quality = 1; price = 250; };
class Land_FlatTV_01_F                          { quality = 1; price = 250; };
class Land_WaterCooler_01_new_F                 { quality = 1; price = 250; };
class Land_MedicalTent_01_white_IDAP_outer_F    { quality = 1; price = 250; };
class Land_MedicalTent_01_white_IDAP_open_F     { quality = 1; price = 250; };
class B_MBT_01_cannon_F                         { quality = 1; price = 250; };
class Land_TablePlastic_01_F                    { quality = 1; price = 250; };
class Land_ChairPlastic_F                       { quality = 1; price = 250; };
class Land_EntranceGate_01_narrow_F             { quality = 1; price = 250; };

like above after ziptie

 

then i added the next lot after ziptie

Spoiler

"Land_Sofa_01_F",
"Land_ArmChair_01_F",
"Land_OfficeChair_01_F",
"Land_ChairWood_F",
"Land_Sun_chair_green_F",
"Land_Sun_chair_F",
"Land_TableSmall_01_F",
"Land_TableDesk_F",
"Land_TableBig_01_F",
"OfficeTable_01_new_F",
"Land_WoodenTable_large_F",
"Land_Tablet_01_F",
"Land_PicnicTable_01_F",
"Land_FlatTV_01_F",
"Land_WaterCooler_01_new_F",
"Land_MedicalTent_01_white_IDAP_outer_F",
"Land_MedicalTent_01_white_IDAP_open_F",
"Land_TablePlastic_01_F",
"Land_ChairPlastic_F",
"Land_EntranceGate_01_narrow_F"

i added a comma after ziptie and ommited the comma after my last entry

 

i then went on my server and went to the hardware guy and all the items were there and the test prices but no picture, i could purchase them and money would be deducted but when i looked in my inventory there was nothing.

 

Edited by M6mal

Share this post


Link to post
Share on other sites

@M6mal if you look at Extended Base Mod (and any other of the numerous Exile item mods out there), it uses mostly ARMA 3 assets and converts them to a usable item in Exile through some programming or configuration method. I suspect what you are trying to do (based upon the model names) is just use those base ARMA 3 components straight in the trader. I'm not sure if this is possible.

My understanding of how it all works at the back end is limited but based upon what I've seen, the ARMA 3 props have no ability to be interacted with from an inventory perspective and therefore it could not be placed in your inventory by the trader scripts. This is what EBM seems to do, provide all the config and conversion of the items to enable them to be interacted with, carried, placed etc.

Are you running Extended Base Mod?  Some of these item names sound very similar to what EBM has in it already, perhaps you just need to use the model names from EBM instead?

Share this post


Link to post
Share on other sites

i dont run EBM i just wanted buyable furniture limited at that, i will keep my eye open incase someone makes a mod or an easy script

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.