SHARE
TWEET

Untitled

a guest Jun 20th, 2017 157 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. *
  3. *  MarXet_Traders.sqf
  4. *  Author: WolfkillArcadia
  5. *  © 2016 Arcas Industries
  6. *  This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
  7. *  To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
  8. */
  9. private["_traders","_trader","_signs","_sign"];
  10. _traders = [];
  11. switch (toLower worldName) do {
  12.     case "altis":
  13.     {
  14.         //////////////////////////////////////////////////////////
  15.         //          MarXet Trader(Safezone)
  16.         //////////////////////////////////////////////////////////
  17.         _trader =
  18.         [
  19.             "Exile_Cutscene_Prisoner01",
  20.             "",
  21.             "GreekHead_A3_01",
  22.             ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
  23.             [9009.3,21490.8,0.5],
  24.             38.0894
  25.         ]
  26.         call ExileClient_object_trader_create;
  27.         _traders pushBack _trader;
  28.         //////////////////////////////////////////////////////////
  29.         //           Pirate Trader
  30.         //////////////////////////////////////////////////////////
  31.         _trader =
  32.         [
  33.             "Exile_Cutscene_Prisoner01",
  34.             "",
  35.             "GreekHead_A3_01",
  36.             ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
  37.             [13417.8,11892.8,0],
  38.             113.04
  39.         ]
  40.         call ExileClient_object_trader_create;
  41.         _traders pushBack _trader;
  42.         //////////////////////////////////////////////////////////
  43.         //          Bandit Trader
  44.         //////////////////////////////////////////////////////////
  45.         _trader =
  46.         [
  47.             "Exile_Cutscene_Prisoner01",
  48.             "",
  49.             "GreekHead_A3_01",
  50.             ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
  51.             [20887.9,14616.9,0],
  52.             332.571
  53.         ]
  54.         call ExileClient_object_trader_create;
  55.         _traders pushBack _trader;
  56.         private ["_signs"];
  57.         _signs = [
  58.             ["Exile_Sign_Armory",[14577.6,16755.7,0],225.798,[[-0.716886,-0.69719,0],[-0,0,1]],false],
  59.             ["Exile_Sign_Armory",[2986.82,18151.3,0.237748],294.574,[[-0.909421,0.415876,0],[0,0,1]],false],
  60.             ["Exile_Sign_Armory",[23334.3,24201.4,-0.221748],181.915,[[-0.0334147,-0.999442,0],[-0,0,1]],false]
  61.         ];
  62.         {
  63.             private ["_sign"];
  64.             _sign = createVehicle [_x select 0, [0,0,0], [], 0, ""];
  65.             _sign enableSimulationGlobal false;
  66.             _sign setObjectTextureGlobal [0, "MarXet\images\MarXet_Sign.jpg"];
  67.             if (_x select 4) then {
  68.                 _sign setDir (_x select 2);
  69.                 _sign setPos (_x select 1);
  70.             } else {
  71.                 _sign setPosATL (_x select 1);
  72.                 _sign setVectorDirAndUp (_x select 3);
  73.             };
  74.         } foreach _signs;
  75.     };
  76.  
  77.     // Thanks to John Lemon for these.
  78.     case "tanoa":
  79.     {
  80.         //////////////////////////////////////////////////////////
  81.         //             East MarXet Trader
  82.         //////////////////////////////////////////////////////////
  83.         _trader =
  84.         [
  85.             "Exile_Cutscene_Prisoner01",
  86.             "",
  87.             "GreekHead_A3_01",
  88.             ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
  89.             [12187.9,8115.48,0],
  90.             60
  91.         ]
  92.  
  93.  
  94.         call ExileClient_object_trader_create;
  95.         _traders pushBack _trader;
  96.         //////////////////////////////////////////////////////////
  97.         //             West MarXet Trader
  98.         //////////////////////////////////////////////////////////
  99.         _trader =
  100.         [
  101.             "Exile_Cutscene_Prisoner01",
  102.             "",
  103.             "GreekHead_A3_01",
  104.             ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
  105.             [2271.38,8586.25,0],
  106.             310
  107.         ]
  108.  
  109.  
  110.         call ExileClient_object_trader_create;
  111.         _traders pushBack _trader;
  112.  
  113.  
  114.            //////////////////////////////////////////////////////////
  115.         //             South MarXet Trader
  116.         //////////////////////////////////////////////////////////
  117.         _trader =
  118.         [
  119.             "Exile_Cutscene_Prisoner01",
  120.             "",
  121.             "GreekHead_A3_01",
  122.             ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
  123.             [11773.9,4131.5,0],
  124.             261
  125.         ]
  126.  
  127.         call ExileClient_object_trader_create;
  128.         _traders pushBack _trader;
  129.  
  130.  
  131.         //////////////////////////////////////////////////////////
  132.         //             North MarXet Trader
  133.         //////////////////////////////////////////////////////////
  134.         _trader =
  135.         [
  136.             "Exile_Cutscene_Prisoner01",
  137.             "",
  138.             "GreekHead_A3_01",
  139.             ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
  140.             [7973.27,12401.8,0],
  141.             40
  142.  
  143.  
  144.  
  145.         ]
  146.         call ExileClient_object_trader_create;
  147.         _traders pushBack _trader;
  148.         private ["_signs"];
  149.         _signs = [
  150.  
  151.  
  152.  
  153.             //NORTH TRADER SIGN
  154.             ["Exile_Sign_Armory",[7975.08,12399.7,0],0,[[-0.1, -0.1,0],[-0,0,1]], false],
  155.  
  156.  
  157.  
  158.             //WEST TRADER SIGN
  159.             ["Exile_Sign_Armory",[2272.65,8584.95,0],0,[[0.14, -0.1,0],[-0,0,1]], false],
  160.  
  161.  
  162.  
  163.             //SOUTH TRADER SIGN
  164.             ["Exile_Sign_Armory",[11776.8,4132.15,0],10,[[0.578185, 0.207734,0],[-0,0,1]], false],
  165.  
  166.  
  167.             //EAST TRADER SIGN
  168.             ["Exile_Sign_Armory",[12189.6,8112.45,0],50.097,[[-0.515773, -0.856725,0],[-0,0,1]], false]
  169.  
  170.  
  171.  
  172.         ];
  173.         {
  174.             private ["_sign"];
  175.             _sign = createVehicle [_x select 0, [0,0,0], [], 0, ""];
  176.             _sign enableSimulationGlobal false;
  177.             _sign setObjectTextureGlobal [0, "MarXet\images\MarXet_Sign.jpg"];
  178.             if (_x select 4) then {
  179.                 _sign setDir (_x select 2);
  180.                 _sign setPos (_x select 1);
  181.             } else {
  182.                 _sign setPosATL (_x select 1);
  183.                 _sign setVectorDirAndUp (_x select 3);
  184.             };
  185.         } foreach _signs;
  186.  
  187.  
  188.     };
  189.  
  190.  
  191.  
  192.  
  193.     case "namalsk":
  194.     {
  195.         //////////////////////////////////////////////////////////
  196.         //          Sebjan Mine MarXet Trader
  197.         //////////////////////////////////////////////////////////
  198.         _trader =
  199.         [
  200.             "Exile_Cutscene_Prisoner01",
  201.             "",
  202.             "GreekHead_A3_01",
  203.             ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
  204.             [5012.31,8011.31,4.12741],
  205.             93.9074
  206.         ]
  207.         call ExileClient_object_trader_create;
  208.         _traders pushBack _trader;
  209.         //////////////////////////////////////////////////////////
  210.         //          Northern Boat MarXet Trader
  211.         //////////////////////////////////////////////////////////
  212.         _trader =
  213.         [
  214.             "Exile_Cutscene_Prisoner01",
  215.             "",
  216.             "GreekHead_A3_01",
  217.             ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
  218.             [9131.12,10084.1,7.10316],
  219.             208.937
  220.         ]
  221.         call ExileClient_object_trader_create;
  222.         _traders pushBack _trader;
  223.         //////////////////////////////////////////////////////////
  224.         //          Southern Boat MarXet Trader
  225.         //////////////////////////////////////////////////////////
  226.         _trader =
  227.         [
  228.             "Exile_Cutscene_Prisoner01",
  229.             "",
  230.             "GreekHead_A3_01",
  231.             ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
  232.             [4353.53,4743.87,0.00144696],
  233.             50.5659
  234.         ]
  235.         call ExileClient_object_trader_create;
  236.         _traders pushBack _trader;
  237.         private ["_signs"];
  238.         _signs = [
  239.             ["Exile_Sign_Armory",[5017.71,8022.81,0],142.021,[[0.615369,-0.788239,0],[0,-0,1]],false],
  240.             ["Exile_Sign_Armory",[9113.17,10095.6,0.15098],83.7766,[[0.994107,0.108405,0],[0,0,1]],false],
  241.             ["Exile_Sign_Armory",[4353.01,4742.62,0],226.596,[[-0.726524,-0.687141,0],[-0,0,1]],false]
  242.         ];
  243.         {
  244.             private ["_sign"];
  245.             _sign = createVehicle [_x select 0, [0,0,0], [], 0, ""];
  246.             _sign enableSimulationGlobal false;
  247.             _sign setObjectTextureGlobal [0, "MarXet\images\MarXet_Sign.jpg"];
  248.             if (_x select 4) then {
  249.                 _sign setDir (_x select 2);
  250.                 _sign setPos (_x select 1);
  251.             } else {
  252.                 _sign setPosATL (_x select 1);
  253.                 _sign setVectorDirAndUp (_x select 3);
  254.             };
  255.         } foreach _signs;
  256.     };
  257. };
  258. {
  259.     _x forceAddUniform "U_BG_Guerilla2_1";
  260.     _x addVest "Exile_Vest_Snow";
  261.     _x addHeadgear "H_Watchcap_blk";
  262.     _x addGoggles "G_Bandanna_aviator";
  263.     _x addWeapon "srifle_DMR_04_F";
  264.     _x addPrimaryWeaponItem "optic_LRPS";
  265.     _x addWeapon "hgun_ACPC2_F";
  266.     _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"];
  267. } forEach _traders;
  268. [format["MarXet Traders have been placed. Trader count: %1. Map: %2",(count(_traders)),worldName],"Client Traders"] call ExileClient_MarXet_util_log;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top