• 0
Seal

Exile_Trader_CommunityCustoms

Question

So i've taken a gander around the forums, and so far i have found nothing pertaining to what i'm trying to accomplish. 

what i'm trying to accomplish is selling specific items to the Exile_Trader_CommunityCustoms and only him not every trader on the map.

i added my Items to the "Class CfgTraderArsenal"

     ///////////////////////////////////////////////////////////////////////////////
    // Custom Items for Arsenal
   ///////////////////////////////////////////////////////////////////////////////
    class custom_item_1                      { quality = 1; price = 20000; sellPrice = 2000; };
    class custom_item_2                      { quality = 1; price = 20000; sellPrice = 3000; };
    class custom_item_3                      { quality = 1; price = 20000; sellPrice = 1000; };
    class custom_item_4                      { quality = 1; price = 20000; sellPrice = 2000; };

and i linked the "CfgTradercategories"

class CfgTraderCategories
{
    class Community
    {
        name = "Community Items";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\uniform_ca.paa";
        items[] =
        {
            "Community",
            "custom_item_1",
            "custom_item_2",
            "custom_item_3",
            "custom_item_4"
        };
    };

And last but not least i linked class Exile_Trader_CommunityCustoms

/**
     * Sells Community Items
     */ 
    class Exile_Trader_CommunityCustoms
    {
        name = "COMMUNITY";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Community",
            "custom_item_1",
            "custom_item_2",
            "custom_item_3",
            "custom_item_4"
        };
    };

so if i'm missing anything here please let me know i'd appreciate any help.

-Seal

Share this post


Link to post
Share on other sites

6 answers to this question

  • 0

Everything above is only to setup buy only from a specific trader, not to sell only. I would think to accomplish this you would need to do some rewrites of the Exile base code.

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, Beowulfv said:

Everything above is only to setup buy only from a specific trader, not to sell only. I would think to accomplish this you would need to do some rewrites of the Exile base code.

so with that being said, am i able to Edit the base code for Exile? or will that just get me in loads of trouble:bandit: lol. also if you know where the licenses are please link them. 

Share this post


Link to post
Share on other sites
Advertisement
  • 0
58 minutes ago, Seal said:

am i able to Edit the base code for Exile?

Of course you can. That's how mods work. You would need to create an overwrite for the file you are editing though. Only other solution would be forcing people do download an edited version of the base mod to join your server.

  • Like 1

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.