• 0
Cantkillphantom

MarXet fix for server

Question

5 answers to this question

  • 0

not sure where you got your Marxet script

but the file should be named 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","_signs","_sign"];
_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;
[format["MarXet Traders have been placed. Trader count: %1. Map: %2",(count(_traders)),worldName],"Client Traders"] call ExileClient_MarXet_util_log;

 

and edit MarXet_Init.sqf

if (MarXetLoaded) then
{
    [] execVM "MarXet\MarXet _Traiders.sqf";
{

to

if (MarXetLoaded) then
{
    [] execVM "MarXet\MarXet_Traders.sqf";
{

https://github.com/secondcoming/MarXet

Edited by tinboye
  • Like 3

Share this post


Link to post
Share on other sites
  • 0

excuse me
I had good trader and not traider
It is the translation that adds an i

thank you. I left the capital letter at the beginning of the map name.

Edited by LangeBlonds

Share this post


Link to post
Share on other sites
Advertisement
  • 0

Hello everbody,

First i am sorry about this question, i just need help to understand.

I am trying to insert a marxet place script in my server, i did all README instructions, but i cant find the market on the map, someone can help me please?

Share this post


Link to post
Share on other sites
  • 0

got an issue with Marxet, all seems ok can sell items fine to the trader but when players click on the item to buy it the Purchase button does not light up/work.  

 

Thanks

Share this post


Link to post
Share on other sites
  • 0
On 5.11.2017 at 11:23 AM, Razor77 said:

got an issue with Marxet, all seems ok can sell items fine to the trader but when players click on the item to buy it the Purchase button does not light up/work.  

 

Thanks

i got the same problem. can someone help out?

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.