Guest User

Untitled

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