NIkita Bel

Make some stuff saleable

9 posts in this topic

I just want to make rocket-launchers salable to trader.. (now its 'unsalable').

i added weapon classes to config.cpp

    class launch_NLAW_F                                { quality = 4; price = 2500; };   // PCML Launcher
    class NLAW_F                                    { quality = 4; price = 1500; };   // PCML Rocket
    class launch_RPG32_F                            { quality = 4; price = 2500; };   // RPG-42 Alamut
    class RPG32_HE_F                                { quality = 4; price = 1500; };   //  RPG-42 HE rocket
    class RPG32_F                                    { quality = 4; price = 1500; };   // RPG-42 rocket

in to the CfgExileArsenal class..

but those items still unsalable..  what do i need to do more? 

Share this post


Link to post
Share on other sites

Is there any solution for this ? Wow damn year without an answer....not bad ....

I have the same problem and would be nice if someone would have a good answer. In additional the launchers on my server are listed in shop but if you klick on buy botton you will only lose the money but launcher doesnt appear. 

Share this post


Link to post
Share on other sites
Advertisement

It is in "classCfgTraderCategories" :

Spoiler

class Explosives
    {
        name = "Explosives";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\cargothrow_ca.paa";
        items[] =
        {
            "HandGrenade",
            "MiniGrenade",
            "B_IR_Grenade",
            "O_IR_Grenade",
            "I_IR_Grenade",
            "1Rnd_HE_Grenade_shell",
            "3Rnd_HE_Grenade_shell",
            "APERSBoundingMine_Range_Mag",
            "APERSMine_Range_Mag",
            "APERSTripMine_Wire_Mag",
            "ClaymoreDirectionalMine_Remote_Mag",
            "DemoCharge_Remote_Mag",
            "IEDLandBig_Remote_Mag",
            "IEDLandSmall_Remote_Mag",
            "IEDUrbanBig_Remote_Mag",
            "IEDUrbanSmall_Remote_Mag",
            "SatchelCharge_Remote_Mag",
            "SLAMDirectionalMine_Wire_Mag",
            "launch_RPG7_F",
            "RPG7_F",
            "launch_B_Titan_tna_F",
            "launch_O_Titan_ghex_F",
            "launch_B_Titan_short_tna_F",
            "launch_O_Titan_short_ghex_F",
            "launch_RPG32_F",
            "launch_RPG32_ghex_F",
            "Titan_AA",
            "Titan_AT",
            "Titan_AP",
            "RPG32_F",
            "RPG32_HE_F"
        };
    };

That´s not the first iam adding to the shop. But launchers still unsalable. Found another Post for possible fixing the problem of buying. (here) Not sure about working, I will try it but it wont help me with problem with unsaleable. May it depending on class Explosives where I put it in ?

Share this post


Link to post
Share on other sites

I have put it in my CUP items and the names are for example:

"CUP_launch_RPG7V"

Maybe u try it that way :rock:

Share this post


Link to post
Share on other sites

We dont have CUP items on our server. I tried the additional script that I was talking about in my last post on my testserver. It seems to work. Not only the issue with launchers not given after buying also problem with unsaleable seems to be fixed with this. Not testet on mainserver yet but I think it should work. I will report here if mainserver - update is completed. Anyway thanks for your suggestion.

Share this post


Link to post
Share on other sites

The only way that the launchers will be un-saleable is if you havn't added them the the arsenal like so, and this is based on just exile

Spoiler

    ///////////////////////////////////////////////////////////////////////////////
    // Rocketlaunchers
    ///////////////////////////////////////////////////////////////////////////////    
    
    class launch_NLAW_F                             { quality = 1; price = 10000; sellPrice = 4000; };
    class launch_RPG32_F                            { quality = 1; price = 10000; sellPrice = 4000; };
    class launch_RPG7_F                             { quality = 1; price = 10000; sellPrice = 4000; };
    class launch_B_Titan_F                          { quality = 1; price = 10000; sellPrice = 4000; };
    class launch_I_Titan_F                          { quality = 1; price = 10000; sellPrice = 4000; };
    class launch_O_Titan_F                          { quality = 1; price = 10000; sellPrice = 4000; };
    class launch_Titan_F                            { quality = 1; price = 10000; sellPrice = 4000; };
    class launch_B_Titan_short_F                    { quality = 1; price = 10000; sellPrice = 4000; };
    class launch_I_Titan_short_F                    { quality = 1; price = 10000; sellPrice = 4000; };
    class launch_O_Titan_short_F                    { quality = 1; price = 10000; sellPrice = 4000; };
    class launch_Titan_short_F                      { quality = 1; price = 10000; sellPrice = 4000; };

    ///////////////////////////////////////////////////////////////////////////////
    // Rockets
    ///////////////////////////////////////////////////////////////////////////////
    
    class RPG32_F                                   { quality = 1; price = 5000; sellPrice = 2000; };
    class RPG32_HE_F                                { quality = 1; price = 5000; sellPrice = 2000; };
    class RPG7_F                                    { quality = 1; price = 5000; sellPrice = 2000; };   
    class NLAW_F                                    { quality = 1; price = 5000; sellPrice = 2000; };
    class Titan_AA                                  { quality = 1; price = 5000; sellPrice = 2000; };
    class Titan_AP                                  { quality = 1; price = 5000; sellPrice = 2000; };
    class Titan_AT                                  { quality = 1; price = 5000; sellPrice = 2000; };

    class RocketLauncher
    {
        name = "Rocket Launchers";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] = 
        {
            "launch_NLAW_F",
            "launch_RPG32_F",
            "launch_RPG7_F", 
            "launch_B_Titan_F",
            "launch_I_Titan_F",
            "launch_O_Titan_F",
            "launch_Titan_F",
            "launch_B_Titan_short_F",
            "launch_I_Titan_short_F",
            "launch_O_Titan_short_F",
            "launch_Titan_short_F"
        };
    };

    class RocketLauncherAmmo
    {
        name = "Rocket Launcher Ammo";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] = 
        {    
            "RPG32_F",
            "RPG32_HE_F",
            "RPG7_F",            
            "NLAW_F",
            "Titan_AA",
            "Titan_AP",
            "Titan_AT"
        };
    };

 

Edited by hogansheroes

Share this post


Link to post
Share on other sites

The script above works fine and unsaleable launchers were just not in list ....Now with the list of @hogansheroes I could complete it and everything is fine thanks.

Edited by fox-91

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.