Advertisement
Guest User

Untitled

a guest
Mar 6th, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.68 KB | None | 0 0
  1. //................................
  2. // Fill Ammo Box Script by Lzryde (v0.2)
  3. //................................
  4.  
  5. // Settings
  6. _amountclothing = 20;
  7. _amountAmmo = 50;
  8. _amountitem = 20;
  9. _numMod = 20;
  10. _numItem = 20;
  11. _numAmmo = 30;
  12. _numWeapon = 20;
  13. _refreshTime = 360; // refill every 5 minutes
  14.  
  15. _this allowDamage false;
  16.  
  17. // Loop forever
  18. while {true} do
  19. {
  20.  
  21. // Clear box
  22. clearWeaponCargo _this;
  23. clearMagazineCargo _this;
  24.  
  25. // Fill box
  26.  
  27. // Arma 3 Alpha Cargo
  28.  
  29. _this addItemCargo ["acc_flashlight", _numMod];
  30. _this addItemCargo ["acc_pointer_IR", _numMod];
  31. _this addItemCargo ["muzzle_snds_B", _numMod];
  32. _this addItemCargo ["muzzle_snds_H", _numMod];
  33. _this addItemCargo ["muzzle_snds_H_MG", _numMod];
  34. _this addItemCargo ["muzzle_snds_L", _numMod];
  35. _this addItemCargo ["optic_Aco", _numMod];
  36. _this addItemCargo ["optic_ACO_grn", _numMod];
  37. _this addItemCargo ["optic_Arco", _numMod];
  38. _this addItemCargo ["optic_Hamr", _numMod];
  39. _this addItemCargo ["optic_Holosight", _numMod];
  40.  
  41. _this addItemCargo ["H_Cap_blu", _numItem];
  42. _this addItemCargo ["H_Cap_brn_SERO", _numItem];
  43. _this addItemCargo ["H_Cap_headphones", _numItem];
  44. _this addItemCargo ["H_Cap_red", _numItem];
  45. _this addItemCargo ["H_HelmetB", _numItem];
  46. _this addItemCargo ["H_HelmetB_light", _numItem];
  47. _this addItemCargo ["H_HelmetB_paint", _numItem];
  48. _this addItemCargo ["H_HelmetO_ocamo", _numItem];
  49. _this addItemCargo ["H_MilCap_mcamo", _numItem];
  50. _this addItemCargo ["H_MilCap_ocamo", _numItem];
  51. _this addItemCargo ["H_PilotHelmetHeli_B", _numItem];
  52. _this addItemCargo ["H_PilotHelmetHeli_O", _numItem];
  53.  
  54. _this addWeaponCargo ["Binocular", _numItem];
  55. _this addItemCargo ["FirstAidKit", _numItem];
  56. _this addItemCargo ["ItemCompass", _numItem];
  57. _this addItemCargo ["ItemGPS", _numItem];
  58. _this addItemCargo ["ItemMap", _numItem];
  59. _this addItemCargo ["ItemRadio", _numItem];
  60. _this addItemCargo ["ItemWatch", _numItem];
  61. _this addItemCargo ["Medikit", _numItem];
  62. _this addItemCargo ["MineDetector", _numItem];
  63. _this addItemCargo ["NVGoggles", _numItem];
  64. _this addItemCargo ["ToolKit", _numItem];
  65.  
  66. _this addMagazineCargo ["APERSBoundingMine_Range_Mag", _numAmmo];
  67. _this addMagazineCargo ["APERSMine_Range_Mag", _numAmmo];
  68. _this addMagazineCargo ["ATMine_Range_Mag", _numAmmo];
  69. _this addMagazineCargo ["Chemlight_blue", _numAmmo];
  70. _this addMagazineCargo ["Chemlight_green", _numAmmo];
  71. _this addMagazineCargo ["Chemlight_red", _numAmmo];
  72. _this addMagazineCargo ["Chemlight_yellow", _numAmmo];
  73. _this addMagazineCargo ["ClaymoreDirectionalMine_Remote_Mag", _numAmmo];
  74. _this addMagazineCargo ["DemoCharge_Remote_Mag", _numAmmo];
  75. _this addMagazineCargo ["HandGrenade", _numAmmo];
  76. _this addMagazineCargo ["HandGrenade_Stone", _numAmmo];
  77. _this addMagazineCargo ["MiniGrenade", _numAmmo];
  78. _this addMagazineCargo ["SatchelCharge_Remote_Mag", _numAmmo];
  79. _this addMagazineCargo ["SLAMDirectionalMine_Wire_Mag", _numAmmo];
  80. _this addMagazineCargo ["SmokeShell", _numAmmo];
  81. _this addMagazineCargo ["SmokeShellBlue", _numAmmo];
  82. _this addMagazineCargo ["SmokeShellGreen", _numAmmo];
  83. _this addMagazineCargo ["SmokeShellOrange", _numAmmo];
  84. _this addMagazineCargo ["SmokeShellPurple", _numAmmo];
  85. _this addMagazineCargo ["SmokeShellRed", _numAmmo];
  86. _this addMagazineCargo ["SmokeShellYellow", _numAmmo];
  87.  
  88. _this addItemCargo ["V_BandollierB_khk", _amountclothing];
  89. _this addItemCargo ["V_PlateCarrier1_rgr", _amountclothing];
  90. _this addItemCargo ["V_PlateCarrier2_rgr", _amountclothing];
  91. _this addItemCargo ["V_PlateCarrierGL_rgr", _amountclothing];
  92. _this addItemCargo ["V_ChestrigB_rgr" , _amountclothing];
  93. _this addItemCargo ["V_HarnessO_brn" , _amountclothing];
  94. _this addItemCargo ["H_HelmetB" , _amountclothing];
  95. _this addItemCargo ["H_HelmetB_paint" , _amountclothing];
  96. _this addItemCargo ["H_HelmetB_light" , _amountclothing];
  97. _this addItemCargo ["H_Cap_red" , _amountclothing];
  98. _this addItemCargo ["H_HelmetO_ocamo" , _amountclothing];
  99. _this addItemCargo ["H_MilCap_ocamo" , _amountclothing];
  100. _this addItemCargo ["U_Rangemaster" , _amountclothing];
  101. _this addItemCargo ["V_TacVest_khk" , _amountclothing];
  102. _this addItemCargo ["V_TacVest_brn" , _amountclothing];
  103. _this addItemCargo ["H_PilotHelmetHeli_B" , _amountclothing];
  104.  
  105. _this addWeaponCargo ["arifle_MX_F", _numWeapon];
  106. _this addWeaponCargo ["arifle_MX_GL_F", _numWeapon];
  107. _this addWeaponCargo ["arifle_MX_SW_F", _numWeapon];
  108. _this addWeaponCargo ["arifle_MXC_F", _numWeapon];
  109. _this addWeaponCargo ["arifle_MXM_F", _numWeapon];
  110. _this addWeaponCargo ["arifle_SDAR_F", _numWeapon];
  111. _this addWeaponCargo ["arifle_TRG20_F", _numWeapon];
  112. _this addWeaponCargo ["arifle_TRG21_F", _numWeapon];
  113. _this addWeaponCargo ["arifle_TRG21_GL_F", _numWeapon];
  114. _this addWeaponCargo ["hgun_P07_F", _numWeapon];
  115. _this addWeaponCargo ["LMG_Mk200_F", _numWeapon];
  116. _this addWeaponCargo ["srifle_EBR_F", _numWeapon];
  117. _this addWeaponCargo ["arifle_Khaybar_C_F", _numWeapon];
  118. _this addWeaponCargo ["arifle_Khaybar_F", _numWeapon];
  119. _this addWeaponCargo ["arifle_Khaybar_GL_F", _numWeapon];
  120. _this addWeaponCargo ["hgun_Rook40_F", _numWeapon];
  121.  
  122. _this addWeaponCargo ["launch_NLAW_F", _numWeapon];
  123. _this addWeaponCargo ["launch_RPG32_F", _numWeapon];
  124.  
  125. _this addMagazineCargo ["NLAW_F", _numAmmo];
  126. _this addMagazineCargo ["RPG32_F", _numAmmo];
  127. _this addMagazineCargo ["RPG32_AA_F", _numAmmo];
  128.  
  129. _this addMagazineCargo ["30Rnd_65x39_caseless_green", _numAmmo];
  130. _this addMagazineCargo ["30Rnd_65x39_caseless_green_mag_Tracer", _numAmmo];
  131. _this addMagazineCargo ["30Rnd_65x39_caseless_mag", _numAmmo];
  132. _this addMagazineCargo ["30Rnd_65x39_caseless_mag_Tracer", _numAmmo];
  133. _this addMagazineCargo ["100Rnd_65x39_caseless_mag", _numAmmo];
  134. _this addMagazineCargo ["100Rnd_65x39_caseless_mag_Tracer", _numAmmo];
  135. _this addMagazineCargo ["20Rnd_762x45_mag", _numAmmo];
  136. _this addMagazineCargo ["20Rnd_556x45_UW_mag", _numAmmo];
  137. _this addMagazineCargo ["30Rnd_556x45_Stanag", _numAmmo];
  138. _this addMagazineCargo ["30Rnd_65x39_case_mag", _numAmmo];
  139. _this addMagazineCargo ["30Rnd_65x39_case_mag_Tracer", _numAmmo];
  140. _this addMagazineCargo ["16Rnd_9x21_Mag", _numAmmo];
  141. _this addMagazineCargo ["30Rnd_9x21_Mag", _numAmmo];
  142. _this addMagazineCargo ["200Rnd_65x39_cased_Box", _numAmmo];
  143. _this addMagazineCargo ["200Rnd_65x39_cased_Box_Tracer", _numAmmo];
  144.  
  145. _this addMagazineCargo ["1Rnd_HE_Grenade_shell", _numAmmo];
  146. _this addMagazineCargo ["UGL_FlareWhite_F", _numAmmo];
  147. _this addMagazineCargo ["UGL_FlareGreen_F", _numAmmo];
  148. _this addMagazineCargo ["UGL_FlareRed_F", _numAmmo];
  149. _this addMagazineCargo ["UGL_FlareYellow_F", _numAmmo];
  150. _this addMagazineCargo ["UGL_FlareCIR_F", _numAmmo];
  151. _this addMagazineCargo ["1Rnd_Smoke_Grenade_shell", _numAmmo];
  152. _this addMagazineCargo ["1Rnd_SmokeRed_Grenade_shell", _numAmmo];
  153. _this addMagazineCargo ["1Rnd_SmokeGreen_Grenade_shell", _numAmmo];
  154. _this addMagazineCargo ["1Rnd_SmokeYellow_Grenade_shell", _numAmmo];
  155. _this addMagazineCargo ["1Rnd_SmokePurple_Grenade_shell", _numAmmo];
  156. _this addMagazineCargo ["1Rnd_SmokeBlue_Grenade_shell", _numAmmo];
  157. _this addMagazineCargo ["1Rnd_SmokeOrange_Grenade_shell", _numAmmo];
  158. _this addMagazineCargo ["3Rnd_HE_Grenade_shell", _numAmmo];
  159. _this addMagazineCargo ["3Rnd_UGL_FlareWhite_F", _numAmmo];
  160. _this addMagazineCargo ["3Rnd_UGL_FlareGreen_F", _numAmmo];
  161. _this addMagazineCargo ["3Rnd_UGL_FlareRed_F", _numAmmo];
  162. _this addMagazineCargo ["3Rnd_UGL_FlareYellow_F", _numAmmo];
  163. _this addMagazineCargo ["3Rnd_UGL_FlareCIR_F", _numAmmo];
  164. _this addMagazineCargo ["3Rnd_Smoke_Grenade_shell", _numAmmo];
  165. _this addMagazineCargo ["3Rnd_SmokeRed_Grenade_shell", _numAmmo];
  166. _this addMagazineCargo ["3Rnd_SmokeGreen_Grenade_shell", _numAmmo];
  167. _this addMagazineCargo ["3Rnd_SmokeYellow_Grenade_shell", _numAmmo];
  168. _this addMagazineCargo ["3Rnd_SmokePurple_Grenade_shell", _numAmmo];
  169. _this addMagazineCargo ["3Rnd_SmokeBlue_Grenade_shell", _numAmmo];
  170. _this addMagazineCargo ["3Rnd_SmokeOrange_Grenade_shell", _numAmmo];
  171.  
  172. _this addItemCargo ["V_BandollierB_cbr", _numItem];
  173. _this addItemCargo ["V_BandollierB_khk", _numItem];
  174. _this addItemCargo ["V_BandollierB_rgr", _numItem];
  175. _this addItemCargo ["V_Chestrig_khk", _numItem];
  176. _this addItemCargo ["V_ChestrigB_rgr", _numItem];
  177. _this addItemCargo ["V_HarnessO_brn", _numItem];
  178. _this addItemCargo ["V_HarnessOGL_brn", _numItem];
  179. _this addItemCargo ["V_PlateCarrier1_cbr", _numItem];
  180. _this addItemCargo ["V_PlateCarrier1_rgr", _numItem];
  181. _this addItemCargo ["V_PlateCarrier2_rgr", _numItem];
  182. _this addItemCargo ["V_PlateCarrierGL_rgr", _numItem];
  183. _this addItemCargo ["V_Rangemaster_belt", _numItem];
  184. _this addItemCargo ["V_RebreatherB", _numItem];
  185. _this addItemCargo ["V_RebreatherIR", _numItem];
  186. _this addItemCargo ["V_TacVest_brn", _numItem];
  187. _this addItemCargo ["V_TacVest_khk", _numItem];
  188. _this addItemCargo ["V_TacVest_oli", _numItem];
  189.  
  190. _this addItemCargo ["U_B_CombatUniform_mcam", _numItem];
  191. _this addItemCargo ["U_B_CombatUniform_mcam_tshirt", _numItem];
  192. _this addItemCargo ["U_B_CombatUniform_mcam_vest", _numItem];
  193. _this addItemCargo ["U_B_HeliPilotCoveralls", _numItem];
  194. _this addItemCargo ["U_B_Wetsuit", _numItem];
  195. _this addItemCargo ["U_BasicBody", _numItem];
  196. _this addItemCargo ["U_C_Commoner1_1", _numItem];
  197. _this addItemCargo ["U_C_Commoner1_2", _numItem];
  198. _this addItemCargo ["U_C_Commoner1_3", _numItem];
  199. _this addItemCargo ["U_C_Poloshirt_blue", _numItem];
  200. _this addItemCargo ["U_C_Poloshirt_burgundy", _numItem];
  201. _this addItemCargo ["U_C_Poloshirt_redwhite", _numItem];
  202. _this addItemCargo ["U_C_Poloshirt_salmon", _numItem];
  203. _this addItemCargo ["U_C_Poloshirt_stripped", _numItem];
  204. _this addItemCargo ["U_C_Poloshirt_tricolour", _numItem];
  205. _this addItemCargo ["U_OI_CombatUniform_ocamo", _numItem];
  206. _this addItemCargo ["U_OI_PilotCoveralls", _numItem];
  207. _this addItemCargo ["U_OI_Wetsuit", _numItem];
  208. _this addItemCargo ["U_Rangemaster", _numItem];
  209.  
  210. _this addbackpackcargo ["B_AssaultPack_khk", _amountitem];
  211. _this addbackpackcargo ["B_AssaultPack_khk_holder", _amountitem];
  212. _this addbackpackcargo ["B_AssaultPack_dgtl", _amountitem];
  213. _this addbackpackcargo ["B_AssaultPack_rgr", _amountitem];
  214. _this addbackpackcargo ["B_AssaultPack_rgr_Medic", _amountitem];
  215. _this addbackpackcargo ["B_AssaultPack_rgr_Repair", _amountitem];
  216. _this addbackpackcargo ["B_AssaultPack_sgg", _amountitem];
  217. _this addbackpackcargo ["B_AssaultPack_blk", _amountitem];
  218. _this addbackpackcargo ["B_AssaultPack_blk_DiverExp", _amountitem];
  219. _this addbackpackcargo ["B_AssaultPack_blk_DiverTL", _amountitem];
  220. _this addbackpackcargo ["B_AssaultPack_cbr", _amountitem];
  221. _this addbackpackcargo ["B_AssaultPack_mcamo", _amountitem];
  222. _this addbackpackcargo ["B_AssaultPack_ocamo", _amountitem];
  223. _this addbackpackcargo ["B_Kitbag_mcamo", _amountitem];
  224. _this addbackpackcargo ["B_Kitbag_sgg", _amountitem];
  225. _this addbackpackcargo ["B_Kitbag_cbr", _amountitem];
  226. _this addbackpackcargo ["B_FieldPack_blk", _amountitem];
  227. _this addbackpackcargo ["B_FieldPack_blk_DiverExp", _amountitem];
  228. _this addbackpackcargo ["B_FieldPack_blk_DiverTL", _amountitem];
  229. _this addbackpackcargo ["B_FieldPack_ocamo", _amountitem];
  230. _this addbackpackcargo ["B_FieldPack_cbr", _amountitem];
  231. _this addbackpackcargo ["B_FieldPack_cbr_AT", _amountitem];
  232. _this addbackpackcargo ["B_FieldPack_cbr_Repair", _amountitem];
  233. _this addbackpackcargo ["B_Carryall_ocamo", _amountitem];
  234. _this addbackpackcargo ["B_Carryall_oucamo", _amountitem];
  235. _this addbackpackcargo ["B_Carryall_oucamo_Exp", _amountitem];
  236. _this addbackpackcargo ["Bag_Base", _amountitem];
  237. _this addbackpackcargo ["B_AssaultPack_Base", _amountitem];
  238. _this addbackpackcargo ["B_Kitbag_Base", _amountitem];
  239. _this addbackpackcargo ["B_FieldPack_Base", _amountitem];
  240. _this addbackpackcargo ["B_Bergen_Base", _amountitem];
  241. _this addbackpackcargo ["B_Carryall_Base", _amountitem];
  242.  
  243. // Wait the duration of _refreshTime
  244. sleep _refreshTime;
  245. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement