Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.26 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 Recruit Shop",
  31. [
  32. ["hgun_P07_snds_F","Stun Pistol",0],
  33. ["hgun_P07_F",nil,0],
  34. ["Binocular",nil,0],
  35. ["ItemGPS",nil,0],
  36. ["ToolKit",nil,150],
  37. ["muzzle_snds_L",nil,0],
  38. ["FirstAidKit",nil,0],
  39. ["Medikit",nil,0],
  40. ["NVGoggles",nil,0],
  41. ["16Rnd_9x21_Mag",nil,0]
  42. ]
  43. ];
  44. };
  45. };
  46. };
  47.  
  48. case "cop_patrol":
  49. {
  50. switch(true) do
  51. {
  52. case (playerSide != west): {"You are not a cop!"};
  53. case (__GETC__(life_coplevel) < 2): {"You are not at a police constable rank!"};
  54. default
  55. {
  56. ["Altis police constable Shop",
  57. [
  58. ["SMG_01_F",nil,0],
  59. ["SMG_02_F",nil,0],
  60. ["acc_flashlight",nil,0],
  61. ["optic_Holosight",nil,0],
  62. ["optic_Arco",nil,0],
  63. ["muzzle_snds_H",nil,0],
  64. ["30Rnd_45ACP_Mag_SMG_01",nil,0],
  65. ["30Rnd_9x21_Mag",nil,0],
  66. ["arifle_TRG20_F",nil,0],
  67. ["30Rnd_556x45_Stanag",nil,0]
  68. ]
  69. ];
  70. };
  71. };
  72. };
  73.  
  74. case "cop_sergeant":
  75. {
  76. switch(true) do
  77. {
  78. case (playerSide != west): {"You are not a cop!"};
  79. case (__GETC__(life_coplevel) < 3): {"You are not at a senior police constable rank!"};
  80. default
  81. {
  82. ["Altis senior police constable Shop",
  83. [
  84. ["arifle_MX_F",nil,0],
  85. ["arifle_MXM_F",nil,0],
  86. ["30Rnd_65x39_caseless_mag",nil,0],
  87. ["muzzle_snds_H",nil,0],
  88. ["optic_Arco",nil,0],
  89. ["optic_Hamr",nil,0],
  90. ["optic_MRCO",nil,0],
  91. ["acc_pointer_IR",nil,0]
  92. ]
  93. ];
  94. };
  95. };
  96. };
  97.  
  98. case "cop_sgt":
  99. {
  100. switch(true) do
  101. {
  102. case (playerSide != west): {"You are not a cop!"};
  103. case (__GETC__(life_coplevel) < 4): {"You are not at a Sergeant rank!"};
  104. default
  105. {
  106. ["Altis Sergeant Shop",
  107. [
  108. ["arifle_MX_GL_F",nil,0],
  109. ["30Rnd_65x39_caseless_mag",nil,0],
  110. ["3Rnd_Smoke_Grenade_shell",nil,0],
  111. ["optic_NVS",nil,0]
  112. ]
  113. ];
  114. };
  115. };
  116. };
  117.  
  118. case "cop_insp":
  119. {
  120. switch(true) do
  121. {
  122. case (playerSide != west): {"You are not a cop!"};
  123. case (__GETC__(life_coplevel) < 5): {"You are not at an Inspector rank!"};
  124. default
  125. {
  126. ["Altis Inspector Shop",
  127. [
  128. ["arifle_MXC_F",nil,0],
  129. ["30Rnd_65x39_caseless_mag",nil,0],
  130. ["srifle_EBR_F",nil,0],
  131. ["20Rnd_762x51_Mag",nil,0],
  132. ["arifle_MX_SW_F",nil,0],
  133. ["100Rnd_65x39_caseless_mag",nil,0],
  134. ["optic_SOS",nil,0],
  135. ["muzzle_snds_B",nil,0],
  136. ["muzzle_snds_H",nil,0]
  137. ]
  138. ];
  139. };
  140. };
  141. };
  142.  
  143. case "cop_cinsp":
  144. {
  145. switch(true) do
  146. {
  147. case (playerSide != west): {"You are not a cop!"};
  148. case (__GETC__(life_coplevel) < 6): {"You are not at an Chief Inspector rank!"};
  149. default
  150. {
  151. ["Altis Chief Inspector Shop",
  152. [
  153. ["HandGrenade_Stone","Flashbang",3000]
  154. ]
  155. ];
  156. };
  157. };
  158. };
  159.  
  160. case "cop_supt":
  161. {
  162. switch(true) do
  163. {
  164. case (playerSide != west): {"You are not a cop!"};
  165. case (__GETC__(life_coplevel) < 7): {"You are not at an Superintendent rank!"};
  166. default
  167. {
  168. ["Altis Superintendent Shop",
  169. [
  170. ["srifle_LRR_SOS_F",nil,0],
  171. ["7Rnd_408_Mag",nil,0],
  172. ["optic_Nightstalker",nil,0]
  173. ]
  174. ];
  175. };
  176. };
  177. };
  178.  
  179. case "cop_comm":
  180. {
  181. switch(true) do
  182. {
  183. case (playerSide != west): {"You are not a cop!"};
  184. case (__GETC__(life_coplevel) < 8): {"You are not at a Commissioner rank!"};
  185. default
  186. {
  187. ["Altis Commissioner Shop",
  188. [
  189. ["LMG_Mk200_F",nil,0],
  190. ["200Rnd_65x39_cased_Box",nil,0],
  191. ["muzzle_snds_H_MG",nil,0]
  192. ]
  193. ];
  194. };
  195. };
  196. };
  197.  
  198. case "med_basic":
  199. {
  200. switch (true) do
  201. {
  202. case (playerSide != independent): {"You are not an EMS Medic"};
  203. default {
  204. ["Hospital EMS Shop",
  205. [
  206. ["ItemGPS",nil,0],
  207. ["Binocular",nil,0],
  208. ["ToolKit",nil,0],
  209. ["FirstAidKit",nil,0],
  210. ["Medikit",nil,0],
  211. ["NVGoggles",nil,0],
  212. ["B_FieldPack_ocamo",nil,0]
  213. ]
  214. ];
  215. };
  216. };
  217. };
  218.  
  219. case "rebel":
  220. {
  221. switch(true) do
  222. {
  223. case (playerSide != civilian): {"You are not a civilian!"};
  224. case (!license_civ_rebel): {"You don't have a Rebel training license!"};
  225. default
  226. {
  227. ["Mohammed's Jihadi Shop",
  228. [
  229. ["arifle_TRG20_F",nil,25000],
  230. ["arifle_Katiba_F",nil,30000],
  231. ["srifle_DMR_01_F",nil,50000],
  232. ["arifle_SDAR_F",nil,20000],
  233. ["optic_ACO_grn",nil,3500],
  234. ["optic_Holosight",nil,3600],
  235. ["acc_flashlight",nil,1000],
  236. ["optic_Hamr",nil,7500],
  237. ["30Rnd_9x21_Mag",nil,200],
  238. ["20Rnd_556x45_UW_mag",nil,125],
  239. ["30Rnd_556x45_Stanag",nil,300],
  240. ["10Rnd_762x51_Mag",nil,500],
  241. ["30Rnd_65x39_caseless_green",nil,275]
  242. ]
  243. ];
  244. };
  245. };
  246. };
  247.  
  248. case "gun":
  249. {
  250. switch(true) do
  251. {
  252. case (playerSide != civilian): {"You are not a civilian!"};
  253. case (!license_civ_gun): {"You don't have a Firearms license!"};
  254. default
  255. {
  256. ["Billy Joe's Firearms",
  257. [
  258. ["hgun_Rook40_F",nil,6500],
  259. ["hgun_Pistol_heavy_02_F",nil,9850],
  260. ["hgun_ACPC2_F",nil,11500],
  261. ["hgun_PDW2000_F",nil,20000],
  262. ["optic_ACO_grn_smg",nil,2500],
  263. ["V_Rangemaster_belt",nil,4900],
  264. ["16Rnd_9x21_Mag",nil,25],
  265. ["9Rnd_45ACP_Mag",nil,45],
  266. ["6Rnd_45ACP_Cylinder",nil,50],
  267. ["30Rnd_9x21_Mag",nil,75]
  268. ]
  269. ];
  270. };
  271. };
  272. };
  273.  
  274. case "gang":
  275. {
  276. switch(true) do
  277. {
  278. case (playerSide != civilian): {"You are not a civilian!"};
  279. default
  280. {
  281. ["Hideout Armament",
  282. [
  283. ["hgun_Rook40_F",nil,1500],
  284. ["hgun_Pistol_heavy_02_F",nil,2500],
  285. ["hgun_ACPC2_F",nil,4500],
  286. ["hgun_PDW2000_F",nil,9500],
  287. ["optic_ACO_grn_smg",nil,950],
  288. ["V_Rangemaster_belt",nil,1900],
  289. ["16Rnd_9x21_Mag",nil,25],
  290. ["9Rnd_45ACP_Mag",nil,45],
  291. ["6Rnd_45ACP_Cylinder",nil,50],
  292. ["30Rnd_9x21_Mag",nil,75]
  293. ]
  294. ];
  295. };
  296. };
  297. };
  298.  
  299. case "genstore":
  300. {
  301. ["Altis General Store",
  302. [
  303. ["Binocular",nil,150],
  304. ["ItemGPS",nil,100],
  305. ["ToolKit",nil,250],
  306. ["FirstAidKit",nil,150],
  307. ["NVGoggles",nil,2000],
  308. ["Chemlight_red",nil,300],
  309. ["Chemlight_yellow",nil,300],
  310. ["Chemlight_green",nil,300],
  311. ["Chemlight_blue",nil,300]
  312. ]
  313. ];
  314. };
  315. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement