Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.88 KB | None | 0 0
  1. #include <macro.h>
  2. /*
  3. File: fn_weaponShopCfg.sqf
  4. Author: Bryan "Tonic" Boardwine
  5. Edited by: "Daniel Craven"
  6.  
  7. Description:
  8. Master configuration file for the weapon shops.
  9.  
  10. Return:
  11. String: Close the menu
  12. Array:
  13. [Shop Name,
  14. [ //Array of items to add to the store
  15. [classname,Custom Name (set nil for default),price]
  16. ]]
  17. */
  18. private["_shop"];
  19. _shop = [_this,0,"",[""]] call BIS_fnc_param;
  20. if(_shop == "") exitWith {closeDialog 0}; //Bad shop type passed.
  21.  
  22. switch(_shop) do
  23. {
  24. case "med_supplies":
  25. {
  26. switch (true) do
  27. {
  28. case (playerSide != independent): {"You are not an EMS"};
  29. default
  30. {
  31. ["EMS Supplies Shop",
  32. [
  33. ["arma_life_Device_i",nil,750],
  34. ["FirstAidKit",nil,100],
  35. ["Medikit",nil,100],
  36. ["ToolKit",nil,100]
  37. ]
  38. ];
  39. };
  40. };
  41. };
  42.  
  43. case "med_basic":
  44. {
  45. switch (true) do
  46. {
  47. case (playerSide != independent): {"You are not an EMS"};
  48. default
  49. {
  50. ["EMS Basic Shop",
  51. [
  52. ["A3L_Extinguisher",nil,120],
  53. ["tf_anprc152",nil,50],
  54. ["tf_rt1523g",nil,50],
  55. ["ItemGPS",nil,20],
  56. ["ItemMap",nil,1],
  57. ["Binocular",nil,200],
  58. ["NVGoggles",nil,500]
  59. ]
  60. ];
  61. };
  62. };
  63. };
  64.  
  65. case "cop_basic":
  66. {
  67. switch(true) do
  68. {
  69. case (playerSide != west): {"You are not a Cop!"};
  70. default
  71. {
  72. ["Cop Basic",
  73. [
  74. ["arma_life_Device_i",nil,2500],
  75. ["arma_life_handcuffs_i",nil,2500],
  76. ["arma_life_s_card_i",nil,2500],
  77. ["NVGoggles",nil,500],
  78. ["Medikit",nil,200],
  79. ["ToolKit",nil,200],
  80. ["Radar_Gun",nil,50],
  81. ["Binocular",nil,200],
  82. ["ItemGPS",nil,50],
  83. ["ItemMap",nil,50],
  84. ["tf_anprc152",nil,50]
  85. ]
  86. ];
  87. };
  88. };
  89. };
  90.  
  91. case "cop_lsofficer":
  92. {
  93. switch(true) do
  94. {
  95. case (playerSide != west): {"You are not a Cop!"};
  96. case (__GETC__(life_coplevel) < 1): {"You are not a Cadet!"};
  97. default
  98. {
  99. ["Cadet Shop",
  100. [
  101. ["Taser_26",nil,1],
  102. ["26_cartridge",nil,1]
  103. ]
  104. ];
  105. };
  106. };
  107. };
  108.  
  109. case "cop_lscpl":
  110. {
  111. switch(true) do
  112. {
  113. case (playerSide != west): {"You are not a Cop!"};
  114. case (__GETC__(life_coplevel) < 2): {"You are not a Deputy!"};
  115. default
  116. {
  117. ["Deputy Shop",
  118. [
  119. ["RH_g19",nil,500],
  120. ["RH_17Rnd_9x19_g17",nil,50],
  121. ["Taser_26",nil,1],
  122. ["26_cartridge",nil,1]
  123.  
  124. ]
  125. ];
  126. };
  127. };
  128. };
  129.  
  130. case "cop_lssgt":
  131. {
  132. switch(true) do
  133. {
  134. case (playerSide != west): {"You are not a Cop!"};
  135. case (__GETC__(life_coplevel) < 3): {"You are not a Senior Deputy!"};
  136. default
  137. {
  138. ["Senior Deputy Shop",
  139. [
  140. ["hlc_smg_mp5a2",nil,1500],
  141. ["hlc_30Rnd_9x19_B_MP5",nil,50],
  142. ["RH_g19",nil,500],
  143. ["RH_17Rnd_9x19_g17",nil,50],
  144. ["Taser_26",nil,1],
  145. ["26_cartridge",nil,1]
  146. ]
  147. ];
  148. };
  149. };
  150. };
  151.  
  152. case "cop_lslt":
  153. {
  154. switch(true) do
  155. {
  156. case (playerSide != west): {"You are not a Cop!"};
  157. case (__GETC__(life_coplevel) < 4): {"You are not a Sergeant!"};
  158. default
  159. {
  160. ["Sergeant Shop",
  161. [
  162. ["RH_fnp45",nil,1500],
  163. ["RH_15Rnd_45cal_fnp",nil,50],
  164. ["hlc_smg_mp5a2",nil,1500],
  165. ["hlc_30Rnd_9x19_B_MP5",nil,50],
  166. ["RH_g19",nil,500],
  167. ["RH_17Rnd_9x19_g17",nil,50],
  168. ["Taser_26",nil,1],
  169. ["26_cartridge",nil,1],
  170. ["RH_M16A3",nil,5000],
  171. ["RH_30Rnd_556x45_M855A1",nil,500]
  172. ]
  173. ];
  174. };
  175. };
  176. };
  177.  
  178. case "cop_fbi":
  179. {
  180. switch(true) do
  181. {
  182. case (playerSide != west): {"You are not a Cop!"};
  183. case (__GETC__(life_coplevel) < 5): {"You are not a Detective!"};
  184. default
  185. {
  186. ["Detective Shop",
  187. [
  188. ["RH_kimber_nw",nil,7500],
  189. ["RH_7Rnd_45cal_m1911",nil,500],
  190. ["hgun_Pistol_heavy_01_F",nil,7500],
  191. ["11Rnd_45ACP_Mag",nil,500],
  192. ["RH_Deagleg","Golden Desert Eagle",7500],
  193. ["RH_7Rnd_50_AE",nil,500],
  194. ["RH_Deagles",nil,7500],
  195. ["RH_7Rnd_50_AE",nil,500],
  196. ["RH_tec9",nil,7500],
  197. ["RH_32Rnd_9x19_tec",nil,500],
  198. ["RH_g18",nil,500],
  199. ["RH_19Rnd_9x19_g18",nil,50],
  200. ["RH_33Rnd_9x19_g18",nil,50],
  201. ["A3L_AK47",nil,7500],
  202. ["A3L_AK47Mag",nil,500],
  203. ["A3L_AK47s",nil,7500],
  204. ["A3L_AK47sgold",nil,7500],
  205. ["A3L_AK47sMag",nil,500],
  206. ["A3L_CZ550",nil,7500],
  207. ["A3L_CZ550mag",nil,500],
  208. ["A3L_CZ550Scope",nil,1000],
  209. ["chakFNP90_50rnd_skin1",nil,7500],
  210. ["chakFNP90_57x28_B_skin1",nil,500],
  211. ["hlc_rifle_bcmjack",nil,7500],
  212. ["30Rnd_556x45_Stanag",nil,250],
  213. ["RH_g19",nil,500],
  214. ["RH_17Rnd_9x19_g17",nil,50]
  215.  
  216.  
  217. ]
  218. ];
  219. };
  220. };
  221. };
  222.  
  223. case "cop_sert":
  224. {
  225. switch(true) do
  226. {
  227. case (playerSide != west): {"You are not a Cop!"};
  228. case (__GETC__(life_coplevel) < 5): {"You are not SERT!"};
  229. default
  230. {
  231. ["SERT Shop",
  232. [
  233. ["RH_M4A6",nil,7500],
  234. ["RH_30Rnd_68x43_FMJ",nil,250],
  235. ["RH_M4m",nil,7500],
  236. ["RH_30Rnd_556x45_M855A1",nil,250],
  237. ["hlc_rifle_bcmjack",nil,7500],
  238. ["30Rnd_556x45_Stanag",nil,250],
  239. ["gign_shield","SERT Shield",1500],
  240. ["RH_M16A6",nil,2500],
  241. ["RH_30Rnd_68x43_FMJ",nil,250],
  242. ["RH_eotech553mag","SERT Eotech Scope",250],
  243. ["RH_m16covers_f","SERT Railcovers",250],
  244. ["RH_saker","SERT Silencer",250],
  245. ["HandGrenade_Stone","Flashbang",100],
  246. ["SmokeShellYellow",nil,100]
  247. ]
  248. ];
  249. };
  250. };
  251. };
  252.  
  253. case "cop_marshall":
  254. {
  255. switch(true) do
  256. {
  257. case (playerSide != west): {"You are not a Cop!"};
  258. case (__GETC__(life_coplevel) < 5): {"You are not Lieutenant!"};
  259. default
  260. {
  261. ["Lieutenant Shop",
  262. [
  263. ["RH_M4A1_ris",nil,5000],
  264. ["RH_30Rnd_556x45_M855A1",nil,50],
  265. ["hlc_smg_mp5a2",nil,1500],
  266. ["hlc_30Rnd_9x19_B_MP5",nil,50],
  267. ["RH_g19",nil,500],
  268. ["RH_17Rnd_9x19_g17",nil,50],
  269. ["Taser_26",nil,1],
  270. ["26_cartridge",nil,1],
  271. ["optic_Holosight","Holosight Scope",500],
  272. ["RH_barska_rds",nil,500],
  273. ["RH_eotech553",nil,500]
  274. ]
  275. ];
  276. };
  277. };
  278. };
  279.  
  280. case "cop_lie":
  281. {
  282. switch(true) do
  283. {
  284. case (playerSide != west): {"You are not a Cop!"};
  285. case (__GETC__(life_coplevel) < 6): {"You are not a Captain!"};
  286. default
  287. {
  288. ["Captain Shop",
  289. [
  290. ["RH_M4A1_ris",nil,5000],
  291. ["RH_30Rnd_556x45_M855A1",nil,50],
  292. ["RH_PDW",nil,5000],
  293. ["RH_30Rnd_6x35_mag",nil,100],
  294. ["hlc_smg_mp5a2",nil,1500],
  295. ["hlc_30Rnd_9x19_B_MP5",nil,50],
  296. ["RH_g19",nil,500],
  297. ["RH_17Rnd_9x19_g17",nil,50],
  298. ["Taser_26",nil,1],
  299. ["26_cartridge",nil,1],
  300. ["optic_Holosight","Holosight Scope",500],
  301. ["RH_barska_rds",nil,500],
  302. ["RH_eotech553",nil,500],
  303. ["RH_SFM952V",nil,50]
  304. ]
  305. ];
  306. };
  307. };
  308. };
  309.  
  310. case "cop_command":
  311. {
  312. switch(true) do
  313. {
  314. case (playerSide != west): {"You are not a Cop!"};
  315. case (__GETC__(life_coplevel) < 7): {"You are not command!"};
  316. default
  317. {
  318. ["Command",
  319. [
  320. // Added by Heisen edited by king5055
  321.  
  322. ["RH_Hk416c",nil,5000],
  323. ["RH_30Rnd_556x45_M855A1",nil,100],
  324. ["AG_MP9",nil,5000],
  325. ["30Rnd_45ACP_Mag_SMG_01",nil,100],
  326. ["hlc_rifle_samr2",nil,5000],
  327. ["RH_30Rnd_556x45_M855A1",nil,100],
  328. ["hlc_rifle_augsrcarb_b",nil,5000],
  329. ["hlc_30Rnd_556x45_B_AUG",nil,100],
  330. ["hlc_rifle_CQBR",nil,5000],
  331. ["hlc_30rnd_556x45_EPR",nil,100],
  332. /////////////////////////////////////
  333. ["RH_kimber",nil,800],
  334. ["RH_7Rnd_45cal_m1911",nil,100],
  335. ["RH_bull",nil,800],
  336. ["RH_6Rnd_454_Mag",nil,100],
  337. ["RH_fn57",nil,800],
  338. ["RH_20Rnd_57x28_FN",nil,100],
  339. /////////////////////////////////////
  340. ["RH_m4covers_f",nil,50],
  341. ["RH_ta01nsn",nil,50],
  342. ["RH_SFM952V",nil,50],
  343. ["RH_ta31rmr",nil,50],
  344. ["RH_compM2",nil,50]
  345. ]
  346. ];
  347. };
  348. };
  349. };
  350.  
  351. case "rebel_low":
  352. {
  353. switch(true) do
  354. {
  355. case (playerSide != civilian): {"You are not a civilian!"};
  356. case (!license_civ_rebel): {"Fuck Off I Don't Deal With Your Kind!"};
  357. default
  358. {
  359. ["Rebel Pistols",
  360. [
  361.  
  362. ["RH_kimber_nw",nil,200000],
  363. ["RH_7Rnd_45cal_m1911",nil,5000],
  364. ["hgun_Pistol_heavy_01_F",nil,250000],
  365. ["11Rnd_45ACP_Mag",nil,5000],
  366. ["RH_Deagleg","Golden Desert Eagle",350000],
  367. ["RH_7Rnd_50_AE",nil,5500],
  368. ["RH_Deagles",nil,200000],
  369. ["RH_7Rnd_50_AE",nil,5000],
  370. ["RH_tec9",nil,200000],
  371. ["RH_32Rnd_9x19_tec",nil,5000],
  372. ["RH_g18",nil,200000],
  373. ["RH_19Rnd_9x19_g18",nil,5000],
  374. ["RH_33Rnd_9x19_g18",nil,15000]
  375.  
  376. ]
  377. ];
  378. };
  379. };
  380. };
  381.  
  382. case "rebel_high":
  383. {
  384. switch(true) do
  385. {
  386. case (playerSide != civilian): {"You are not a civilian!"};
  387. case (!license_civ_rebel): {"Fuck Off I Don't Deal With Your Kind!"};
  388. default
  389. {
  390. ["Rebel Primarys",
  391. [
  392.  
  393. ["A3L_AK47",nil,300000],
  394. ["A3L_AK47Mag",nil,500],
  395. ["A3L_AK47s",nil,400000],
  396. ["A3L_AK47sgold",nil,550000],
  397. ["A3L_AK47sMag",nil,500],
  398. ["RH_m4_moe",nil,600000],
  399. ["30Rnd_556x45_Stanag",nil,500],
  400. ["RH_sbr9_tg",nil,100000],
  401. ["RH_32Rnd_9mm_M822",nil,500],
  402. ["chakFNP90_50rnd_skin1",nil,250000],
  403. ["chakFNP90_57x28_B_skin1",nil,500],
  404. ["hlc_smg_mp5a2",nil,300000],
  405. ["hlc_30Rnd_9x19_B_MP5",nil,500],
  406. ["hlc_optic_kobra",nil,25000]
  407.  
  408. ]
  409. ];
  410. };
  411. };
  412. };
  413.  
  414. case "gun":
  415. {
  416. switch(true) do
  417. {
  418. case (playerSide != civilian): {"You are not a civilian!"};
  419. case (!license_civ_gun): {"You don't have a Firearms license!"};
  420. default
  421. {
  422. ["Kaels Firearms",
  423. [
  424. ["RH_g17",nil,23500],
  425. ["RH_g19",nil,24250],
  426. ["RH_g19t",nil,22000],
  427. ["RH_17Rnd_9x19_g17",nil,550],
  428. ["RH_m9",nil,22000],
  429. ["RH_15Rnd_9x19_M9",nil,550],
  430. ["hgun_Rook40_F",nil,22500],
  431. ["16Rnd_9x21_Mag",nil,550],
  432. ["RH_mk2",nil,23500],
  433. ["RH_10Rnd_22LR_mk2",nil,550],
  434. ["RH_m9c",nil,22500],
  435. ["RH_15Rnd_9x19_M9",nil,550],
  436. ["hgun_P07_F",nil,23500],
  437. ["16Rnd_9x21_Mag",nil,550],
  438. ["RH_gsh18",nil,42800],
  439. ["RH_18Rnd_9x19_gsh",nil,550]
  440.  
  441. ]
  442. ];
  443. };
  444. };
  445. };
  446.  
  447. case "rifle":
  448. {
  449. switch(true) do
  450. {
  451. case (playerSide != civilian): {"You are not a civilian!"};
  452. case (!license_civ_rifle): {"You don't have a Rifle license!"};
  453. default
  454. {
  455. ["Hunting Rifle Shop",
  456. [
  457. ["A3L_CZ550",nil,250000],
  458. ["A3L_CZ550mag",nil,2500],
  459. ["A3L_CZ550Scope",nil,10000],
  460. ["arifle_SDAR_F","Turtle ONLY Harpoon",50000],
  461. ["20Rnd_556x45_UW_mag","Underwater magazine",2500]
  462. ]
  463. ];
  464. };
  465. };
  466. };
  467.  
  468. case "genstore":
  469. {
  470. ["General Store",
  471. [
  472. ["arma_life_Device_i",nil,750],
  473. ["ItemMap",nil,100],
  474. ["tf_anprc152",nil,100],
  475. ["Binocular",nil,100],
  476. ["tf_microdagr",nil,50],
  477. ["ToolKit",nil,250],
  478. ["ItemCompass",nil,100],
  479. ["NVGoggles_mas_h",nil,5000],
  480. ["NVGoggles_OPFOR",nil,5000],
  481. ["NVGoggles",nil,5000],
  482. ["Chemlight_red",nil,50],
  483. ["Chemlight_yellow",nil,50],
  484. ["Chemlight_green",nil,50],
  485. ["Chemlight_blue",nil,50],
  486. ["CG_PICKAXE","Pickaxe(Rocket Launcher Slot)",50],
  487. ["cg_scythe","Stick of Death(Rocket Launcher Slot)",50],
  488. ["CG_BAT","Bat(Rocket Launcher Slot)",50],
  489. ["CG_CROSS","Holy Cross(Rocket Launcher Slot)",50],
  490. ["cg_machete","Machete(Rocket Launcher Slot)",50],
  491. ["cg_hatchet","Hatchet(Rocket Launcher Slot)",50],
  492. ["A3L_ChainSaw","Chainsaw(Primary Slot)",50],
  493. ["A3L_JackHammer","Jack Hammer(Primary Slot)",50],
  494. ["A3L_Shovel","Shovel(Primary Slot)",50],
  495. ["A3L_Hammer","Hammer(Secondary Slot)",50],
  496. ["A3L_Spanner","Spanner(Secondary Slot)",50],
  497. ["A3L_Sign2","Weed Sign(Secondary Slot)",50],
  498. ["A3L_Sign","Police Sign(Secondary Slot)",50],
  499. ["Tv_Camera","TV Camera(Secondary Slot)",50]
  500. ]
  501. ];
  502. };
  503. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement