• 0
Sign in to follow this  
Prophayne

Help understanding a config

Question

(Sorry if this is the wrong place, the original thread was missing when I searched)

Hi! I have a script I've been using on altis works great, but we are opening a taunus server now and I was wondering if anyone could help me figure out what I'm doing wrong converting the associated trader config to the new map. The script is called Marxet and it adds a black market to the server for players to trade things with one another. 

This is the original marxet_traders.sqf: 

Spoiler

/*
*
*  MarXet_Traders.sqf
*  Author: WolfkillArcadia
*  © 2016 Arcas Industries
*  This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*  To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
*/
private["_traders","_trader"];
_traders = [];
switch (toLower worldName) do {
    case "altis":
    {
        //////////////////////////////////////////////////////////
        //             Airport MarXet Trader
        //////////////////////////////////////////////////////////
        _trader =
        [
            "Exile_Cutscene_Prisoner01",
            "GreekHead_A3_01",
            ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
            [14579.1,16755.5,0.126438],
            38.0894
        ]
        call ExileClient_object_trader_create;

        _traders pushBack _trader;

        //////////////////////////////////////////////////////////
        //             West MarXet Trader
        //////////////////////////////////////////////////////////
        _trader =
        [
            "Exile_Cutscene_Prisoner01",
            "GreekHead_A3_01",
            ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
            [2988.63,18152.7,0.381263],
            113.04
        ]
        call ExileClient_object_trader_create;

        _traders pushBack _trader;

        //////////////////////////////////////////////////////////
        //             Northern MarXet Trader
        ////////////////////////////////////////////////////////////
        _trader =
        [
            "Exile_Cutscene_Prisoner01",
            "GreekHead_A3_01",
            ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
            [23333.5,24202.9,0.00140905],
            332.571
        ]
        call ExileClient_object_trader_create;

        _traders pushBack _trader;

        private ["_signs"];
        _signs = [
            ["Exile_Sign_Armory",[14577.6,16755.7,0],225.798,[[-0.716886,-0.69719,0],[-0,0,1]],false],
            ["Exile_Sign_Armory",[2986.82,18151.3,0.237748],294.574,[[-0.909421,0.415876,0],[0,0,1]],false],
            ["Exile_Sign_Armory",[23334.3,24201.4,-0.221748],181.915,[[-0.0334147,-0.999442,0],[-0,0,1]],false]
        ];

        {
            private ["_sign"];
            _sign = createVehicle [_x select 0, [0,0,0], [], 0, ""];
            _sign enableSimulationGlobal false;
            _sign setObjectTextureGlobal [0, "MarXet\images\MarXet_Sign.jpg"];
            if (_x select 4) then {
                _sign setDir (_x select 2);
                _sign setPos (_x select 1);
            } else {
                _sign setPosATL (_x select 1);
                _sign setVectorDirAndUp (_x select 3);
            };
        } foreach _signs;

    };
    case "namalsk":
    {
        //////////////////////////////////////////////////////////
        //             Sebjan Mine MarXet Trader
        //////////////////////////////////////////////////////////
        _trader =
        [
            "Exile_Cutscene_Prisoner01",
            "GreekHead_A3_01",
            ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
            [5012.31,8011.31,4.12741],
            93.9074
        ]
        call ExileClient_object_trader_create;

        _traders pushBack _trader;

        //////////////////////////////////////////////////////////
        //             Northern Boat MarXet Trader
        //////////////////////////////////////////////////////////
        _trader =
        [
            "Exile_Cutscene_Prisoner01",
            "GreekHead_A3_01",
            ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
            [9131.12,10084.1,7.10316],
            208.937
        ]
        call ExileClient_object_trader_create;

        _traders pushBack _trader;

        //////////////////////////////////////////////////////////
        //             Southern Boat MarXet Trader
        //////////////////////////////////////////////////////////
        _trader =
        [
            "Exile_Cutscene_Prisoner01",
            "GreekHead_A3_01",
            ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
            [4353.53,4743.87,0.00144696],
            50.5659
        ]
        call ExileClient_object_trader_create;

        _traders pushBack _trader;

        private ["_signs"];
        _signs = [
            ["Exile_Sign_Armory",[5017.71,8022.81,0],142.021,[[0.615369,-0.788239,0],[0,-0,1]],false],
            ["Exile_Sign_Armory",[9113.17,10095.6,0.15098],83.7766,[[0.994107,0.108405,0],[0,0,1]],false],
            ["Exile_Sign_Armory",[4353.01,4742.62,0],226.596,[[-0.726524,-0.687141,0],[-0,0,1]],false]
        ];

        {
            private ["_sign"];
            _sign = createVehicle [_x select 0, [0,0,0], [], 0, ""];
            _sign enableSimulationGlobal false;
            _sign setObjectTextureGlobal [0, "MarXet\images\MarXet_Sign.jpg"];
            if (_x select 4) then {
                _sign setDir (_x select 2);
                _sign setPos (_x select 1);
            } else {
                _sign setPosATL (_x select 1);
                _sign setVectorDirAndUp (_x select 3);
            };
        } foreach _signs;

    };
};

