Advertisement
Guest User

Untitled

a guest
May 24th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.65 KB | None | 0 0
  1. #include <macro.h>
  2. /*
  3. File: fn_weaponShopCfg.sqf
  4. Author: Bryan "Tonic" Boardwine
  5. Edited for: rlgarma3.co.uk
  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.  
  25. case "med_basic":
  26. {
  27. switch (true) do
  28. {
  29. case (playerSide != independent): {"You are not an EMS paramedic"};
  30. default {
  31. ["EMS Equipment Store",
  32. [
  33. ["tf_microdagr","Radio Control Panel",200],
  34. ["tf_anprc152_2","Medic Radio",200],
  35.  
  36. ["ItemGPS",nil,100],
  37. ["Binocular",nil,120],
  38. ["ToolKit",nil,120],
  39. ["FirstAidKit",nil,125],
  40. ["Medikit",nil,250],
  41. ["NVGoggles",nil,1200]
  42. ]
  43. ];
  44. };
  45. };
  46. };
  47.  
  48. case "med_two":
  49. {
  50. switch (true) do
  51. {
  52. case (playerSide != independent): {"You are not an EMS paramedic"}; //Senior Paramedic (Level 2+)
  53. case (__GETC__(life_mediclevel) < 2): {"You are not a senior paramedic!"};
  54. default {
  55. ["EMS Senior Equipment Store",
  56. [
  57. ["tf_microdagr","Radio Control Panel",200],
  58. ["tf_anprc152_2","Medic Radio",200],
  59.  
  60. ["ItemGPS",nil,100],
  61. ["Binocular",nil,120],
  62. ["ToolKit",nil,120],
  63. ["FirstAidKit",nil,125],
  64. ["Medikit",nil,250],
  65. ["NVGoggles",nil,1200]
  66. ]
  67. ];
  68. };
  69. };
  70. };
  71.  
  72. case "cop_officer":
  73. {
  74. switch(true) do
  75. {
  76. case (playerSide != west): {"You are not a cop!"};
  77. case (__GETC__(life_coplevel) < 1): {"You are not at a officer rank!"}; //Cop Level 2
  78. default
  79. {
  80. ["Altis Officer Shop",
  81. [
  82. ["Taser_26","Taser",2500],
  83. ["26_cartridge","Taser Cartridge",175],
  84.  
  85. ["tf_microdagr","Radio Control Panel",200],
  86. ["tf_anprc152_2","Police Radio",200],
  87.  
  88. ["hlc_smg_mp5a3","MP5",17500],
  89. ["hlc_30Rnd_9x19_B_MP5","MP5 Mag",200],
  90.  
  91. ["optic_MRCO",nil,5500],
  92. ["optic_Holosight",nil,1200],
  93. ["optic_Hamr",nil,2000],
  94. ["acc_flashlight",nil,750],
  95. ["acc_pointer_IR",nil,750],
  96. ["NVGoggles_OPFOR",nil,2000],
  97. ["Medikit",nil,1000],
  98. ["FirstAidKit",nil,150],
  99. ["Binocular",nil,150],
  100. ["ItemGPS",nil,150],
  101. ["ToolKit",nil,250]
  102. ]
  103. ];
  104. };
  105. };
  106. };
  107.  
  108. case "cop_sergeant":
  109. {
  110. switch(true) do
  111. {
  112. case (playerSide != west): {"You are not a cop!"};
  113. case (__GETC__(life_coplevel) < 3): {"You are not at a sergeant rank!"}; //Cop Level 4
  114. default
  115. {
  116. ["Altis Sergeant Shop",
  117. [
  118. ["tf_microdagr","Radio Control Panel",200],
  119. ["tf_anprc152_2","Police Radio",200],
  120.  
  121. ["RH_m9",nil,195000],
  122. ["RH_15Rnd_9x19_M9",nil,200],
  123.  
  124. ["Taser_26","Taser",2500],
  125. ["26_cartridge","Taser Cartridge",175],
  126.  
  127. ["hlc_smg_mp5a3","MP5",17500],
  128. ["hlc_30Rnd_9x19_B_MP5","MP5 Mag",200],
  129.  
  130. ["optic_MRCO",nil,5500],
  131. ["optic_Holosight",nil,1200],
  132. ["optic_Hamr",nil,2000],
  133. ["acc_flashlight",nil,750],
  134. ["acc_pointer_IR",nil,750],
  135. ["NVGoggles_OPFOR",nil,2000],
  136. ["Medikit",nil,1000],
  137. ["FirstAidKit",nil,150],
  138. ["Binocular",nil,150],
  139. ["ItemGPS",nil,150],
  140. ["ToolKit",nil,250]
  141. ]
  142. ];
  143. };
  144. };
  145. };
  146.  
  147. case "cop_captain":
  148. {
  149. switch(true) do
  150. {
  151. case (playerSide != west): {"You are not a cop!"};
  152. case (__GETC__(life_coplevel) < 5): {"You are not at a captain rank!"}; //Cop Level 5
  153. default
  154. {
  155. ["Altis Captain Shop",
  156. [
  157. ["tf_microdagr","Radio Control Panel",200],
  158. ["tf_anprc152_2","Police Radio",200],
  159.  
  160. ["Taser_26","Taser",2500],
  161. ["26_cartridge","Taser Cartridge",175],
  162.  
  163. ["A3L_m4a3",nil,35000],
  164. ["A3L_M4Mag",nil,300],
  165. ["A3L_M4Flashlight","M4 Flashlight",300],
  166. ["A3L_CCO","M4 Sight",4000],
  167.  
  168. ["hlc_smg_mp5a3","MP5",17500],
  169. ["hlc_30Rnd_9x19_B_MP5","MP5 Mag",200],
  170.  
  171. ["optic_MRCO",nil,5500],
  172. ["optic_Holosight",nil,1200],
  173. ["optic_Hamr",nil,2000],
  174. ["acc_flashlight",nil,750],
  175. ["acc_pointer_IR",nil,750],
  176. ["HandGrenade_Stone","Flashbang",2700],
  177. ["NVGoggles_OPFOR",nil,2000],
  178. ["Medikit",nil,1000],
  179. ["FirstAidKit",nil,150],
  180. ["Binocular",nil,150],
  181. ["ItemGPS",nil,100],
  182. ["ToolKit",nil,250]
  183. ]
  184. ];
  185. };
  186. };
  187. };
  188.  
  189. case "cop_deputy":
  190. {
  191. switch(true) do
  192. {
  193. case (playerSide != west): {"You are not a cop!"};
  194. case (__GETC__(life_coplevel) < 6): {"You are not at a deputy chief rank!"}; //Cop Level 6
  195. default
  196. {
  197. ["Altis Deputy Chief Shop",
  198. [
  199. ["tf_microdagr","Radio Control Panel",200],
  200. ["tf_anprc152_2","Police Radio",200],
  201.  
  202. ["Taser_26","Taser",2500],
  203. ["26_cartridge","Taser Cartridge",175],
  204.  
  205. ["A3L_m4a3",nil,35000],
  206. ["A3L_M4Mag",nil,300],
  207. ["A3L_M4Flashlight","M4 Flashlight",300],
  208. ["A3L_CCO","M4 Sight",4000],
  209.  
  210. ["hlc_smg_mp5a3","MP5",17500],
  211. ["hlc_30Rnd_9x19_B_MP5","MP5 Mag",200],
  212.  
  213. ["optic_MRCO",nil,5500],
  214. ["optic_Holosight",nil,1200],
  215. ["optic_Aco",nil,2500],
  216. ["optic_Hamr",nil,2000],
  217. ["acc_flashlight",nil,750],
  218. ["acc_pointer_IR",nil,750],
  219. ["HandGrenade_Stone","Flashbang",1700],
  220. ["NVGoggles_OPFOR",nil,2000],
  221. ["Medikit",nil,1000],
  222. ["FirstAidKit",nil,150],
  223. ["Binocular",nil,150],
  224. ["ItemGPS",nil,100],
  225. ["ToolKit",nil,250]
  226. ]
  227. ];
  228. };
  229. };
  230. };
  231.  
  232. case "cop_sert":
  233. {
  234. switch(true) do
  235. {
  236. case (playerSide != west): {"You are not a cop!"};
  237. case (__GETC__(life_coplevel) < 6): {"You are not a SERT officer!"}; //Cop Level 7
  238. default
  239. {
  240. ["Altis SERT Shop",
  241. [
  242. ["tf_microdagr","Radio Control Panel",200],
  243. ["tf_anprc152_2","Police Radio",200],
  244.  
  245. ["Taser_26","Taser",2500],
  246. ["26_cartridge","Taser Cartridge",175],
  247.  
  248. ["RH_g19","Glock 19",15000],
  249. ["RH_17Rnd_9x19_g17",nil,200],
  250.  
  251. ["A3L_HK416",nil,45000],
  252. ["A3L_HK416Mag","HK416 Magazine",300],
  253. ["A3L_HK416Scope","HK416 Scope",6000],
  254. ["A3L_HK416Silencer","HK416 Silencer",6000],
  255.  
  256. ["FHQ_M4A1_BLK",nil,35000],
  257.  
  258. ["30Rnd_556x45_Stanag","M4A1 Magazine",200],
  259.  
  260. ["hlc_smg_mp5a3","MP5",17500],
  261. ["hlc_30Rnd_9x19_B_MP5","MP5 Mag",200],
  262.  
  263. ["optic_MRCO",nil,5500],
  264. ["optic_Holosight",nil,1200],
  265. ["optic_Aco",nil,2500],
  266. ["optic_Hamr",nil,2000],
  267. ["acc_flashlight",nil,750],
  268. ["acc_pointer_IR",nil,750],
  269. ["bipod_01_F_blk",nil,5000],
  270. ["optic_Nightstalker",nil,15000],
  271. ["HandGrenade_Stone","Flashbang",25000],
  272. ["SmokeShellPurple","Tear Gas",75000],
  273. ["NVGoggles_OPFOR",nil,2000],
  274. ["Medikit",nil,1000],
  275. ["FirstAidKit",nil,150],
  276. ["Binocular",nil,150],
  277. ["ItemGPS",nil,100],
  278. ["ToolKit",nil,250],
  279. ["Rangefinder",nil,5000]
  280. ]
  281. ];
  282. };
  283. };
  284. };
  285.  
  286. case "rebel":
  287. {
  288. switch(true) do
  289. {
  290. case (playerSide != civilian): {"You are not a civilian!"}; //Standard Rebel Shop TO DO: - Add some more variety to rebel outposts, etc.
  291. case (!license_civ_rebel): {"You don't have a Rebel training license!"};
  292. default
  293. {
  294. ["Rebel Store",
  295. [
  296. ["Ej_Thompson","Thompson",120000],
  297.  
  298. ["A3L_AK47","AK47",210500],
  299. ["A3L_AK47s","AK47-S",205000],
  300. ["A3L_AK47sgold","AK47-S Gold",350000],
  301. ["A3L_AKS74","AKS-74",210500],
  302. ["A3L_CZ550","CZ550",280000],
  303.  
  304. ["BUS_SMG_MP5K_F","MP5K",175000],
  305.  
  306. ["hlc_rifle_m14sopmod",nil,218000],
  307.  
  308. ["RH_Deagleg","Golden Deagle",200000],
  309. ["RH_7Rnd_50_AE","Deagle Magazine",200],
  310.  
  311. ["A3L_RedDot",nil,5500],
  312. ["A3L_CZ550Scope",nil,5500],
  313.  
  314. ["arifle_TRG20_F",nil,105000],
  315. ["arifle_Katiba_F",nil,139200],
  316. ["arifle_Mk20_F",nil,136000],
  317. ["SMG_01_F",nil,150000],
  318. ["arifle_SDAR_F",nil,102000],
  319. ["30Rnd_9x21_Mag",nil,200],
  320. ["20Rnd_556x45_UW_mag",nil,275],
  321. ["30Rnd_556x45_Stanag",nil,250],
  322. ["10Rnd_762x51_Mag",nil,275],
  323. ["30Rnd_65x39_caseless_green",nil,255],
  324. ["20Rnd_762x51_Mag",nil,255],
  325. ["30Rnd_45ACP_Mag_SMG_01",nil,240],
  326. ["30Rnd_65x39_caseless_mag",nil,200],
  327.  
  328. ["A3L_AK47mag","AK47 Magazine",350],
  329. ["A3L_ak47smag","AK47-S Magazine",350],
  330. ["A3L_CZ550mag","CZ550 Bullet",200],
  331.  
  332. ["Thompson_mag",nil,200],
  333.  
  334. ["hlc_20Rnd_762x51_B_M14","M14 Magazine",200],
  335.  
  336. ["optic_MRCO",nil,5500],
  337. ["optic_Holosight",nil,1200],
  338. ["optic_Aco",nil,2500],
  339. ["optic_Hamr",nil,2000],
  340. ["acc_flashlight",nil,750],
  341. ["acc_pointer_IR",nil,750],
  342. ["NVGoggles_INDEP",nil,5000],
  343. ["HandGrenade",nil,120000],
  344. ["Rangefinder",nil,5000],
  345. ["ToolKit",nil,250]
  346. ]
  347. ];
  348. };
  349. };
  350. };
  351.  
  352. case "blackmarket":
  353. {
  354. switch(true) do
  355. {
  356. case (playerSide != civilian): {"You are not a civilian!"}; //Secret Blackmarket, needs re-scripting as soon as possible
  357. default
  358. {
  359. ["Secret Black Market",
  360. [
  361. ["Ej_Thompson","Thompson",110000],
  362.  
  363. ["A3L_AK47","AK47",170500],
  364. ["A3L_AK47s","AK47-S",165000],
  365. ["A3L_AK47sgold","AK47-S Gold",230000],
  366. ["A3L_AKS74","AKS-74",170500],
  367. ["A3L_CZ550","CZ550",220000],
  368.  
  369. ["arifle_TRG20_F",nil,91000],
  370. ["arifle_Katiba_F",nil,119200],
  371. ["arifle_Mk20_F",nil,116000],
  372. ["SMG_01_F",nil,130000],
  373. ["arifle_SDAR_F",nil,84000],
  374. ["30Rnd_9x21_Mag",nil,100],
  375. ["20Rnd_556x45_UW_mag",nil,175],
  376. ["30Rnd_556x45_Stanag",nil,200],
  377. ["10Rnd_762x51_Mag",nil,250],
  378. ["30Rnd_65x39_caseless_green",nil,175],
  379. ["30Rnd_45ACP_Mag_SMG_01",nil,150],
  380. ["30Rnd_65x39_caseless_mag",nil,100],
  381.  
  382. ["A3L_AK47mag","AK47 Magazine",250],
  383. ["A3L_ak47smag","AK47-S Magazine",250],
  384. ["A3L_CZ550mag","CZ550 Bullet",300],
  385.  
  386. ["Thompson_mag",nil,150],
  387.  
  388. ["optic_MRCO",nil,4500],
  389. ["optic_Holosight",nil,1200],
  390. ["optic_Aco",nil,1500],
  391. ["optic_Hamr",nil,1000],
  392. ["acc_flashlight",nil,750],
  393. ["acc_pointer_IR",nil,750],
  394. ["NVGoggles_INDEP",nil,2000],
  395. ["HandGrenade",nil,120000],
  396. ["Rangefinder",nil,5000],
  397. ["ToolKit",nil,250]
  398. ]
  399. ];
  400. };
  401. };
  402. };
  403.  
  404. case "gun":
  405. {
  406. switch(true) do
  407. {
  408. case (playerSide != civilian): {"You are not a civilian!"}; //Gun store TO DO: Add more weapons
  409. case (!license_civ_gun): {"You are not licensed to the gun store!"};
  410. default
  411. {
  412. ["Gun Store",
  413. [
  414. ["RH_python",nil,20000],
  415. ["RH_6Rnd_357_Mag",nil,250],
  416. {"RH_m9c",nil,32000],
  417. ["RH_15Rnd_9x19_M9",nil,250],
  418. ["RH_Deagles",nil,75000],
  419. ["RH_7Rnd_50_AE",nil,300],
  420. ["RH_ttracker_g",nil,120000],
  421. ["RH_6Rnd_45ACP_Mag",nil,300],
  422.  
  423. ["hgun_Rook40_F",nil,9500],
  424. ["hgun_Pistol_heavy_02_F",nil,12850],
  425. ["hgun_PDW2000_F",nil,27500],
  426. ["optic_ACO_grn_smg",nil,3500],
  427. ["V_Rangemaster_belt",nil,6900],
  428. ["16Rnd_9x21_Mag",nil,225],
  429. ["9Rnd_45ACP_Mag",nil,245],
  430. ["6Rnd_45ACP_Cylinder",nil,250],
  431. ["30Rnd_9x21_Mag",nil,275]
  432. ]
  433. ];
  434. };
  435. };
  436. };
  437.  
  438. case "gang":
  439. {
  440. switch(true) do
  441. {
  442. case (playerSide != civilian): {"You are not a civilian!"}; //Gang Store... This can go..
  443. default
  444. {
  445. ["Gang Hideout",
  446. [
  447. ["hgun_Rook40_F",nil,9500],
  448. ["hgun_Pistol_heavy_02_F",nil,12850],
  449. ["hgun_ACPC2_F",nil,15500],
  450. ["hgun_PDW2000_F",nil,27500],
  451. ["optic_ACO_grn_smg",nil,3500],
  452. ["V_Rangemaster_belt",nil,6900],
  453. ["16Rnd_9x21_Mag",nil,225],
  454. ["9Rnd_45ACP_Mag",nil,245],
  455. ["6Rnd_45ACP_Cylinder",nil,250],
  456. ["30Rnd_9x21_Mag",nil,275]
  457. ]
  458. ];
  459. };
  460. };
  461. };
  462.  
  463. case "genstore":
  464. {
  465. ["General Store",
  466. [
  467. ["tf_anprc148jem","Radio",3000],
  468. ["tf_microdagr","Radio Control Panel",300],
  469. ["Tv_Camera","TV Camera",14000], //General Store TO DO: Add more variety..
  470. ["A3L_Sign","Picket Sign",4500],
  471. ["A3L_Sign2","Picket Sign 2",4500],
  472. ["Binocular",nil,150],
  473. ["ItemGPS",nil,100],
  474. ["ToolKit",nil,150],
  475. ["FirstAidKit",nil,150],
  476. ["Medikit",nil,2000],
  477. ["NVGoggles",nil,2000],
  478. ["Chemlight_red",nil,300],
  479. ["Chemlight_yellow",nil,300],
  480. ["Chemlight_green",nil,300],
  481. ["Chemlight_blue",nil,300]
  482. ]
  483. ];
  484. };
  485.  
  486. case "donator":
  487. {
  488. switch (true) do
  489. {
  490. case (__GETC__(life_donator) < 1): {"Donate @ rlgarma3.co.uk!"}; //Donator Store Level 1 - Needs Revisiting
  491. default {
  492. ["Donator Store",
  493. [
  494. ["srifle_DMR_01_F",nil,999999999999999]
  495. ]
  496. ];
  497. };
  498. };
  499. };
  500. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement