TheAce106

Altis cop shop1

Dec 26th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 9.18 KB | None | 0 0
  1. #include <macro.h>
  2. /*
  3.     File: fn_weaponShopCfg.sqf
  4.     Author: Bryan "Tonic" Boardwine
  5.    
  6.     Description:
  7.     Master configuration file for the weapon shops.
  8.    
  9.     Return:
  10.     String: Close the menu
  11.     Array:
  12.     [Shop Name,
  13.     [ //Array of items to add to the store
  14.         [classname,Custom Name (set nil for default),price]
  15.     ]]
  16. */
  17. private["_shop"];
  18. _shop = [_this,0,"",[""]] call BIS_fnc_param;
  19. if(_shop == "") exitWith {closeDialog 0}; //Bad shop type passed.
  20.  
  21. switch(_shop) do
  22. {
  23.     case "cop_basic":
  24.     {
  25.         switch(true) do
  26.         {
  27.             case (playerSide != west): {"You are not a cop!"};
  28.             default
  29.             {
  30.                 ["Altis Cop Shop",
  31.                     [
  32.                         ["arifle_sdar_F","Taser Rifle",20000],
  33.                         ["hgun_P07_snds_F","Stun Pistol",2000],
  34.                         ["hgun_P07_F",nil,7500],
  35.                         ["hgun_Pistol_heavy_02_F","Revolver",12000],
  36.                         ["6Rnd_45ACP_Cylinder",nil,250],
  37.                         ["Binocular",nil,150],
  38.                         ["ItemGPS",nil,100],
  39.                         ["ToolKit",nil,250],
  40.                         ["muzzle_snds_L",nil,650],
  41.                         ["FirstAidKit",nil,150],
  42.                         ["Medikit",nil,1000],
  43.                         ["NVGoggles",nil,2000],
  44.                         ["16Rnd_9x21_Mag",nil,50],
  45.                         ["20Rnd_556x45_UW_mag","Taser Rifle Magazine",125]
  46.                     ]
  47.                 ];
  48.             };
  49.         };
  50.     };
  51.    
  52.     case "med_basic":
  53.     {
  54.         switch (true) do
  55.         {
  56.             case (playerSide != independent): {"You are not an EMS Medic"};
  57.             default {
  58.                 ["Hospital EMS Shop",
  59.                     [
  60.                         ["ItemGPS",nil,100],
  61.                         ["Binocular",nil,150],
  62.                         ["ToolKit",nil,250],
  63.                         ["FirstAidKit",nil,150],
  64.                         ["Medikit",nil,500],
  65.                         ["NVGoggles",nil,1200],
  66.                         ["B_FieldPack_ocamo",nil,3000]
  67.                     ]
  68.                 ];
  69.             };
  70.         };
  71.     };
  72.  
  73.     case "cop_patrol":
  74.     {
  75.         switch(true) do
  76.         {
  77.             case (playerSide != west): {"You are not a cop!"};
  78.             case (__GETC__(life_coplevel) < 2): {"You are not at a patrol officer!"};
  79.             default
  80.             {
  81.                 ["Altis Patrol Officer Shop",
  82.                     [
  83.                         ["arifle_MX_F",nil,35000],
  84.                         ["arifle_MXC_Black_F",nil,35000],
  85.                         ["SMG_02_ACO_F",nil,30000],
  86.                         ["MineDetector",nil,1000],
  87.                         ["30Rnd_65x39_caseless_mag",nil,130],
  88.                         ["30Rnd_9x21_Mag",nil,250]
  89.                         ["HandGrenade_Stone","Flashbang",1700]
  90.                     ]
  91.                 ];
  92.             };
  93.         };
  94.     };
  95.  
  96.     case "cop_sergeant":
  97.     {
  98.         switch(true) do
  99.         {
  100.             case (playerSide != west): {"You are not a cop!"};
  101.             case (__GETC__(life_coplevel) < 3): {"You are not at a sergeant!"};
  102.             default
  103.             {
  104.                 ["Altis Sergeant Shop",
  105.                     [
  106.                         ["arifle_MXM_F",nil,25000],
  107.                         ["arifle_MXM_Black_F",nil,25500],
  108.                         ["arifle_MX_GL_F",nil,17000],
  109.                         ["arifle_MX_GL_Black_F",nil,17500],
  110.                         ["arifle_MXC_F",nil,30000],
  111.                         ["30Rnd_65x39_caseless_mag",nil,100],
  112.                         ["3Rnd_SmokeGreen_Grenade_shell",nil,5],
  113.                         ["HandGrenade_Stone","Flashbang",1700]
  114.                     ]
  115.                 ];
  116.             };
  117.         };
  118.     };
  119.  
  120.     case "cop_seniorsergeant":
  121.     {
  122.         switch(true) do
  123.         {
  124.             case (playerSide != west): {"You are not a cop!"};
  125.             case (__GETC__(life_coplevel) < 4): {"You are not at a senior sergeant!"};
  126.             default
  127.             {
  128.                 ["Altis Senior Sergeant Shop",
  129.                     [
  130.                         ["arifle_MX_SW_F",nil,50000],
  131.                         ["arifle_MX_SW_Black_F",nil,55000],
  132.                         ["srifle_DMR_01_F",nil,175000],
  133.                         ["100Rnd_65x39_caseless_mag",nil,1200],
  134.                         ["10Rnd_762x51_Mag",nil,1300],
  135.                         ["HandGrenade_Stone","Flashbang",1700]
  136.                     ]
  137.                 ];
  138.             };
  139.         };
  140.     };
  141.  
  142.     case "cop_lieutenant":
  143.     {
  144.         switch(true) do
  145.         {
  146.             case (playerSide != west): {"You are not a cop!"};
  147.             case (__GETC__(life_coplevel) < 5): {"You are not at a lieutenant!"};
  148.             default
  149.             {
  150.                 ["Altis Lieutenant Shop",
  151.                     [
  152.                         ["LMG_Mk200_F",nil,150000],
  153.                         ["srifle_EBR_F",nil,200000],
  154.                         ["SMG_01_F",nil,17000],
  155.                         ["200Rnd_65x39_cased_Box",nil,2750],
  156.                         ["20Rnd_762x51_Mag",nil,10000],
  157.                         ["30Rnd_45ACP_MAG_SMG_01",nil,600],
  158.                         ["HandGrenade_Stone","Flashbang",1700]
  159.                     ]
  160.                 ];
  161.             };
  162.         };
  163.     };
  164.  
  165.     case "cop_captain":
  166.     {
  167.         switch(true) do
  168.         {
  169.             case (playerSide != west): {"You are not a cop!"};
  170.             case (__GETC__(life_coplevel) < 6): {"You are not at a Captain!"};
  171.             default
  172.             {
  173.                 ["Altis Captain Shop",
  174.                     [
  175.                         ["srifle_LRR_F",nil,300000],
  176.                         ["LMG_Zafir_F",nil,250000],
  177.                         ["launch_RPG32_F","nil",100000],
  178.                         ["150Rnd_762x51_Box",nil,2750],
  179.                         ["7Rnd_408_Mag",nil,1000],
  180.                         ["RPG32_HE_F",nil,60000],
  181.                         ["HandGrenade_Stone","Flashbang",1700]
  182.                     ]
  183.                 ];
  184.             };
  185.         };
  186.     };
  187.  
  188.     case "cop_chief":
  189.     {
  190.         switch(true) do
  191.         {
  192.             case (playerSide != west): {"You are not a cop!"};
  193.             case (__GETC__(life_coplevel) < 7): {"You aint the Chief!"};
  194.             default
  195.             {
  196.                 ["Altis Chief Of Police Shop",
  197.                     [
  198.                         ["srifle_GM6_camo_SOS_F",nil,150000],
  199.                         ["LMG_Zafir_F",nil,175000],
  200.                         ["launch_NLAW_F",nil,17000],
  201.                         ["hgun_Pistol_heavy_01_F",nil,30000],
  202.                         ["5Rnd_127x108_APDS_Mag",nil,2500],
  203.                         ["150Rnd_762x51_Box",nil,2750],
  204.                         ["NLAW_F",nil,10000],
  205.                         ["11Rnd_45ACP_Mag",nil,60],
  206.                         ["Laserdesignator",nil,600],
  207.                         ["Laserbatteries",nil,60],
  208.                         ["optic_Nightstalker",nil,600],
  209.                         ["HandGrenade_Stone","Flashbang",1700]
  210.                     ]
  211.                 ];
  212.             };
  213.         };
  214.     };
  215.  
  216.     case "cop_equipment":
  217.     {
  218.         switch(true) do
  219.         {
  220.             case (playerSide != west): {"You are not a cop!"};
  221.             case (__GETC__(life_coplevel) < 2): {"You are not at a cop!"};
  222.             default
  223.             {
  224.                 ["Altis Equipment Shop",
  225.                     [
  226.                         ["muzzle_snds_H",nil,1000],
  227.                         ["muzzle_snds_L",nil,1000],
  228.                         ["muzzle_snds_M",nil,1000],
  229.                         ["muzzle_snds_H_MG",nil,1000],
  230.                         ["muzzle_snds_acp",nil,1000],
  231.                         ["muzzle_snds_B",nil,1000],
  232.                         ["optic_Arco",nil,1000],
  233.                         ["optic_Hamr",nil,1000],
  234.                         ["optic_Aco",nil,1000],
  235.                         ["optic_ACO_grn",nil,1000],
  236.                         ["optic_Aco_smg",nil,1000],
  237.                         ["optic_ACO_grn_smg",nil,1000],
  238.                         ["optic_Holosight",nil,1000],
  239.                         ["optic_Holosight_smg",nil,1000],
  240.                         ["optic_SOS",nil,1000],
  241.                         ["acc_flashlight",nil,1000],
  242.                         ["acc_pointer_IR",nil,1000],
  243.                         ["optic_MRCO",nil,1000],
  244.                         ["optic_DMS",nil,1000],
  245.                         ["optic_Yorris",nil,1000],
  246.                         ["optic_MRD",nil,1000],
  247.                         ["optic_LRPS",nil,10000],
  248.                         ["optic_NVS",nil,10000],
  249.                         ["optic_tws",nil,10000],
  250.                         ["optic_tws_mg",nil,10000],
  251.                         ["Rangefinder",nil,1000],
  252.                         ["SmokeShellGreen",nil,1000],
  253.                         ["SmokeShellRed",nil,1000]
  254.                     ]
  255.                 ];
  256.             };
  257.         };
  258.     };
  259.    
  260.     case "rebel":
  261.     {
  262.         switch(true) do
  263.         {
  264.             case (playerSide != civilian): {"You are not a civilian!"};
  265.             case (!license_civ_rebel): {"You don't have a Rebel training license!"};
  266.             default
  267.             {
  268.                 ["Mohammed's Jihadi Shop",
  269.                     [
  270.                         ["arifle_TRG20_F",nil,25000],
  271.                         ["arifle_Katiba_F",nil,30000],
  272.                         ["srifle_DMR_01_F",nil,50000],
  273.                         ["arifle_SDAR_F",nil,20000],
  274.                         ["optic_ACO_grn",nil,3500],
  275.                         ["optic_Holosight",nil,3600],
  276.                         ["acc_flashlight",nil,1000],
  277.                         ["optic_Hamr",nil,7500],
  278.                         ["30Rnd_9x21_Mag",nil,200],
  279.                         ["20Rnd_556x45_UW_mag",nil,125],
  280.                         ["30Rnd_556x45_Stanag",nil,300],
  281.                         ["10Rnd_762x51_Mag",nil,500],
  282.                         ["30Rnd_65x39_caseless_green",nil,275]
  283.                     ]
  284.                 ];
  285.             };
  286.         };
  287.     };
  288.  
  289.     case "terrorist":
  290.     {
  291.         switch(true) do
  292.         {
  293.             case (playerSide != civilian): {"You are not a civilian!"};
  294.             case (!license_civ_terrorist): {"You are not one with Allah!"};
  295.             default
  296.             {
  297.                 ["Allahs Weapon Shop",
  298.                     [
  299.                         ["arifle_TRG20_F",nil,25000],
  300.                         ["arifle_Katiba_F",nil,30000],
  301.                         ["srifle_DMR_01_F",nil,50000],
  302.                         ["arifle_SDAR_F",nil,20000],
  303.                         ["optic_ACO_grn",nil,3500],
  304.                         ["optic_Holosight",nil,3600],
  305.                         ["acc_flashlight",nil,1000],
  306.                         ["optic_Hamr",nil,7500],
  307.                         ["30Rnd_9x21_Mag",nil,200],
  308.                         ["20Rnd_556x45_UW_mag",nil,125],
  309.                         ["30Rnd_556x45_Stanag",nil,300],
  310.                         ["10Rnd_762x51_Mag",nil,500],
  311.                         ["30Rnd_65x39_caseless_green",nil,275]
  312.                     ]
  313.                 ];
  314.             };
  315.         };
  316.     }; 
  317.  
  318.     case "gun":
  319.     {
  320.         switch(true) do
  321.         {
  322.             case (playerSide != civilian): {"You are not a civilian!"};
  323.             case (!license_civ_gun): {"You don't have a Firearms license!"};
  324.             default
  325.             {
  326.                 ["Billy Joe's Firearms",
  327.                     [
  328.                         ["hgun_Rook40_F",nil,6500],
  329.                         ["hgun_Pistol_heavy_02_F",nil,9850],
  330.                         ["hgun_ACPC2_F",nil,11500],
  331.                         ["hgun_PDW2000_F",nil,20000],
  332.                         ["optic_ACO_grn_smg",nil,2500],
  333.                         ["V_Rangemaster_belt",nil,4900],
  334.                         ["16Rnd_9x21_Mag",nil,25],
  335.                         ["9Rnd_45ACP_Mag",nil,45],
  336.                         ["6Rnd_45ACP_Cylinder",nil,50],
  337.                         ["30Rnd_9x21_Mag",nil,75]
  338.                     ]
  339.                 ];
  340.             };
  341.         };
  342.     };
  343.    
  344.     case "gang":
  345.     {
  346.         switch(true) do
  347.         {
  348.             case (playerSide != civilian): {"You are not a civilian!"};
  349.             default
  350.             {
  351.                 ["Hideout Armament",
  352.                     [
  353.                         ["hgun_Rook40_F",nil,1500],
  354.                         ["hgun_Pistol_heavy_02_F",nil,2500],
  355.                         ["hgun_ACPC2_F",nil,4500],
  356.                         ["hgun_PDW2000_F",nil,9500],
  357.                         ["optic_ACO_grn_smg",nil,950],
  358.                         ["V_Rangemaster_belt",nil,1900],
  359.                         ["16Rnd_9x21_Mag",nil,25],
  360.                         ["9Rnd_45ACP_Mag",nil,45],
  361.                         ["6Rnd_45ACP_Cylinder",nil,50],
  362.                         ["30Rnd_9x21_Mag",nil,75]
  363.                     ]
  364.                 ];
  365.             };
  366.         };
  367.     };
  368.    
  369.     case "genstore":
  370.     {
  371.         ["Altis General Store",
  372.             [
  373.                 ["Binocular",nil,150],
  374.                 ["ItemGPS",nil,100],
  375.                 ["ToolKit",nil,250],
  376.                 ["FirstAidKit",nil,150],
  377.                 ["NVGoggles",nil,2000],
  378.                 ["Chemlight_red",nil,300],
  379.                 ["Chemlight_yellow",nil,300],
  380.                 ["Chemlight_green",nil,300],
  381.                 ["Chemlight_blue",nil,300]
  382.             ]
  383.         ];
  384.     };
  385. };
Advertisement
Add Comment
Please, Sign In to add comment