{
    _x forceAddUniform "U_BG_Guerilla2_1";
    _x addVest "Exile_Vest_Snow";
    _x addHeadgear "H_Watchcap_blk";
    _x addGoggles "G_Bandanna_aviator";
    _x addWeapon "srifle_DMR_04_F";
    _x addPrimaryWeaponItem "optic_LRPS";
    _x addWeapon "hgun_ACPC2_F";
    _x addAction ["<img image='\a3\ui_f\data\IGUI\Cfg\Actions\reammo_ca.paa' size='1' shadow='false' />Access MarXet","createDialog 'RscMarXetDialog'","",1,false,true,"","((position player) distance _target) <= 4"];
} forEach _traders;
 

And this is my edited version:

Spoiler

/*
*
*  MarXet_Traders.sqf
*  Author: WolfkillArcadia
*  © 2016 Arcas Industries
*  This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*  To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
*/
private["_traders","_trader"];
_traders = [];
switch (toLower worldName) do {
    case "xcam_taunus":
    {
        //////////////////////////////////////////////////////////
        //             Airport MarXet Trader
        //////////////////////////////////////////////////////////
        _trader =
        [
            "Exile_Cutscene_Prisoner01",
            "GreekHead_A3_01",
            ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
            [10910.9,7194.47,1.08519],
            0
        ]
        call ExileClient_object_trader_create;

        _traders pushBack _trader;

        //////////////////////////////////////////////////////////
        //             West MarXet Trader
        //////////////////////////////////////////////////////////
        _trader =
        [
            "Exile_Cutscene_Prisoner01",
            "GreekHead_A3_01",
            ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
            [9780.19,20207.6,0.0055542],
            356.987
        ]
        call ExileClient_object_trader_create;

        _traders pushBack _trader;

        private ["_signs"];
        _signs = [
            ["Exile_Sign_Armory",[10908.6,7193.08,0],249.154,[[0.929447,0.368956,0],[-0,0,1]],false],
            ["Exile_Sign_Armory",[9780.3,20206.7,0],355.221,[[0.0723532,-0.997379,0],[0,0,1]],false]
        ];

        {
            private ["_sign"];
            _sign = createVehicle [_x select 0, [0,0,0], [], 0, ""];
            _sign enableSimulationGlobal false;
            _sign setObjectTextureGlobal [0, "MarXet\images\MarXet_Sign.jpg"];
            if (_x select 4) then {
                _sign setDir (_x select 2);
                _sign setPos (_x select 1);
            } else {
                _sign setPosATL (_x select 1);
                _sign setVectorDirAndUp (_x select 3);
            };
        } foreach _signs;

    };
};

{
    _x forceAddUniform "U_BG_Guerilla2_1";
    _x addVest "Exile_Vest_Snow";
    _x addHeadgear "H_Watchcap_blk";
    _x addGoggles "G_Bandanna_aviator";
    _x addWeapon "srifle_DMR_04_F";
    _x addPrimaryWeaponItem "optic_LRPS";
    _x addWeapon "hgun_ACPC2_F";
    _x addAction ["<img image='\a3\ui_f\data\IGUI\Cfg\Actions\reammo_ca.paa' size='1' shadow='false' />Access MarXet","createDialog 'RscMarXetDialog'","",1,false,true,"","((position player) distance _target) <= 4"];
} forEach _traders;
 

Any and all help is appreciated! 

 

Share this post


Link to post
Share on other sites

1 answer to this question

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.