Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <macro.h>
- /*
- File: fn_weaponShopCfg.sqf
- Author: Bryan "Tonic" Boardwine
- Description:
- Master configuration file for the weapon shops.
- Return:
- String: Close the menu
- Array:
- [Shop Name,
- [ //Array of items to add to the store
- [classname,Custom Name (set nil for default),price]
- ]]
- */
- private["_shop"];
- _shop = [_this,0,"",[""]] call BIS_fnc_param;
- if(_shop == "") exitWith {closeDialog 0}; //Bad shop type passed.
- switch(_shop) do
- {
- case "cop_basic":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a cop!"};
- default
- {
- ["Altis Cop Shop",
- [
- ["arifle_sdar_F","Taser Rifle",20000],
- ["hgun_P07_snds_F","Stun Pistol",2000],
- ["hgun_P07_F",nil,7500],
- ["hgun_Pistol_heavy_02_F","Revolver",12000],
- ["6Rnd_45ACP_Cylinder",nil,250],
- ["Binocular",nil,150],
- ["ItemGPS",nil,100],
- ["ToolKit",nil,250],
- ["muzzle_snds_L",nil,650],
- ["FirstAidKit",nil,150],
- ["Medikit",nil,1000],
- ["NVGoggles",nil,2000],
- ["16Rnd_9x21_Mag",nil,50],
- ["20Rnd_556x45_UW_mag","Taser Rifle Magazine",125]
- ]
- ];
- };
- };
- };
- case "med_basic":
- {
- switch (true) do
- {
- case (playerSide != independent): {"You are not an EMS Medic"};
- default {
- ["Hospital EMS Shop",
- [
- ["ItemGPS",nil,100],
- ["Binocular",nil,150],
- ["ToolKit",nil,250],
- ["FirstAidKit",nil,150],
- ["Medikit",nil,500],
- ["NVGoggles",nil,1200],
- ["B_FieldPack_ocamo",nil,3000]
- ]
- ];
- };
- };
- };
- case "cop_patrol":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a cop!"};
- case (__GETC__(life_coplevel) < 2): {"You are not at a patrol officer!"};
- default
- {
- ["Altis Patrol Officer Shop",
- [
- ["arifle_MX_F",nil,35000],
- ["arifle_MXC_Black_F",nil,35000],
- ["SMG_02_ACO_F",nil,30000],
- ["MineDetector",nil,1000],
- ["30Rnd_65x39_caseless_mag",nil,130],
- ["30Rnd_9x21_Mag",nil,250]
- ["HandGrenade_Stone","Flashbang",1700]
- ]
- ];
- };
- };
- };
- case "cop_sergeant":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a cop!"};
- case (__GETC__(life_coplevel) < 3): {"You are not at a sergeant!"};
- default
- {
- ["Altis Sergeant Shop",
- [
- ["arifle_MXM_F",nil,25000],
- ["arifle_MXM_Black_F",nil,25500],
- ["arifle_MX_GL_F",nil,17000],
- ["arifle_MX_GL_Black_F",nil,17500],
- ["arifle_MXC_F",nil,30000],
- ["30Rnd_65x39_caseless_mag",nil,100],
- ["3Rnd_SmokeGreen_Grenade_shell",nil,5],
- ["HandGrenade_Stone","Flashbang",1700]
- ]
- ];
- };
- };
- };
- case "cop_seniorsergeant":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a cop!"};
- case (__GETC__(life_coplevel) < 4): {"You are not at a senior sergeant!"};
- default
- {
- ["Altis Senior Sergeant Shop",
- [
- ["arifle_MX_SW_F",nil,50000],
- ["arifle_MX_SW_Black_F",nil,55000],
- ["srifle_DMR_01_F",nil,175000],
- ["100Rnd_65x39_caseless_mag",nil,1200],
- ["10Rnd_762x51_Mag",nil,1300],
- ["HandGrenade_Stone","Flashbang",1700]
- ]
- ];
- };
- };
- };
- case "cop_lieutenant":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a cop!"};
- case (__GETC__(life_coplevel) < 5): {"You are not at a lieutenant!"};
- default
- {
- ["Altis Lieutenant Shop",
- [
- ["LMG_Mk200_F",nil,150000],
- ["srifle_EBR_F",nil,200000],
- ["SMG_01_F",nil,17000],
- ["200Rnd_65x39_cased_Box",nil,2750],
- ["20Rnd_762x51_Mag",nil,10000],
- ["30Rnd_45ACP_MAG_SMG_01",nil,600],
- ["HandGrenade_Stone","Flashbang",1700]
- ]
- ];
- };
- };
- };
- case "cop_captain":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a cop!"};
- case (__GETC__(life_coplevel) < 6): {"You are not at a Captain!"};
- default
- {
- ["Altis Captain Shop",
- [
- ["srifle_LRR_F",nil,300000],
- ["LMG_Zafir_F",nil,250000],
- ["launch_RPG32_F","nil",100000],
- ["150Rnd_762x51_Box",nil,2750],
- ["7Rnd_408_Mag",nil,1000],
- ["RPG32_HE_F",nil,60000],
- ["HandGrenade_Stone","Flashbang",1700]
- ]
- ];
- };
- };
- };
- case "cop_chief":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a cop!"};
- case (__GETC__(life_coplevel) < 7): {"You aint the Chief!"};
- default
- {
- ["Altis Chief Of Police Shop",
- [
- ["srifle_GM6_camo_SOS_F",nil,150000],
- ["LMG_Zafir_F",nil,175000],
- ["launch_NLAW_F",nil,17000],
- ["hgun_Pistol_heavy_01_F",nil,30000],
- ["5Rnd_127x108_APDS_Mag",nil,2500],
- ["150Rnd_762x51_Box",nil,2750],
- ["NLAW_F",nil,10000],
- ["11Rnd_45ACP_Mag",nil,60],
- ["Laserdesignator",nil,600],
- ["Laserbatteries",nil,60],
- ["optic_Nightstalker",nil,600],
- ["HandGrenade_Stone","Flashbang",1700]
- ]
- ];
- };
- };
- };
- case "cop_equipment":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a cop!"};
- case (__GETC__(life_coplevel) < 2): {"You are not at a cop!"};
- default
- {
- ["Altis Equipment Shop",
- [
- ["muzzle_snds_H",nil,1000],
- ["muzzle_snds_L",nil,1000],
- ["muzzle_snds_M",nil,1000],
- ["muzzle_snds_H_MG",nil,1000],
- ["muzzle_snds_acp",nil,1000],
- ["muzzle_snds_B",nil,1000],
- ["optic_Arco",nil,1000],
- ["optic_Hamr",nil,1000],
- ["optic_Aco",nil,1000],
- ["optic_ACO_grn",nil,1000],
- ["optic_Aco_smg",nil,1000],
- ["optic_ACO_grn_smg",nil,1000],
- ["optic_Holosight",nil,1000],
- ["optic_Holosight_smg",nil,1000],
- ["optic_SOS",nil,1000],
- ["acc_flashlight",nil,1000],
- ["acc_pointer_IR",nil,1000],
- ["optic_MRCO",nil,1000],
- ["optic_DMS",nil,1000],
- ["optic_Yorris",nil,1000],
- ["optic_MRD",nil,1000],
- ["optic_LRPS",nil,10000],
- ["optic_NVS",nil,10000],
- ["optic_tws",nil,10000],
- ["optic_tws_mg",nil,10000],
- ["Rangefinder",nil,1000],
- ["SmokeShellGreen",nil,1000],
- ["SmokeShellRed",nil,1000]
- ]
- ];
- };
- };
- };
- case "rebel":
- {
- switch(true) do
- {
- case (playerSide != civilian): {"You are not a civilian!"};
- case (!license_civ_rebel): {"You don't have a Rebel training license!"};
- default
- {
- ["Mohammed's Jihadi Shop",
- [
- ["arifle_TRG20_F",nil,25000],
- ["arifle_Katiba_F",nil,30000],
- ["srifle_DMR_01_F",nil,50000],
- ["arifle_SDAR_F",nil,20000],
- ["optic_ACO_grn",nil,3500],
- ["optic_Holosight",nil,3600],
- ["acc_flashlight",nil,1000],
- ["optic_Hamr",nil,7500],
- ["30Rnd_9x21_Mag",nil,200],
- ["20Rnd_556x45_UW_mag",nil,125],
- ["30Rnd_556x45_Stanag",nil,300],
- ["10Rnd_762x51_Mag",nil,500],
- ["30Rnd_65x39_caseless_green",nil,275]
- ]
- ];
- };
- };
- };
- case "terrorist":
- {
- switch(true) do
- {
- case (playerSide != civilian): {"You are not a civilian!"};
- case (!license_civ_terrorist): {"You are not one with Allah!"};
- default
- {
- ["Allahs Weapon Shop",
- [
- ["arifle_TRG20_F",nil,25000],
- ["arifle_Katiba_F",nil,30000],
- ["srifle_DMR_01_F",nil,50000],
- ["arifle_SDAR_F",nil,20000],
- ["optic_ACO_grn",nil,3500],
- ["optic_Holosight",nil,3600],
- ["acc_flashlight",nil,1000],
- ["optic_Hamr",nil,7500],
- ["30Rnd_9x21_Mag",nil,200],
- ["20Rnd_556x45_UW_mag",nil,125],
- ["30Rnd_556x45_Stanag",nil,300],
- ["10Rnd_762x51_Mag",nil,500],
- ["30Rnd_65x39_caseless_green",nil,275]
- ]
- ];
- };
- };
- };
- case "gun":
- {
- switch(true) do
- {
- case (playerSide != civilian): {"You are not a civilian!"};
- case (!license_civ_gun): {"You don't have a Firearms license!"};
- default
- {
- ["Billy Joe's Firearms",
- [
- ["hgun_Rook40_F",nil,6500],
- ["hgun_Pistol_heavy_02_F",nil,9850],
- ["hgun_ACPC2_F",nil,11500],
- ["hgun_PDW2000_F",nil,20000],
- ["optic_ACO_grn_smg",nil,2500],
- ["V_Rangemaster_belt",nil,4900],
- ["16Rnd_9x21_Mag",nil,25],
- ["9Rnd_45ACP_Mag",nil,45],
- ["6Rnd_45ACP_Cylinder",nil,50],
- ["30Rnd_9x21_Mag",nil,75]
- ]
- ];
- };
- };
- };
- case "gang":
- {
- switch(true) do
- {
- case (playerSide != civilian): {"You are not a civilian!"};
- default
- {
- ["Hideout Armament",
- [
- ["hgun_Rook40_F",nil,1500],
- ["hgun_Pistol_heavy_02_F",nil,2500],
- ["hgun_ACPC2_F",nil,4500],
- ["hgun_PDW2000_F",nil,9500],
- ["optic_ACO_grn_smg",nil,950],
- ["V_Rangemaster_belt",nil,1900],
- ["16Rnd_9x21_Mag",nil,25],
- ["9Rnd_45ACP_Mag",nil,45],
- ["6Rnd_45ACP_Cylinder",nil,50],
- ["30Rnd_9x21_Mag",nil,75]
- ]
- ];
- };
- };
- };
- case "genstore":
- {
- ["Altis General Store",
- [
- ["Binocular",nil,150],
- ["ItemGPS",nil,100],
- ["ToolKit",nil,250],
- ["FirstAidKit",nil,150],
- ["NVGoggles",nil,2000],
- ["Chemlight_red",nil,300],
- ["Chemlight_yellow",nil,300],
- ["Chemlight_green",nil,300],
- ["Chemlight_blue",nil,300]
- ]
- ];
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment