Advertisement
Guest User

ga

a guest
Oct 10th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 KB | None | 0 0
  1. class CfgGather {
  2. class Resources {
  3. class apple {
  4. amount = 5;
  5. zones[] = { "apple_1", "apple_2", "apple_3", "apple_4" };
  6. item = "";
  7. zoneSize = 30;
  8. };
  9.  
  10. class peach {
  11. amount = 5;
  12. zones[] = { "peaches_1", "peaches_2", "peaches_3", "peaches_4" };
  13. item = "";
  14. zoneSize = 30;
  15. };
  16.  
  17. class banane {
  18. amount = 5;
  19. zones[] = { "banane_1" };
  20. item = "";
  21. zoneSize = 30;
  22. };
  23.  
  24. class heroin_unprocessed {
  25. amount = 3;
  26. zones[] = { "heroin_1" };
  27. item = "";
  28. zoneSize = 30;
  29. };
  30.  
  31. class cocaine_unprocessed {
  32. amount = 3;
  33. zones[] = { "cocaine_1" };
  34. item = "";
  35. zoneSize = 30;
  36. };
  37.  
  38. class cannabis {
  39. amount = 3;
  40. zones[] = { "weed_1" };
  41. item = "";
  42. zoneSize = 30;
  43. };
  44.  
  45. class tobacco_unprocessed {
  46. amount = 15; //Optional Amount
  47. zones[] = { "tobacco_1" };
  48. item = "";
  49. zoneSize = 30;
  50. };
  51. };
  52.  
  53. /*
  54. This block can be set using percent,if you want players to mine only one resource ,just leave it as it is.
  55. Example:
  56. class copper_unrefined
  57. {
  58. amount = 2;
  59. zones[] = { "copper_mine" };
  60. item = "pickaxe";
  61. mined[] = { "copper_unrefined" };
  62. This will make players mine only copper_unrefined
  63. Now let's go deeper
  64. Example 2:
  65. class copper_unrefined
  66. {
  67. amount = 2;
  68. zones[] = { "copper_mine" };
  69. item = "pickaxe";
  70. mined[] = { {"copper_unrefined",0,25},{"iron_unrefined",25,95},{"diamond_uncut",95,100} };
  71. };
  72. This will give :
  73. 25(±1)% to copper_unrefined;
  74. 70(±1)% to iron_unrefined;
  75. 5%(±1)% to diamond_uncut;
  76.  
  77. ! Watch Out !
  78. If percents are used,you MUST put more than 1 resource in the mined parameter
  79. mined[] = { {"copper_unrefined",0,25} }; NOT OK (But the script will work)
  80. mined[] = { {"copper_unrefined",0,45 },{"iron_unrefined",45} }; NOT OK (The script won't work )
  81. mined[] = { {"copper_unrefined",0,45},{"copper_unrefined",80,100} }; NOT OK
  82. mined[] = { "copper_unrefined" }; OK
  83. mined[] = { {"copper_unrefined",0,35} , { "iron_unrefined" ,35,100 } }; OK
  84. */
  85.  
  86. class Minerals {
  87. class copper_unrefined {
  88. amount = 2;
  89. zones[] = { "copper_mine" };
  90. item = "pickaxe";
  91. mined[] = {"copper_unrefined"};
  92. zoneSize = 30;
  93. };
  94.  
  95. class iron_unrefined {
  96. amount = 2;
  97. zones[] = { "iron_mine" };
  98. item = "pickaxe";
  99. mined[] = { "iron_unrefined" };
  100. zoneSize = 30;
  101. };
  102.  
  103. class salt_unrefined {
  104. amount = 2;
  105. zones[] = { "salt_mine" };
  106. item = "pickaxe";
  107. mined[] = { "salt_unrefined" };
  108. zoneSize = 30;
  109. };
  110.  
  111. class sand {
  112. amount = 2;
  113. zones[] = { "sand_mine" };
  114. item = "pickaxe";
  115. mined[] = { "sand" };
  116. zoneSize = 30;
  117. };
  118.  
  119. class diamond_uncut {
  120. amount = 2;
  121. zones[] = { "diamond_mine" };
  122. item = "pickaxe";
  123. mined[] = { "diamond_uncut" };
  124. zoneSize = 30;
  125. };
  126.  
  127. class rock {
  128. amount = 2;
  129. zones[] = { "rock_quarry" };
  130. item = "pickaxe";
  131. mined[] = { "rock" };
  132. zoneSize = 30;
  133. };
  134.  
  135. class oil_unprocessed {
  136. amount = 2;
  137. zones[] = { "oil_field_1", "oil_field_2" };
  138. item = "pickaxe";
  139. mined[] = { "oil_unprocessed" };
  140. zoneSize = 30;
  141. };
  142. };
  143. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement