Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <macro.h>
- /*
- File: fn_weaponShopCfg.sqf
- Author: Bryan "Tonic" Boardwine
- Edited for: rlgarma3.co.uk
- 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 "med_basic":
- {
- switch (true) do
- {
- case (playerSide != independent): {"You are not an EMS paramedic"};
- default {
- ["EMS Equipment Store",
- [
- ["tf_microdagr","Radio Control Panel",200],
- ["tf_anprc152_2","Medic Radio",200],
- ["ItemGPS",nil,100],
- ["Binocular",nil,120],
- ["ToolKit",nil,120],
- ["FirstAidKit",nil,125],
- ["Medikit",nil,250],
- ["NVGoggles",nil,1200]
- ]
- ];
- };
- };
- };
- case "med_two":
- {
- switch (true) do
- {
- case (playerSide != independent): {"You are not an EMS paramedic"}; //Senior Paramedic (Level 2+)
- case (__GETC__(life_mediclevel) < 2): {"You are not a senior paramedic!"};
- default {
- ["EMS Senior Equipment Store",
- [
- ["tf_microdagr","Radio Control Panel",200],
- ["tf_anprc152_2","Medic Radio",200],
- ["ItemGPS",nil,100],
- ["Binocular",nil,120],
- ["ToolKit",nil,120],
- ["FirstAidKit",nil,125],
- ["Medikit",nil,250],
- ["NVGoggles",nil,1200]
- ]
- ];
- };
- };
- };
- case "cop_officer":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a cop!"};
- case (__GETC__(life_coplevel) < 1): {"You are not at a officer rank!"}; //Cop Level 2
- default
- {
- ["Altis Officer Shop",
- [
- ["Taser_26","Taser",2500],
- ["26_cartridge","Taser Cartridge",175],
- ["tf_microdagr","Radio Control Panel",200],
- ["tf_anprc152_2","Police Radio",200],
- ["hlc_smg_mp5a3","MP5",17500],
- ["hlc_30Rnd_9x19_B_MP5","MP5 Mag",200],
- ["optic_MRCO",nil,5500],
- ["optic_Holosight",nil,1200],
- ["optic_Hamr",nil,2000],
- ["acc_flashlight",nil,750],
- ["acc_pointer_IR",nil,750],
- ["NVGoggles_OPFOR",nil,2000],
- ["Medikit",nil,1000],
- ["FirstAidKit",nil,150],
- ["Binocular",nil,150],
- ["ItemGPS",nil,150],
- ["ToolKit",nil,250]
- ]
- ];
- };
- };
- };
- 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 rank!"}; //Cop Level 4
- default
- {
- ["Altis Sergeant Shop",
- [
- ["tf_microdagr","Radio Control Panel",200],
- ["tf_anprc152_2","Police Radio",200],
- ["RH_m9",nil,195000],
- ["RH_15Rnd_9x19_M9",nil,200],
- ["Taser_26","Taser",2500],
- ["26_cartridge","Taser Cartridge",175],
- ["hlc_smg_mp5a3","MP5",17500],
- ["hlc_30Rnd_9x19_B_MP5","MP5 Mag",200],
- ["optic_MRCO",nil,5500],
- ["optic_Holosight",nil,1200],
- ["optic_Hamr",nil,2000],
- ["acc_flashlight",nil,750],
- ["acc_pointer_IR",nil,750],
- ["NVGoggles_OPFOR",nil,2000],
- ["Medikit",nil,1000],
- ["FirstAidKit",nil,150],
- ["Binocular",nil,150],
- ["ItemGPS",nil,150],
- ["ToolKit",nil,250]
- ]
- ];
- };
- };
- };
- case "cop_captain":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a cop!"};
- case (__GETC__(life_coplevel) < 5): {"You are not at a captain rank!"}; //Cop Level 5
- default
- {
- ["Altis Captain Shop",
- [
- ["tf_microdagr","Radio Control Panel",200],
- ["tf_anprc152_2","Police Radio",200],
- ["Taser_26","Taser",2500],
- ["26_cartridge","Taser Cartridge",175],
- ["A3L_m4a3",nil,35000],
- ["A3L_M4Mag",nil,300],
- ["A3L_M4Flashlight","M4 Flashlight",300],
- ["A3L_CCO","M4 Sight",4000],
- ["hlc_smg_mp5a3","MP5",17500],
- ["hlc_30Rnd_9x19_B_MP5","MP5 Mag",200],
- ["optic_MRCO",nil,5500],
- ["optic_Holosight",nil,1200],
- ["optic_Hamr",nil,2000],
- ["acc_flashlight",nil,750],
- ["acc_pointer_IR",nil,750],
- ["HandGrenade_Stone","Flashbang",2700],
- ["NVGoggles_OPFOR",nil,2000],
- ["Medikit",nil,1000],
- ["FirstAidKit",nil,150],
- ["Binocular",nil,150],
- ["ItemGPS",nil,100],
- ["ToolKit",nil,250]
- ]
- ];
- };
- };
- };
- case "cop_deputy":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a cop!"};
- case (__GETC__(life_coplevel) < 6): {"You are not at a deputy chief rank!"}; //Cop Level 6
- default
- {
- ["Altis Deputy Chief Shop",
- [
- ["tf_microdagr","Radio Control Panel",200],
- ["tf_anprc152_2","Police Radio",200],
- ["Taser_26","Taser",2500],
- ["26_cartridge","Taser Cartridge",175],
- ["A3L_m4a3",nil,35000],
- ["A3L_M4Mag",nil,300],
- ["A3L_M4Flashlight","M4 Flashlight",300],
- ["A3L_CCO","M4 Sight",4000],
- ["hlc_smg_mp5a3","MP5",17500],
- ["hlc_30Rnd_9x19_B_MP5","MP5 Mag",200],
- ["optic_MRCO",nil,5500],
- ["optic_Holosight",nil,1200],
- ["optic_Aco",nil,2500],
- ["optic_Hamr",nil,2000],
- ["acc_flashlight",nil,750],
- ["acc_pointer_IR",nil,750],
- ["HandGrenade_Stone","Flashbang",1700],
- ["NVGoggles_OPFOR",nil,2000],
- ["Medikit",nil,1000],
- ["FirstAidKit",nil,150],
- ["Binocular",nil,150],
- ["ItemGPS",nil,100],
- ["ToolKit",nil,250]
- ]
- ];
- };
- };
- };
- case "cop_sert":
- {
- switch(true) do
- {
- case (playerSide != west): {"You are not a cop!"};
- case (__GETC__(life_coplevel) < 6): {"You are not a SERT officer!"}; //Cop Level 7
- default
- {
- ["Altis SERT Shop",
- [
- ["tf_microdagr","Radio Control Panel",200],
- ["tf_anprc152_2","Police Radio",200],
- ["Taser_26","Taser",2500],
- ["26_cartridge","Taser Cartridge",175],
- ["RH_g19","Glock 19",15000],
- ["RH_17Rnd_9x19_g17",nil,200],
- ["A3L_HK416",nil,45000],
- ["A3L_HK416Mag","HK416 Magazine",300],
- ["A3L_HK416Scope","HK416 Scope",6000],
- ["A3L_HK416Silencer","HK416 Silencer",6000],
- ["FHQ_M4A1_BLK",nil,35000],
- ["30Rnd_556x45_Stanag","M4A1 Magazine",200],
- ["hlc_smg_mp5a3","MP5",17500],
- ["hlc_30Rnd_9x19_B_MP5","MP5 Mag",200],
- ["optic_MRCO",nil,5500],
- ["optic_Holosight",nil,1200],
- ["optic_Aco",nil,2500],
- ["optic_Hamr",nil,2000],
- ["acc_flashlight",nil,750],
- ["acc_pointer_IR",nil,750],
- ["bipod_01_F_blk",nil,5000],
- ["optic_Nightstalker",nil,15000],
- ["HandGrenade_Stone","Flashbang",25000],
- ["SmokeShellPurple","Tear Gas",75000],
- ["NVGoggles_OPFOR",nil,2000],
- ["Medikit",nil,1000],
- ["FirstAidKit",nil,150],
- ["Binocular",nil,150],
- ["ItemGPS",nil,100],
- ["ToolKit",nil,250],
- ["Rangefinder",nil,5000]
- ]
- ];
- };
- };
- };
- case "rebel":
- {
- switch(true) do
- {
- case (playerSide != civilian): {"You are not a civilian!"}; //Standard Rebel Shop TO DO: - Add some more variety to rebel outposts, etc.
- case (!license_civ_rebel): {"You don't have a Rebel training license!"};
- default
- {
- ["Rebel Store",
- [
- ["Ej_Thompson","Thompson",120000],
- ["A3L_AK47","AK47",210500],
- ["A3L_AK47s","AK47-S",205000],
- ["A3L_AK47sgold","AK47-S Gold",350000],
- ["A3L_AKS74","AKS-74",210500],
- ["A3L_CZ550","CZ550",280000],
- ["BUS_SMG_MP5K_F","MP5K",175000],
- ["hlc_rifle_m14sopmod",nil,218000],
- ["RH_Deagleg","Golden Deagle",200000],
- ["RH_7Rnd_50_AE","Deagle Magazine",200],
- ["A3L_RedDot",nil,5500],
- ["A3L_CZ550Scope",nil,5500],
- ["arifle_TRG20_F",nil,105000],
- ["arifle_Katiba_F",nil,139200],
- ["arifle_Mk20_F",nil,136000],
- ["SMG_01_F",nil,150000],
- ["arifle_SDAR_F",nil,102000],
- ["30Rnd_9x21_Mag",nil,200],
- ["20Rnd_556x45_UW_mag",nil,275],
- ["30Rnd_556x45_Stanag",nil,250],
- ["10Rnd_762x51_Mag",nil,275],
- ["30Rnd_65x39_caseless_green",nil,255],
- ["20Rnd_762x51_Mag",nil,255],
- ["30Rnd_45ACP_Mag_SMG_01",nil,240],
- ["30Rnd_65x39_caseless_mag",nil,200],
- ["A3L_AK47mag","AK47 Magazine",350],
- ["A3L_ak47smag","AK47-S Magazine",350],
- ["A3L_CZ550mag","CZ550 Bullet",200],
- ["Thompson_mag",nil,200],
- ["hlc_20Rnd_762x51_B_M14","M14 Magazine",200],
- ["optic_MRCO",nil,5500],
- ["optic_Holosight",nil,1200],
- ["optic_Aco",nil,2500],
- ["optic_Hamr",nil,2000],
- ["acc_flashlight",nil,750],
- ["acc_pointer_IR",nil,750],
- ["NVGoggles_INDEP",nil,5000],
- ["HandGrenade",nil,120000],
- ["Rangefinder",nil,5000],
- ["ToolKit",nil,250]
- ]
- ];
- };
- };
- };
- case "blackmarket":
- {
- switch(true) do
- {
- case (playerSide != civilian): {"You are not a civilian!"}; //Secret Blackmarket, needs re-scripting as soon as possible
- default
- {
- ["Secret Black Market",
- [
- ["Ej_Thompson","Thompson",110000],
- ["A3L_AK47","AK47",170500],
- ["A3L_AK47s","AK47-S",165000],
- ["A3L_AK47sgold","AK47-S Gold",230000],
- ["A3L_AKS74","AKS-74",170500],
- ["A3L_CZ550","CZ550",220000],
- ["arifle_TRG20_F",nil,91000],
- ["arifle_Katiba_F",nil,119200],
- ["arifle_Mk20_F",nil,116000],
- ["SMG_01_F",nil,130000],
- ["arifle_SDAR_F",nil,84000],
- ["30Rnd_9x21_Mag",nil,100],
- ["20Rnd_556x45_UW_mag",nil,175],
- ["30Rnd_556x45_Stanag",nil,200],
- ["10Rnd_762x51_Mag",nil,250],
- ["30Rnd_65x39_caseless_green",nil,175],
- ["30Rnd_45ACP_Mag_SMG_01",nil,150],
- ["30Rnd_65x39_caseless_mag",nil,100],
- ["A3L_AK47mag","AK47 Magazine",250],
- ["A3L_ak47smag","AK47-S Magazine",250],
- ["A3L_CZ550mag","CZ550 Bullet",300],
- ["Thompson_mag",nil,150],
- ["optic_MRCO",nil,4500],
- ["optic_Holosight",nil,1200],
- ["optic_Aco",nil,1500],
- ["optic_Hamr",nil,1000],
- ["acc_flashlight",nil,750],
- ["acc_pointer_IR",nil,750],
- ["NVGoggles_INDEP",nil,2000],
- ["HandGrenade",nil,120000],
- ["Rangefinder",nil,5000],
- ["ToolKit",nil,250]
- ]
- ];
- };
- };
- };
- case "gun":
- {
- switch(true) do
- {
- case (playerSide != civilian): {"You are not a civilian!"}; //Gun store TO DO: Add more weapons
- case (!license_civ_gun): {"You are not licensed to the gun store!"};
- default
- {
- ["Gun Store",
- [
- ["RH_python",nil,20000],
- ["RH_6Rnd_357_Mag",nil,250],
- {"RH_m9c",nil,32000],
- ["RH_15Rnd_9x19_M9",nil,250],
- ["RH_Deagles",nil,75000],
- ["RH_7Rnd_50_AE",nil,300],
- ["RH_ttracker_g",nil,120000],
- ["RH_6Rnd_45ACP_Mag",nil,300],
- ["hgun_Rook40_F",nil,9500],
- ["hgun_Pistol_heavy_02_F",nil,12850],
- ["hgun_PDW2000_F",nil,27500],
- ["optic_ACO_grn_smg",nil,3500],
- ["V_Rangemaster_belt",nil,6900],
- ["16Rnd_9x21_Mag",nil,225],
- ["9Rnd_45ACP_Mag",nil,245],
- ["6Rnd_45ACP_Cylinder",nil,250],
- ["30Rnd_9x21_Mag",nil,275]
- ]
- ];
- };
- };
- };
- case "gang":
- {
- switch(true) do
- {
- case (playerSide != civilian): {"You are not a civilian!"}; //Gang Store... This can go..
- default
- {
- ["Gang Hideout",
- [
- ["hgun_Rook40_F",nil,9500],
- ["hgun_Pistol_heavy_02_F",nil,12850],
- ["hgun_ACPC2_F",nil,15500],
- ["hgun_PDW2000_F",nil,27500],
- ["optic_ACO_grn_smg",nil,3500],
- ["V_Rangemaster_belt",nil,6900],
- ["16Rnd_9x21_Mag",nil,225],
- ["9Rnd_45ACP_Mag",nil,245],
- ["6Rnd_45ACP_Cylinder",nil,250],
- ["30Rnd_9x21_Mag",nil,275]
- ]
- ];
- };
- };
- };
- case "genstore":
- {
- ["General Store",
- [
- ["tf_anprc148jem","Radio",3000],
- ["tf_microdagr","Radio Control Panel",300],
- ["Tv_Camera","TV Camera",14000], //General Store TO DO: Add more variety..
- ["A3L_Sign","Picket Sign",4500],
- ["A3L_Sign2","Picket Sign 2",4500],
- ["Binocular",nil,150],
- ["ItemGPS",nil,100],
- ["ToolKit",nil,150],
- ["FirstAidKit",nil,150],
- ["Medikit",nil,2000],
- ["NVGoggles",nil,2000],
- ["Chemlight_red",nil,300],
- ["Chemlight_yellow",nil,300],
- ["Chemlight_green",nil,300],
- ["Chemlight_blue",nil,300]
- ]
- ];
- };
- case "donator":
- {
- switch (true) do
- {
- case (__GETC__(life_donator) < 1): {"Donate @ rlgarma3.co.uk!"}; //Donator Store Level 1 - Needs Revisiting
- default {
- ["Donator Store",
- [
- ["srifle_DMR_01_F",nil,999999999999999]
- ]
- ];
- };
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement